Bug 541396 - Intermittent failure in test_fallback.html | Fallback page displayed for top level document, r=jst, a=test-only-change

This commit is contained in:
Honza Bambas 2010-12-15 19:30:01 +01:00
parent 5654c20b27
commit c3d9e2fdce

View File

@ -20,7 +20,6 @@
var gStep = 1;
var gChildLoad = false;
var gTopWindow = null;
var gCompleteTimeout = null;
function manifestUpdated()
{
@ -65,13 +64,9 @@ function onFallbackLoad(fallbackIdentification)
// Try opening a non-existing page as a top level document. It must
// fall to fallbackTop.html that identifies it self as '100'.
gCompleteTimeout = window.setTimeout(function() {
OfflineTest.ok(false, "Fallback page displayed for top level document");
finalize();
}, 3000);
gTopWindow = window.open("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace2/non-existing.html");
// Invokes load of fallbackTop.html
gTopWindow = window.open("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace2/non-existing.html");
break;
case 005:
@ -87,8 +82,7 @@ function onFallbackLoad(fallbackIdentification)
gTopWindow.close();
gTopWindow = null;
window.clearTimeout(gCompleteTimeout);
gCompleteTimeout = null;
break;
}