gecko-dev/layout/reftests/reftest-sanity/test-async.html
asqueella%gmail.com 0cb1771f10 fix bug 371026 - reftest: double setTimeout from onload is not late enough for some tests
the fix is to provide a way for the testcase to indicate when it's finished loading.

Also move the reftest self-checks into their own manifest.

r=dbaron
2007-03-07 19:50:02 +00:00

13 lines
317 B
HTML

<html class="reftest-wait">
<body style="background-color: red;"
onload="HandleLoad()">
<script>
function HandleLoad() {
setTimeout(function() {
document.body.style.backgroundColor = "green";
document.documentElement.className = "";
}, 100);
}
</script>
</body>