mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Add crashtests.
This commit is contained in:
parent
e22850dd2b
commit
3ae5b97a28
33
content/html/content/crashtests/339501-1.xhtml
Normal file
33
content/html/content/crashtests/339501-1.xhtml
Normal 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>
|
33
content/html/content/crashtests/339501-2.xhtml
Normal file
33
content/html/content/crashtests/339501-2.xhtml
Normal 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>
|
@ -1,3 +1,5 @@
|
||||
load 307616-1.html
|
||||
load 324918-1.xhtml
|
||||
load 338649-1.xhtml
|
||||
load 339501-1.xhtml
|
||||
load 339501-2.xhtml
|
||||
|
Loading…
Reference in New Issue
Block a user