Bug 615923 - mochitests-2: intermittent "test_fallback.html | Exited with code 1 during test run" (ASSERTION: XPConnect is being called on a scope without a 'Components' property!); (Cv1a) test_fallback.html: Remove unused gManifestUpdated, Fix some nits.

r=honzab a=(test only).
DONTBUILD
This commit is contained in:
Serge Gautherie 2010-12-08 01:55:40 +01:00
parent a3bdf40a38
commit 96cc1ded38

View File

@ -17,7 +17,6 @@
* in the application cache.
*/
var gManifestUpdated = false;
var gStep = 1;
var gChildLoad = false;
var gTopWindow = null;
@ -25,7 +24,6 @@ var gCompleteTimeout = null;
function manifestUpdated()
{
gManifestUpdated = true;
fallbackFrame.location = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace1/non-existing.html";
// Invokes load of fallback.html
}
@ -38,7 +36,6 @@ function onFallbackLoad(fallbackIdentification)
OfflineTest.ok(!gChildLoad, "offline child not load before cache update");
gChildLoad = true;
// no break
case 101:
OfflineTest.is(fallbackIdentification, 1, "fallback for namespace1/ in step " + gStep);
@ -75,17 +72,16 @@ function onFallbackLoad(fallbackIdentification)
gTopWindow = window.open("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace2/non-existing.html");
// Invokes load of fallbackTop.html
break;
case 005:
// Try all over again. This checks there are no entries for non-existing
// pages created/leaked. That would prevent fallback load.
gStep = 100;
fallbackFrame.location = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace1/non-existing.html";
// Invokes load of fallback1.html, again, from the start
// no break
case 105:
OfflineTest.is(fallbackIdentification, 100, "fallback for namespace2/, invoked by a top level document " + gStep);
@ -93,12 +89,12 @@ function onFallbackLoad(fallbackIdentification)
gTopWindow = null;
window.clearTimeout(gCompleteTimeout);
gCompleteTimeout = null;
break;
}
if (gStep == 105) {
finalize();
return;
}
++gStep;