Add two crashtests.

git-svn-id: svn://10.0.0.236/trunk@241213 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jruderman%hmc.edu
2007-12-14 04:09:24 +00:00
parent ecfc444f76
commit 0df27c3a1b
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<script>
function boom()
{
var n = document.getElementById("n");
document.addEventListener("DOMNodeRemoved", foozle, false);
n.parentNode.removeChild(n);
document.removeEventListener("DOMNodeRemoved", foozle, false);
function foozle()
{
document.removeEventListener("DOMNodeRemoved", foozle, false); // prevent accidental recursion
n.parentNode.removeChild(n);
document.documentElement.removeAttribute("class");
}
}
</script>
</head>
<body onload="setTimeout(boom, 30)">
<div id="n"></div>
</body>
</html>

View File

@@ -0,0 +1,35 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<script>
<![CDATA[
var div;
function boo()
{
var newSpan = document.createElement('span');
div = document.getElementById('div');
var newScript = document.createElement('script');
var nt = document.createTextNode("document.body.removeChild(div);");
newScript.appendChild(nt);
newSpan.appendChild(newScript);
div.appendChild(newSpan);
document.documentElement.removeAttribute("class");
}
]]>
</script>
</head>
<body onload="setTimeout(boo, 30);">
<div id="div"></div>
</body>
</html>

View File

@@ -1,3 +1,5 @@
load 325730-1.html
load 326618-1.html
load 326865-1.html
load 338391-1.xhtml
load 343730-1.xhtml