зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f1941ee1f5
Коммит
2d737b01fc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче