combobox_controls_an_invalid_id-manual.html (2683B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>combobox controls an invalid ID</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 "relations", 23 "doesNotContain", 24 "RELATION_CONTROLLER_FOR" 25 ] 26 ], 27 "AXAPI" : [ 28 [ 29 "property", 30 "AXLinkedUIElements", 31 "doesNotContain", 32 "myID" 33 ] 34 ], 35 "IAccessible2" : [ 36 [ 37 "property", 38 "relations", 39 "doesNotContain", 40 "IA2_RELATION_CONTROLLER_FOR" 41 ] 42 ], 43 "UIA" : [ 44 [ 45 "property", 46 "IUIAutomation.ControllerFor", 47 "doesNotContain", 48 "myID" 49 ] 50 ] 51 }, 52 "title" : "step 1", 53 "type" : "test" 54 }, 55 { 56 "element" : "myID", 57 "test" : { 58 "ATK" : [ 59 [ 60 "property", 61 "relations", 62 "doesNotContain", 63 "RELATION_CONTROLLED_BY" 64 ] 65 ], 66 "IAccessible2" : [ 67 [ 68 "property", 69 "relations", 70 "doesNotContain", 71 "IA2_RELATION_CONTROLLED_BY" 72 ] 73 ] 74 }, 75 "title" : "step 2", 76 "type" : "test" 77 } 78 ], 79 "title" : "combobox controls an invalid ID" 80 } 81 82 ) ; 83 </script> 84 </head> 85 <body> 86 <p>This test examines the ARIA properties for combobox controls an invalid ID.</p> 87 <div id="test" role="combobox" aria-controls="fakeID" aria-owns="myID" aria-expanded="true" aria-haspopup="listbox"><span role="textbox">option 3</span></div> 88 <div role="listbox" id="myID"> 89 <div role="option">option 1</div> 90 <div role="option">option 2</div> 91 <div role="option">option 3</div> 92 </div> 93 94 <div id="manualMode"></div> 95 <div id="log"></div> 96 <div id="ATTAmessages"></div> 97 </body> 98 </html>