switch_checked_mixed-manual.html (3348B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>switch checked mixed</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_INDETERMINATE" 37 ], 38 [ 39 "property", 40 "states", 41 "doesNotContain", 42 "STATE_CHECKED" 43 ] 44 ], 45 "AXAPI" : [ 46 [ 47 "property", 48 "AXRole", 49 "is", 50 "AXCheckBox" 51 ], 52 [ 53 "property", 54 "AXSubrole", 55 "is", 56 "AXSwitch" 57 ], 58 [ 59 "property", 60 "AXRoleDescription", 61 "is", 62 "switch" 63 ], 64 [ 65 "property", 66 "AXValue", 67 "is", 68 "0" 69 ] 70 ], 71 "IAccessible2" : [ 72 [ 73 "property", 74 "role", 75 "is", 76 "IA2_ROLE_TOGGLE_BUTTON" 77 ], 78 [ 79 "property", 80 "objectAttributes", 81 "contains", 82 "xml-roles:switch" 83 ], 84 [ 85 "property", 86 "objectAttributes", 87 "contains", 88 "checkable:true" 89 ] 90 ], 91 "UIA" : [ 92 [ 93 "property", 94 "ControlType", 95 "is", 96 "Button" 97 ], 98 [ 99 "property", 100 "LocalizedControlType", 101 "is", 102 "toggleswitch" 103 ], 104 [ 105 "property", 106 "Toggle.ToggleState", 107 "is", 108 "Off" 109 ] 110 ] 111 }, 112 "title" : "step 1", 113 "type" : "test" 114 } 115 ], 116 "title" : "switch checked mixed" 117 } 118 119 ) ; 120 </script> 121 </head> 122 <body> 123 <p>This test examines the ARIA properties for switch checked mixed.</p> 124 <div id='test' role='switch' aria-checked='mixed' tabindex='0' class='switch'>power</div> 125 126 <div id="manualMode"></div> 127 <div id="log"></div> 128 <div id="ATTAmessages"></div> 129 </body> 130 </html>