Back out failure timeout part of previous change.
This commit is contained in:
Родитель
e6db29b3ee
Коммит
7cfc387523
|
@ -53,7 +53,6 @@ var gCanvas;
|
|||
var gURLs;
|
||||
var gState;
|
||||
var gPart1Key;
|
||||
var gFailureTimeout;
|
||||
|
||||
const EXPECTED_PASS = 0;
|
||||
const EXPECTED_FAIL = 1;
|
||||
|
@ -175,8 +174,6 @@ function StartCurrentTest()
|
|||
|
||||
function StartCurrentURI(aState)
|
||||
{
|
||||
gFailureTimeout = setTimeout(LoadFailed, LOAD_FAILURE_TIMEOUT);
|
||||
|
||||
gState = aState;
|
||||
gBrowser.loadURI(gURLs[0]["url" + aState].spec);
|
||||
}
|
||||
|
@ -199,7 +196,6 @@ function IFrameToKey()
|
|||
|
||||
function OnDocumentLoad()
|
||||
{
|
||||
clearTimeout(gFailureTimeout);
|
||||
setTimeout(DocumentLoaded, 0);
|
||||
}
|
||||
|
||||
|
@ -251,11 +247,3 @@ function DocumentLoaded()
|
|||
throw "Unexpected state."
|
||||
}
|
||||
}
|
||||
|
||||
function LoadFailed()
|
||||
{
|
||||
dump("REFTEST UNEXPECTED FAIL (LOADING): " +
|
||||
gURLs[0]["url" + gState].spec + "\n");
|
||||
gURLs.shift();
|
||||
StartCurrentTest();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче