Bug 559932 - intermittent content/html/document/test/test_bug445004.html | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - uri.match(/^http:\/\/([a-z.0-9]*)/) is null; r=bzbarsky a=test-only

--HG--
extra : rebase_source : 98485b1b2582aef9749377c736f59d2352e1ea78
This commit is contained in:
Hiroyuki Ikezoe 2011-01-26 13:52:10 -05:00
parent 005eeb4dea
commit 9a7311e6af

View File

@ -23,7 +23,7 @@ is(window.location.port, "8888", "Unexpected port; fix testcase");
SimpleTest.waitForExplicitFinish(); SimpleTest.waitForExplicitFinish();
var loads = 0; var loads = 1;
function loadStarted() { function loadStarted() {
++loads; ++loads;
@ -35,6 +35,8 @@ function loadEnded() {
} }
} }
window.onload = loadEnded;
function getMessage(evt) { function getMessage(evt) {
ok(evt.data == "start" || evt.data == "end", "Must have start or end"); ok(evt.data == "start" || evt.data == "end", "Must have start or end");
if (evt.data == "start") if (evt.data == "start")