tor-browser

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

switch_checked_true-manual.html (3513B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>switch checked true</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         "test" : {
     19            "ATK" : [
     20               [
     21                  "property",
     22                  "role",
     23                  "is",
     24                  "ROLE_TOGGLE_BUTTON"
     25               ],
     26               [
     27                  "property",
     28                  "states",
     29                  "contains",
     30                  "STATE_CHECKABLE"
     31               ],
     32               [
     33                  "property",
     34                  "states",
     35                  "contains",
     36                  "STATE_CHECKED"
     37               ]
     38            ],
     39            "AXAPI" : [
     40               [
     41                  "property",
     42                  "AXRole",
     43                  "is",
     44                  "AXCheckBox"
     45               ],
     46               [
     47                  "property",
     48                  "AXSubrole",
     49                  "is",
     50                  "AXSwitch"
     51               ],
     52               [
     53                  "property",
     54                  "AXRoleDescription",
     55                  "is",
     56                  "switch"
     57               ],
     58               [
     59                  "property",
     60                  "AXValue",
     61                  "is",
     62                  "1"
     63               ]
     64            ],
     65            "IAccessible2" : [
     66               [
     67                  "property",
     68                  "role",
     69                  "is",
     70                  "IA2_ROLE_TOGGLE_BUTTON"
     71               ],
     72               [
     73                  "property",
     74                  "objectAttributes",
     75                  "contains",
     76                  "xml-roles:switch"
     77               ],
     78               [
     79                  "property",
     80                  "objectAttributes",
     81                  "contains",
     82                  "checkable:true"
     83               ]
     84            ],
     85            "MSAA" : [
     86               [
     87                  "property",
     88                  "states",
     89                  "contains",
     90                  "STATE_SYSTEM_CHECKED"
     91               ]
     92            ],
     93            "UIA" : [
     94               [
     95                  "property",
     96                  "ControlType",
     97                  "is",
     98                  "Button"
     99               ],
    100               [
    101                  "property",
    102                  "controlPatterns",
    103                  "contains",
    104                  "Toggle"
    105               ],
    106               [
    107                  "property",
    108                  "LocalizedControlType",
    109                  "is",
    110                  "toggleswitch"
    111               ],
    112               [
    113                  "property",
    114                  "Toggle.ToggleState",
    115                  "is",
    116                  "On"
    117               ]
    118            ]
    119         },
    120         "title" : "step 1",
    121         "type" : "test"
    122      }
    123   ],
    124   "title" : "switch checked true"
    125 }
    126 
    127    ) ;
    128    </script>
    129  </head>
    130  <body>
    131  <p>This test examines the ARIA properties for switch checked true.</p>
    132   <div id='test' role='switch' aria-checked='true' tabindex='0'>power</div>
    133 
    134  <div id="manualMode"></div>
    135  <div id="log"></div>
    136  <div id="ATTAmessages"></div>
    137  </body>
    138 </html>