aria-current_with_value_changes-manual.html (2820B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>aria-current with 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-current", 18 "element" : "test", 19 "title" : "step 1", 20 "type" : "attribute", 21 "value" : "\"false\"" 22 }, 23 { 24 "element" : "test", 25 "test" : { 26 "ATK" : [ 27 [ 28 "property", 29 "states", 30 "doesNotContain", 31 "STATE_ACTIVE" 32 ], 33 [ 34 "property", 35 "objectAttributes", 36 "contains", 37 "current:false" 38 ], 39 [ 40 "event", 41 "type", 42 "is", 43 "object:state-changed:active" 44 ], 45 [ 46 "event", 47 "detail1", 48 "is", 49 "0" 50 ] 51 ], 52 "AXAPI" : [ 53 [ 54 "property", 55 "AXARIACurrent", 56 "contains", 57 "false" 58 ] 59 ], 60 "IAccessible2" : [ 61 [ 62 "property", 63 "objectAttributes", 64 "contains", 65 "current:false" 66 ], 67 [ 68 "event", 69 "type", 70 "is", 71 "IA2_EVENT_OBJECT_ATTRIBUTE_CHANGED" 72 ] 73 ], 74 "UIA" : [ 75 [ 76 "property", 77 "current", 78 "is", 79 "false" 80 ], 81 [ 82 "event", 83 "type", 84 "is", 85 "PropertyChangedEvent" 86 ] 87 ] 88 }, 89 "title" : "step 2", 90 "type" : "test" 91 } 92 ], 93 "title" : "aria-current with value changes" 94 } 95 96 ) ; 97 </script> 98 </head> 99 <body> 100 <p>This test examines the ARIA properties for aria-current with value changes.</p> 101 <ul role="list"> 102 <li id="test" role="listitem" aria-current="true">1</li> 103 <li role="listitem" aria-current="false">2</li> 104 </ul> 105 106 <div id="manualMode"></div> 107 <div id="log"></div> 108 <div id="ATTAmessages"></div> 109 </body> 110 </html>