Bug 778725 - Fix program error managing snapshot errors in b2g reftests, r=jgriffin

This commit is contained in:
Andrew Halberstadt 2012-08-15 17:36:52 -04:00
Родитель bc5de6f5f3
Коммит 0c2afaa887
1 изменённых файлов: 0 добавлений и 7 удалений

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

@ -466,18 +466,12 @@ function WaitForTestEnd(contentRootElement, inPrintMode) {
MakeProgress();
}
#if REFTEST_B2G
function OnDocumentLoad()
{
var currentDoc = content.document;
#else
function OnDocumentLoad(event)
{
var currentDoc = content.document;
if (event.target != currentDoc)
// Ignore load events for subframes.
return;
#endif
if (gClearingForAssertionCheck &&
currentDoc.location.href == BLANK_URL_FOR_CLEARING) {
@ -818,7 +812,6 @@ function SendUpdateCanvasForEvent(event)
}
#if REFTEST_B2G
OnInitialLoad();
OnDocumentLoad();
#else
addEventListener("load", OnInitialLoad, true);
#endif