Bug 459443 follow-up: tweak reftest so that it doesn't fail randomly (no code changes). r=bz

This commit is contained in:
Daniel Holbert 2009-01-20 15:02:03 -08:00
parent 00ae6eea4f
commit 964e50606a

View File

@ -13,7 +13,11 @@
f.document.designMode='on';
f.location = 'data:text/html;charset=utf-8,<body>FAIL<script>document.body.innerHTML="PASS"<\/script>';
n.addEventListener("load",
function() { document.documentElement.className = ''; },
function() {
setTimeout(
"document.documentElement.className = ''", 0
);
},
false);
}, 0);
};