test-case-live-event-6.html (1899B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Live Region Event Test Case: Delete text content (STATUS role)</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 <style> 7 div#TEST_ID { 8 margin: 0.5em; 9 padding: 0.25em; 10 border: medium gray solid; 11 width: 20em; 12 } 13 </style> 14 </head> 15 <body> 16 <h1>ARIA 1.0 Live Region Event Test Case: Delete text content (STATUS role)</h1> 17 18 <div id="TEST_ID" role="status" > 19 STATUS ROLE TEST TEXT 20 </div> 21 22 <button onclick="tryAgain()">Try Again</button> 23 24 <h2>Description</h2> 25 <p>An element with an role attribute with the value "status" has a text content deleted 26 1.5 seconds after the document is loaded.</p> 27 28 <h2>Expected Results</h2> 29 30 <dl> 31 <dt>ATK/AT-SPI</dt> 32 <dd>ATK/AT-SPIevent: text_changed::delete event</dd> 33 34 <dt>AXAPI</dt> 35 <dd></dd> 36 <dd>AXLiveRegionChanged notification</dd> 37 38 <dt>MSAA + IAccessible2</dt> 39 <dd>IAccessible2: IA2_EVENT_TEXT_REMOVED event </dd> 40 41 <dt>MSAA + UIA Express</dt> 42 <dd>TextPattern..::.TextChangedEvent event </dd> 43 44 </dl> 45 46 47 <script> 48 49 function tryAgain() { 50 addText() 51 52 onLoad(); 53 54 } 55 56 function clearText() { 57 var node = document.getElementById('TEST_ID'); 58 59 while (node.firstChild) node.removeChild(node.firstChild); 60 } 61 62 function addText () { 63 var node = document.getElementById('TEST_ID'); 64 65 var text_node = document.createTextNode('STATUS ROLE TEST TEXT'); 66 67 node.appendChild(text_node); 68 } 69 70 function onLoad() { 71 72 setTimeout(clearText,1500); 73 74 } 75 76 window.addEventListener('load', onLoad); 77 </script> 78 </body> 79 80 </html>