mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-04 05:32:56 +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);
|
version(150);
|
||||||
}
|
}
|
||||||
|
|
||||||
var FAILED = "FAILED!: ";
|
|
||||||
var STATUS = "STATUS: ";
|
var STATUS = "STATUS: ";
|
||||||
var VERBOSE = false;
|
var VERBOSE = false;
|
||||||
var SECT_PREFIX = 'Section ';
|
var SECT_PREFIX = 'Section ';
|
||||||
@ -77,8 +76,8 @@ var BUGNUMBER = "";
|
|||||||
* constant strings
|
* constant strings
|
||||||
*/
|
*/
|
||||||
var GLOBAL = "[object global]";
|
var GLOBAL = "[object global]";
|
||||||
var PASSED = " PASSED!";
|
var PASSED = " PASSED! ";
|
||||||
var FAILED = " FAILED! expected: ";
|
var FAILED = " FAILED! ";
|
||||||
|
|
||||||
var DEBUG = false;
|
var DEBUG = false;
|
||||||
|
|
||||||
@ -741,9 +740,8 @@ function writeTestCaseResult( expect, actual, string ) {
|
|||||||
return passed;
|
return passed;
|
||||||
}
|
}
|
||||||
function writeFormattedResult( expect, actual, string, passed ) {
|
function writeFormattedResult( expect, actual, string, passed ) {
|
||||||
var s = string ;
|
var s = ( passed ? PASSED : FAILED ) + string + ' expected: ' + expect;
|
||||||
s += ( passed ) ? PASSED : FAILED + expect;
|
print(s);
|
||||||
print( s);
|
|
||||||
return passed;
|
return passed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user