Add crashtests for bug 459439 and bug 466607

This commit is contained in:
Jesse Ruderman 2009-08-08 16:00:31 -07:00
parent c76fd52119
commit 411d2659ca
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script type="text/javascript">
var i = 0;
function boom()
{
var div = document.getElementById("div");
var audio = document.getElementById("audio");
audio.onload = null;
div.textContent = "FAIL";
audio.src += "";
div.textContent = "PASS?";
++i;
setTimeout(done, 1);
}
function done()
{
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body>
<audio id="audio" autoplay src="../sound.ogg" onload="setTimeout(boom, 1);"></audio>
<div id="div"></div>
</body>
</html>

View File

@ -0,0 +1,14 @@
<html>
<head>
<script type="text/javascript">
function boom()
{
document.body.appendChild(document.createElementNS("bar", "audio"));
document.body.appendChild(document.createElementNS("bar", "video"));
}
</script>
</head>
<body onload="boom();"></body>
</html>

View File

@ -1,3 +1,5 @@
load 459439-1.html
load 466607-1.html
load 468763-1.html
load 474744-1.html
load 493915-1.html