Bug 864686: Make reftest harness print test URL when there is one. r=heycam

I think the case in this bug is the RecvException case.
This commit is contained in:
L. David Baron 2013-05-29 16:06:35 +08:00
parent 034354edf3
commit 6dd6e81635

View File

@ -1504,7 +1504,7 @@ function RecordResult(testRunTime, errorMsg, scriptResults)
gCurrentCanvas = gURICanvases[gCurrentURL];
}
if (gCurrentCanvas == null) {
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | | program error managing snapshots\n");
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | " + gCurrentURL + " | program error managing snapshots\n");
++gTestResults.Exception;
}
if (gState == 1) {
@ -1817,7 +1817,7 @@ function RecvContentReady()
function RecvException(what)
{
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | | "+ what +"\n");
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | " + gCurrentURL + " | " + what + "\n");
++gTestResults.Exception;
}
@ -1840,7 +1840,7 @@ function RecvLog(type, msg)
} else if (type == "warning") {
LogWarning(msg);
} else {
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | | unknown log type "+ type +"\n");
gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | " + gCurrentURL + " | unknown log type " + type + "\n");
++gTestResults.Exception;
}
}