Add crashtests.

This commit is contained in:
jruderman@hmc.edu 2007-12-23 17:06:42 -08:00
parent e22850dd2b
commit 3ae5b97a28
3 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function boom()
{
document.addEventListener("DOMNodeRemoved", foo, false);
remove(document.getElementById("A"));
document.removeEventListener("DOMNodeRemoved", foo, false);
function foo()
{
document.removeEventListener("DOMNodeRemoved", foo, false);
remove(document.getElementById("B"));
}
}
window.addEventListener("load", boom, false);
function remove(q1) { q1.parentNode.removeChild(q1); }
</script>
</head>
<body>
<select><option id="A">A</option><option id="B">B</option></select>
</body>
</html>

View File

@ -0,0 +1,33 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function boom()
{
document.addEventListener("DOMNodeRemoved", foo, false);
remove(document.getElementById("B"));
document.removeEventListener("DOMNodeRemoved", foo, false);
function foo()
{
document.removeEventListener("DOMNodeRemoved", foo, false);
remove(document.getElementById("A"));
}
}
window.addEventListener("load", boom, false);
function remove(q1) { q1.parentNode.removeChild(q1); }
</script>
</head>
<body>
<select><option id="A">A</option><option id="B">B</option></select>
</body>
</html>

View File

@ -1,3 +1,5 @@
load 307616-1.html
load 324918-1.xhtml
load 338649-1.xhtml
load 339501-1.xhtml
load 339501-2.xhtml