Back out failure timeout part of previous change.

This commit is contained in:
dbaron%dbaron.org 2007-02-12 03:45:01 +00:00
Родитель e6db29b3ee
Коммит 7cfc387523
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -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();
}