Bug 877824 - log proper TEST-START and TEST-END points for reftests; r=dbaron

This commit is contained in:
Nathan Froyd 2013-05-30 16:14:46 -04:00
parent a52e529c14
commit 3cd577bf25

View File

@ -1146,6 +1146,7 @@ function StartCurrentTest()
DoneTests();
}
else {
gDumpLog("REFTEST TEST-START | " + gURLs[0].prettyPath + "\n");
var currentTest = gTotalTests - gURLs.length;
gContainingWindow.document.title = "reftest: " + currentTest + " / " + gTotalTests +
" (" + Math.floor(100 * (currentTest / gTotalTests)) + "%)";
@ -1243,7 +1244,7 @@ function StartCurrentURI(aState)
gContainingWindow.setTimeout(RecordResult, 0);
} else {
var currentTest = gTotalTests - gURLs.length;
gDumpLog("REFTEST TEST-START | " + gCurrentURL + " | " + currentTest + " / " + gTotalTests +
gDumpLog("REFTEST TEST-LOAD | " + gCurrentURL + " | " + currentTest + " / " + gTotalTests +
" (" + Math.floor(100 * (currentTest / gTotalTests)) + "%)\n");
LogInfo("START " + gCurrentURL);
var type = gURLs[0].type
@ -1713,6 +1714,8 @@ function DoAssertionCheck(numAsserts)
}
}
gDumpLog("REFTEST TEST-END | " + gURLs[0].prettyPath + "\n");
// And start the next test.
gURLs.shift();
StartCurrentTest();