Bug 573524 - Try to run the test on load to see if it fixes the intermittent orange; r=ehsan a=test-only

This commit is contained in:
Mounir Lamouri 2010-10-30 01:31:45 +02:00
parent 26d1fb1d3e
commit 8bb5d45783

View File

@ -20,6 +20,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=404320
/** Test for Bug 404320 **/
SimpleTest.waitForExplicitFinish();
var win = document.getElementById("testIframe").contentWindow;
var doc = document.getElementById("testIframe").contentDocument;
@ -76,8 +78,13 @@ var badTags = [ "b",
"span",
"foo" ];
formatBlockTests(goodTags, true);
formatBlockTests(badTags, false);
function runTests() {
formatBlockTests(goodTags, true);
formatBlockTests(badTags, false);
SimpleTest.finish();
}
addLoadEvent(runTests);
</script>
</pre>