tor-browser

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

switch-manual.html (2672B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>switch</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                  "objectAttributes",
     29                  "contains",
     30                  "xml-roles:switch"
     31               ]
     32            ],
     33            "AXAPI" : [
     34               [
     35                  "property",
     36                  "AXRole",
     37                  "is",
     38                  "AXCheckBox"
     39               ],
     40               [
     41                  "property",
     42                  "AXSubrole",
     43                  "is",
     44                  "AXSwitch"
     45               ]
     46            ],
     47            "IAccessible2" : [
     48               [
     49                  "property",
     50                  "role",
     51                  "is",
     52                  "IA2_ROLE_TOGGLE_BUTTON"
     53               ],
     54               [
     55                  "property",
     56                  "objectAttributes",
     57                  "contains",
     58                  "xml-roles:switch"
     59               ]
     60            ],
     61            "MSAA" : [
     62               [
     63                  "property",
     64                  "role",
     65                  "is",
     66                  "ROLE_SYSTEM_CHECKBUTTON"
     67               ]
     68            ],
     69            "UIA" : [
     70               [
     71                  "property",
     72                  "ControlType",
     73                  "is",
     74                  "Button"
     75               ],
     76               [
     77                  "property",
     78                  "LocalizedControlType",
     79                  "is",
     80                  "toggleswitch"
     81               ],
     82               [
     83                  "property",
     84                  "Control Pattern",
     85                  "is",
     86                  "Toggle"
     87               ]
     88            ]
     89         },
     90         "title" : "step 1",
     91         "type" : "test"
     92      }
     93   ],
     94   "title" : "switch"
     95 }
     96 
     97    ) ;
     98    </script>
     99  </head>
    100  <body>
    101  <p>This test examines the ARIA properties for switch.</p>
    102    <div role='switch' id='test'>content</div>
    103 
    104  <div id="manualMode"></div>
    105  <div id="log"></div>
    106  <div id="ATTAmessages"></div>
    107  </body>
    108 </html>