mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Make mochitest print the amount of time each test takes. (Bug 482162) r=ted
This commit is contained in:
parent
aedb18a96b
commit
48ff3035cf
@ -181,9 +181,12 @@ TestRunner.runNextTest = function() {
|
||||
* This stub is called by SimpleTest when a test is finished.
|
||||
**/
|
||||
TestRunner.testFinished = function(tests) {
|
||||
if (TestRunner.logEnabled)
|
||||
TestRunner.logger.debug("SimpleTest finished " +
|
||||
TestRunner._urls[TestRunner._currentTest]);
|
||||
if (TestRunner.logEnabled) {
|
||||
var runtime = new Date().valueOf() - TestRunner._currentTestStartTime;
|
||||
TestRunner.logger.log("SimpleTest finished " +
|
||||
TestRunner._urls[TestRunner._currentTest] +
|
||||
" in " + runtime + "ms");
|
||||
}
|
||||
|
||||
TestRunner.updateUI(tests);
|
||||
TestRunner._currentTest++;
|
||||
|
Loading…
Reference in New Issue
Block a user