Bug 1023344: Use MozReftestInvalidate to make 876074-1.html's behavior more reliable. r=mats

This commit is contained in:
Daniel Holbert 2014-09-05 15:03:59 -07:00
parent bf881ddde5
commit 93e016a256

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html class="reftest-wait">
<head>
<meta charset="UTF-8">
<script>
@ -7,11 +7,14 @@
function boom()
{
document.getElementById("c").style.content = "'x'";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", boom, false);
</script>
</head>
<body style="display: inline-flex;" onload="boom();"><div></div><div style="display: table-caption;"></div><canvas id="c"></canvas></body>
<body style="display: inline-flex;"><div></div><div style="display: table-caption;"></div><canvas id="c"></canvas></body>
</html>