switch_checked_undefined-manual.html (3170B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>switch checked undefined</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 "doesNotContain", 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 "0" 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 "UIA" : [ 86 [ 87 "property", 88 "ControlType", 89 "is", 90 "Button" 91 ], 92 [ 93 "property", 94 "LocalizedControlType", 95 "is", 96 "toggleswitch" 97 ], 98 [ 99 "property", 100 "Toggle.ToggleState", 101 "is", 102 "Off" 103 ] 104 ] 105 }, 106 "title" : "step 1", 107 "type" : "test" 108 } 109 ], 110 "title" : "switch checked undefined" 111 } 112 113 ) ; 114 </script> 115 </head> 116 <body> 117 <p>This test examines the ARIA properties for switch checked undefined.</p> 118 <div id='test' role='switch' tabindex='0' class='switch'>power</div> 119 120 <div id="manualMode"></div> 121 <div id="log"></div> 122 <div id="ATTAmessages"></div> 123 </body> 124 </html>