mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 04:52:54 +00:00
JavaScript Tests - jsDriver.pl doesn't detect all test failures, bug 430509
This commit is contained in:
parent
7ae5ab7eb9
commit
ada5676d79
@ -47,7 +47,6 @@ if (typeof version != 'undefined')
|
||||
version(150);
|
||||
}
|
||||
|
||||
var FAILED = "FAILED!: ";
|
||||
var STATUS = "STATUS: ";
|
||||
var VERBOSE = false;
|
||||
var SECT_PREFIX = 'Section ';
|
||||
@ -77,8 +76,8 @@ var BUGNUMBER = "";
|
||||
* constant strings
|
||||
*/
|
||||
var GLOBAL = "[object global]";
|
||||
var PASSED = " PASSED!";
|
||||
var FAILED = " FAILED! expected: ";
|
||||
var PASSED = " PASSED! ";
|
||||
var FAILED = " FAILED! ";
|
||||
|
||||
var DEBUG = false;
|
||||
|
||||
@ -741,9 +740,8 @@ function writeTestCaseResult( expect, actual, string ) {
|
||||
return passed;
|
||||
}
|
||||
function writeFormattedResult( expect, actual, string, passed ) {
|
||||
var s = string ;
|
||||
s += ( passed ) ? PASSED : FAILED + expect;
|
||||
print( s);
|
||||
var s = ( passed ? PASSED : FAILED ) + string + ' expected: ' + expect;
|
||||
print(s);
|
||||
return passed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user