1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/tests/mochitest/treeupdate/test_bug883708.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<head> 1.6 + <script type="application/javascript" 1.7 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.8 + 1.9 +<script> 1.10 + 1.11 +function boom() 1.12 +{ 1.13 + var newSpan = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); 1.14 + c.insertBefore(newSpan, d); 1.15 + a.style.visibility = "visible"; 1.16 + ok(true, "test didn't crash or assert"); 1.17 + SimpleTest.finish(); 1.18 +} 1.19 + 1.20 +</script> 1.21 +</head> 1.22 + 1.23 +<body onload="boom();"> 1.24 + <a target="_blank" 1.25 + title="test reparenting accessible subtree when inaccessible element becomes accessible" 1.26 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=883708"> 1.27 + Mozilla Bug 883708 1.28 + </a> 1.29 + 1.30 + <p id="display"></p> 1.31 + <div id="content" style="display: none"></div> 1.32 + <pre id="test"> 1.33 + </pre> 1.34 + 1.35 +<div style="visibility: collapse;" id="a"><div style="float: right; visibility: visible;"><div id="c"><td id="d"></td></div></div></div></body> 1.36 +</html>