tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

application_activedescendant_value_changes-manual.html (6650B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>application activedescendant value changes</title>
      5    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
      6    <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
      7    <script src="/resources/testharness.js"></script>
      8    <script src="/resources/testharnessreport.js"></script>
      9    <script src="/wai-aria/scripts/ATTAcomm.js"></script>
     10    <script>
     11    setup({explicit_timeout: true, explicit_done: true });
     12 
     13    var theTest = new ATTAcomm(
     14    {
     15   "steps" : [
     16      {
     17         "element" : "test",
     18         "event" : "focus",
     19         "title" : "step 1",
     20         "type" : "event"
     21      },
     22      {
     23         "attribute" : "aria-activedescendant",
     24         "element" : "test",
     25         "title" : "step 2",
     26         "type" : "attribute",
     27         "value" : "\"bob\""
     28      },
     29      {
     30         "element" : "test",
     31         "test" : {
     32            "ATK" : [
     33               [
     34                  "property",
     35                  "role",
     36                  "is",
     37                  "ROLE_EMBEDDED"
     38               ],
     39               [
     40                  "property",
     41                  "states",
     42                  "doesNotContain",
     43                  "STATE_FOCUSED"
     44               ],
     45               [
     46                  "property",
     47                  "states",
     48                  "contains",
     49                  "STATE_FOCUSABLE"
     50               ]
     51            ],
     52            "AXAPI" : [
     53               [
     54                  "property",
     55                  "AXRole",
     56                  "is",
     57                  "AXGroup"
     58               ],
     59               [
     60                  "property",
     61                  "AXSubrole",
     62                  "is",
     63                  "AXWebApplication"
     64               ],
     65               [
     66                  "property",
     67                  "AXRoleDescription",
     68                  "is",
     69                  "web application"
     70               ],
     71               [
     72                  "property",
     73                  "AXFocused",
     74                  "is",
     75                  "false"
     76               ],
     77               [
     78                  "result",
     79                  "AXUIElementIsAttributeSettable(AXFocused)",
     80                  "is",
     81                  "true"
     82               ]
     83            ],
     84            "IAccessible2" : [
     85               [
     86                  "event",
     87                  "type",
     88                  "is",
     89                  "EVENT_OBJECT_FOCUS"
     90               ]
     91            ],
     92            "MSAA" : [
     93               [
     94                  "property",
     95                  "role",
     96                  "is",
     97                  "ROLE_SYSTEM_APPLICATION"
     98               ],
     99               [
    100                  "property",
    101                  "states",
    102                  "doesNotContain",
    103                  "STATE_SYSTEM_FOCUSED"
    104               ],
    105               [
    106                  "property",
    107                  "states",
    108                  "contains",
    109                  "STATE_SYSTEM_FOCUSABLE"
    110               ]
    111            ],
    112            "UIA" : [
    113               [
    114                  "property",
    115                  "ControlType",
    116                  "is",
    117                  "Pane"
    118               ],
    119               [
    120                  "property",
    121                  "LocalizedControlType",
    122                  "is",
    123                  "application"
    124               ],
    125               [
    126                  "property",
    127                  "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId",
    128                  "is",
    129                  "true"
    130               ],
    131               [
    132                  "property",
    133                  "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId",
    134                  "is",
    135                  "false"
    136               ]
    137            ]
    138         },
    139         "title" : "step 3",
    140         "type" : "test"
    141      },
    142      {
    143         "element" : "bob",
    144         "test" : {
    145            "ATK" : [
    146               [
    147                  "property",
    148                  "states",
    149                  "contains",
    150                  "STATE_FOCUSED"
    151               ],
    152               [
    153                  "property",
    154                  "states",
    155                  "contains",
    156                  "STATE_FOCUSABLE"
    157               ],
    158               [
    159                  "event",
    160                  "type",
    161                  "is",
    162                  "object:state-changed:focused"
    163               ],
    164               [
    165                  "event",
    166                  "detail1",
    167                  "is",
    168                  "1"
    169               ]
    170            ],
    171            "AXAPI" : [
    172               [
    173                  "property",
    174                  "AXFocused",
    175                  "is",
    176                  "true"
    177               ],
    178               [
    179                  "result",
    180                  "AXUIElementIsAttributeSettable(AXFocused)",
    181                  "is",
    182                  "true"
    183               ],
    184               [
    185                  "event",
    186                  "type",
    187                  "is",
    188                  "AXFocusedUIElementChanged"
    189               ]
    190            ],
    191            "MSAA" : [
    192               [
    193                  "property",
    194                  "states",
    195                  "contains",
    196                  "STATE_SYSTEM_FOCUSED"
    197               ],
    198               [
    199                  "property",
    200                  "states",
    201                  "contains",
    202                  "STATE_SYSTEM_FOCUSABLE"
    203               ],
    204               [
    205                  "event",
    206                  "type",
    207                  "is",
    208                  "EVENT_OBJECT_FOCUS"
    209               ]
    210            ],
    211            "UIA" : [
    212               [
    213                  "property",
    214                  "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId",
    215                  "is",
    216                  "true"
    217               ],
    218               [
    219                  "property",
    220                  "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId",
    221                  "is",
    222                  "true"
    223               ],
    224               [
    225                  "event",
    226                  "type",
    227                  "is",
    228                  "UIA_AutomationFocusChangedEventId"
    229               ]
    230            ]
    231         },
    232         "title" : "step 4",
    233         "type" : "test"
    234      }
    235   ],
    236   "title" : "application activedescendant value changes"
    237 }
    238 
    239    ) ;
    240    </script>
    241  </head>
    242  <body>
    243  <p>This test examines the ARIA properties for application activedescendant value changes.</p>
    244     <div id='test' tabindex="0" role='application'>
    245     <div id='bob' role='group'>Hello world</div>
    246  </div>
    247 then role:application, aria-activedescendant: bob generates a state change event
    248 
    249  <div id="manualMode"></div>
    250  <div id="log"></div>
    251  <div id="ATTAmessages"></div>
    252  </body>
    253 </html>