test_bug852150.xhtml (1766B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>Canvas subdom mutation</title> 4 5 <link rel="stylesheet" type="text/css" 6 href="chrome://mochikit/content/tests/SimpleTest/test.css" /> 7 8 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 9 10 <script type="application/javascript" 11 src="../common.js"></script> 12 <script type="application/javascript" 13 src="../role.js"></script> 14 15 <script> 16 <![CDATA[ 17 function doTest() { 18 var the_displayNone = getNode("the_displaynone"); 19 var the_table = getNode("the_table"); 20 var the_row = getNode("the_row"); 21 ok(isAccessible(the_table), "table should be accessible"); 22 the_displayNone.appendChild(the_table); 23 ok(!isAccessible(the_table), "table in display none tree shouldn't be accessible"); 24 25 setTimeout(function() { 26 document.body.removeChild(the_row); 27 // make sure no accessibles have stuck around. 28 ok(!isAccessible(the_row), "row shouldn't be accessible"); 29 ok(!isAccessible(the_table), "table shouldn't be accessible"); 30 ok(!isAccessible(the_displayNone), "display none things shouldn't be accessible"); 31 SimpleTest.finish(); 32 }, 0); 33 } 34 35 SimpleTest.waitForExplicitFinish(); 36 addA11yLoadEvent(doTest); 37 ]]> 38 </script> 39 </head> 40 <body> 41 42 <a target="_blank" 43 title="test accessible removal when reframe root isn't accessible" 44 href="https://bugzilla.mozilla.org/show_bug.cgi?id=852150"> 45 Mozilla Bug 852150 46 </a> 47 48 <p id="display"></p> 49 <div id="content" style="display: none"></div> 50 <pre id="test"> 51 </pre> 52 53 <div id="the_displaynone" style="display: none;"></div> 54 <table id="the_table"></table> 55 <tr id="the_row"></tr> 56 </body> 57 </html>