searchbox_activedescendant_value_changes-manual.html (7098B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>searchbox activedescendant 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 "element" : "test", 18 "event" : "focus", 19 "title" : "step 1", 20 "type" : "event" 21 }, 22 { 23 "attribute" : "aria-activedescendant", 24 "element" : "test", 25 "title" : "step 2", 26 "type" : "attribute", 27 "value" : "\"bob\"" 28 }, 29 { 30 "element" : "test", 31 "test" : { 32 "ATK" : [ 33 [ 34 "property", 35 "role", 36 "is", 37 "ROLE_ENTRY" 38 ], 39 [ 40 "property", 41 "states", 42 "contains", 43 "STATE_SINGLE_LINE" 44 ], 45 [ 46 "property", 47 "interfaces", 48 "contains", 49 "EditableText" 50 ], 51 [ 52 "property", 53 "states", 54 "doesNotContain", 55 "STATE_FOCUSED" 56 ], 57 [ 58 "property", 59 "states", 60 "contains", 61 "STATE_FOCUSABLE" 62 ] 63 ], 64 "AXAPI" : [ 65 [ 66 "property", 67 "AXRole", 68 "is", 69 "AXTextField" 70 ], 71 [ 72 "property", 73 "AXSubrole", 74 "is", 75 "AXSearchField" 76 ], 77 [ 78 "property", 79 "AXRoleDescription", 80 "is", 81 "search text field" 82 ], 83 [ 84 "property", 85 "AXFocused", 86 "is", 87 "false" 88 ], 89 [ 90 "result", 91 "AXUIElementIsAttributeSettable(AXFocused)", 92 "is", 93 "true" 94 ] 95 ], 96 "IAccessible2" : [ 97 [ 98 "property", 99 "objectAttributes", 100 "contains", 101 "text-input-type:search" 102 ], 103 [ 104 "event", 105 "type", 106 "is", 107 "EVENT_OBJECT_FOCUS" 108 ] 109 ], 110 "MSAA" : [ 111 [ 112 "property", 113 "role", 114 "is", 115 "ROLE_SYSTEM_TEXT" 116 ], 117 [ 118 "property", 119 "states", 120 "doesNotContain", 121 "STATE_SYSTEM_FOCUSED" 122 ], 123 [ 124 "property", 125 "states", 126 "contains", 127 "STATE_SYSTEM_FOCUSABLE" 128 ] 129 ], 130 "UIA" : [ 131 [ 132 "property", 133 "ControlType", 134 "is", 135 "Edit" 136 ], 137 [ 138 "property", 139 "LocalizedControlType", 140 "is", 141 "search box" 142 ], 143 [ 144 "property", 145 "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId", 146 "is", 147 "true" 148 ], 149 [ 150 "property", 151 "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId", 152 "is", 153 "false" 154 ] 155 ] 156 }, 157 "title" : "step 3", 158 "type" : "test" 159 }, 160 { 161 "element" : "bob", 162 "test" : { 163 "ATK" : [ 164 [ 165 "property", 166 "states", 167 "contains", 168 "STATE_FOCUSED" 169 ], 170 [ 171 "property", 172 "states", 173 "contains", 174 "STATE_FOCUSABLE" 175 ], 176 [ 177 "event", 178 "type", 179 "is", 180 "object:state-changed:focused" 181 ], 182 [ 183 "event", 184 "detail1", 185 "is", 186 "1" 187 ] 188 ], 189 "AXAPI" : [ 190 [ 191 "property", 192 "AXFocused", 193 "is", 194 "true" 195 ], 196 [ 197 "result", 198 "AXUIElementIsAttributeSettable(AXFocused)", 199 "is", 200 "true" 201 ], 202 [ 203 "event", 204 "type", 205 "is", 206 "AXFocusedUIElementChanged" 207 ] 208 ], 209 "MSAA" : [ 210 [ 211 "property", 212 "states", 213 "contains", 214 "STATE_SYSTEM_FOCUSED" 215 ], 216 [ 217 "property", 218 "states", 219 "contains", 220 "STATE_SYSTEM_FOCUSABLE" 221 ], 222 [ 223 "event", 224 "type", 225 "is", 226 "EVENT_OBJECT_FOCUS" 227 ] 228 ], 229 "UIA" : [ 230 [ 231 "property", 232 "IUIAutomationElement.UIA_IsKeyboardFocusablePropertyId", 233 "is", 234 "true" 235 ], 236 [ 237 "property", 238 "IUIAutomationElement.UIA_HasKeyboardFocusPropertyId", 239 "is", 240 "true" 241 ], 242 [ 243 "event", 244 "type", 245 "is", 246 "UIA_AutomationFocusChangedEventId" 247 ] 248 ] 249 }, 250 "title" : "step 4", 251 "type" : "test" 252 } 253 ], 254 "title" : "searchbox activedescendant value changes" 255 } 256 257 ) ; 258 </script> 259 </head> 260 <body> 261 <p>This test examines the ARIA properties for searchbox activedescendant value changes.</p> 262 <div id='test' tabindex="0" role='searchbox'> 263 <div id='bob' role='group'>Hello world</div> 264 </div> 265 then role:searchbox, aria-activedescendant: bob 266 267 <div id="manualMode"></div> 268 <div id="log"></div> 269 <div id="ATTAmessages"></div> 270 </body> 271 </html>