tor-browser

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

switch_readonly_true-manual.html (3024B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>switch readonly 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_READ_ONLY"
     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                  "property",
     48                  "AXRoleDescription",
     49                  "is",
     50                  "switch"
     51               ],
     52               [
     53                  "result",
     54                  "AXUIElementIsAttributeSettable(AXValue)",
     55                  "is",
     56                  "false"
     57               ]
     58            ],
     59            "IAccessible2" : [
     60               [
     61                  "property",
     62                  "role",
     63                  "is",
     64                  "IA2_ROLE_TOGGLE_BUTTON"
     65               ],
     66               [
     67                  "property",
     68                  "objectAttributes",
     69                  "contains",
     70                  "xml-roles:switch"
     71               ],
     72               [
     73                  "property",
     74                  "states",
     75                  "doesNotContain",
     76                  "IA2_STATE_EDITABLE"
     77               ]
     78            ],
     79            "UIA" : [
     80               [
     81                  "property",
     82                  "ControlType",
     83                  "is",
     84                  "Button"
     85               ],
     86               [
     87                  "property",
     88                  "LocalizedControlType",
     89                  "is",
     90                  "toggleswitch"
     91               ],
     92               [
     93                  "property",
     94                  "Value.IsReadOnly",
     95                  "is",
     96                  "true"
     97               ]
     98            ]
     99         },
    100         "title" : "step 1",
    101         "type" : "test"
    102      }
    103   ],
    104   "title" : "switch readonly true"
    105 }
    106 
    107    ) ;
    108    </script>
    109  </head>
    110  <body>
    111  <p>This test examines the ARIA properties for switch readonly true.</p>
    112      <div id="test" role="switch" aria-readonly="true">
    113    </div>
    114 
    115  <div id="manualMode"></div>
    116  <div id="log"></div>
    117  <div id="ATTAmessages"></div>
    118  </body>
    119 </html>