tor-browser

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

searchbox_activedescendant-manual.html (5802B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>searchbox activedescendant</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         "element" : "test",
     24         "test" : {
     25            "ATK" : [
     26               [
     27                  "property",
     28                  "role",
     29                  "is",
     30                  "ROLE_ENTRY"
     31               ],
     32               [
     33                  "property",
     34                  "states",
     35                  "contains",
     36                  "STATE_SINGLE_LINE"
     37               ],
     38               [
     39                  "property",
     40                  "interfaces",
     41                  "contains",
     42                  "EditableText"
     43               ],
     44               [
     45                  "property",
     46                  "states",
     47                  "doesNotContain",
     48                  "STATE_FOCUSED"
     49               ],
     50               [
     51                  "property",
     52                  "states",
     53                  "contains",
     54                  "STATE_FOCUSABLE"
     55               ]
     56            ],
     57            "AXAPI" : [
     58               [
     59                  "property",
     60                  "AXRole",
     61                  "is",
     62                  "AXTextField"
     63               ],
     64               [
     65                  "property",
     66                  "AXSubrole",
     67                  "is",
     68                  "AXSearchField"
     69               ],
     70               [
     71                  "property",
     72                  "AXRoleDescription",
     73                  "is",
     74                  "search text field"
     75               ],
     76               [
     77                  "property",
     78                  "AXFocused",
     79                  "is",
     80                  "false"
     81               ]
     82            ],
     83            "IAccessible2" : [
     84               [
     85                  "property",
     86                  "objectAttributes",
     87                  "contains",
     88                  "text-input-type:search"
     89               ]
     90            ],
     91            "MSAA" : [
     92               [
     93                  "property",
     94                  "role",
     95                  "is",
     96                  "ROLE_SYSTEM_TEXT"
     97               ],
     98               [
     99                  "property",
    100                  "states",
    101                  "doesNotContain",
    102                  "STATE_SYSTEM_FOCUSED"
    103               ],
    104               [
    105                  "property",
    106                  "states",
    107                  "contains",
    108                  "STATE_SYSTEM_FOCUSABLE"
    109               ]
    110            ],
    111            "UIA" : [
    112               [
    113                  "property",
    114                  "ControlType",
    115                  "is",
    116                  "Edit"
    117               ],
    118               [
    119                  "property",
    120                  "LocalizedControlType",
    121                  "is",
    122                  "search box"
    123               ],
    124               [
    125                  "property",
    126                  "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId",
    127                  "is",
    128                  "true"
    129               ],
    130               [
    131                  "property",
    132                  "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId",
    133                  "is",
    134                  "false"
    135               ]
    136            ]
    137         },
    138         "title" : "step 2",
    139         "type" : "test"
    140      },
    141      {
    142         "element" : "bob",
    143         "test" : {
    144            "ATK" : [
    145               [
    146                  "property",
    147                  "states",
    148                  "contains",
    149                  "STATE_FOCUSED"
    150               ],
    151               [
    152                  "property",
    153                  "states",
    154                  "contains",
    155                  "STATE_FOCUSABLE"
    156               ]
    157            ],
    158            "AXAPI" : [
    159               [
    160                  "property",
    161                  "AXFocused",
    162                  "is",
    163                  "true"
    164               ],
    165               [
    166                  "result",
    167                  "AXUIElementIsAttributeSettable(AXFocused)",
    168                  "is",
    169                  "true"
    170               ]
    171            ],
    172            "MSAA" : [
    173               [
    174                  "property",
    175                  "states",
    176                  "contains",
    177                  "STATE_SYSTEM_FOCUSED"
    178               ],
    179               [
    180                  "property",
    181                  "states",
    182                  "contains",
    183                  "STATE_SYSTEM_FOCUSABLE"
    184               ]
    185            ],
    186            "UIA" : [
    187               [
    188                  "property",
    189                  "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId",
    190                  "is",
    191                  "true"
    192               ],
    193               [
    194                  "property",
    195                  "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId",
    196                  "is",
    197                  "true"
    198               ]
    199            ]
    200         },
    201         "title" : "step 3",
    202         "type" : "test"
    203      }
    204   ],
    205   "title" : "searchbox activedescendant"
    206 }
    207 
    208    ) ;
    209    </script>
    210  </head>
    211  <body>
    212  <p>This test examines the ARIA properties for searchbox activedescendant.</p>
    213     <div id='test' tabindex="0" aria-activedescendant="bob" role='searchbox'>
    214     <div id='bob' role='group'>Hello world</div>
    215  </div>
    216 then role:searchbox, aria-activedescendant: bob
    217 
    218  <div id="manualMode"></div>
    219  <div id="log"></div>
    220  <div id="ATTAmessages"></div>
    221  </body>
    222 </html>