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