1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/tests/mochitest/treeupdate/test_bug852150.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<head> 1.6 + <title>Canvas subdom mutation</title> 1.7 + 1.8 + <link rel="stylesheet" type="text/css" 1.9 + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> 1.10 + 1.11 + <script type="application/javascript" 1.12 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.13 + 1.14 + <script type="application/javascript" 1.15 + src="../common.js"></script> 1.16 + <script type="application/javascript" 1.17 + src="../role.js"></script> 1.18 + 1.19 + <script> 1.20 + <![CDATA[ 1.21 + function doTest() 1.22 + { 1.23 + var the_displayNone = getNode("the_displaynone"); 1.24 + var the_table = getNode("the_table"); 1.25 + var the_row = getNode("the_row"); 1.26 + ok(isAccessible(the_table), "table should be accessible"); 1.27 + the_displayNone.appendChild(the_table); 1.28 + ok(!isAccessible(the_table), "table in display none tree shouldn't be accessible"); 1.29 + 1.30 + setTimeout(function() { 1.31 + document.body.removeChild(the_row); 1.32 + // make sure no accessibles have stuck around. 1.33 + ok(!isAccessible(the_row), "row shouldn't be accessible"); 1.34 + ok(!isAccessible(the_table), "table shouldn't be accessible"); 1.35 + ok(!isAccessible(the_displayNone), "display none things shouldn't be accessible"); 1.36 + SimpleTest.finish(); 1.37 + }, 0); 1.38 + } 1.39 + 1.40 + SimpleTest.waitForExplicitFinish(); 1.41 + addA11yLoadEvent(doTest); 1.42 + ]]> 1.43 + </script> 1.44 +</head> 1.45 +<body> 1.46 + 1.47 + <a target="_blank" 1.48 + title="test accessible removal when reframe root isn't accessible" 1.49 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=852150"> 1.50 + Mozilla Bug 852150 1.51 + </a> 1.52 + 1.53 + <p id="display"></p> 1.54 + <div id="content" style="display: none"></div> 1.55 + <pre id="test"> 1.56 + </pre> 1.57 + 1.58 + <div id="the_displaynone" style="display: none;"></div> 1.59 + <table id="the_table"></table> 1.60 + <tr id="the_row"></tr> 1.61 +</body> 1.62 +</html>