mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
5654c20b27
commit
c3d9e2fdce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user