Skip to content

Commit 9b80af2

Browse files
committed
Mark failures with "(strict)" or "(non-strict)"
Before: $ test262-harness --hostType jsc --hostPath `which jsc` test/language/function-code/each-param-has-own-*.js FAIL test/language/function-code/each-param-has-own-non-shared-eval-scope.js Expected a ReferenceError to be thrown but no exception was thrown at all FAIL test/language/function-code/each-param-has-own-scope.js Expected a ReferenceError to be thrown but no exception was thrown at all Ran 4 tests 2 passed 2 failed After: $ test262-harness --hostType jsc --hostPath `which jsc` test/language/function-code/each-param-has-own-*.js FAIL test/language/function-code/each-param-has-own-non-shared-eval-scope.js (non-strict) Expected a ReferenceError to be thrown but no exception was thrown at all FAIL test/language/function-code/each-param-has-own-scope.js (non-strict) Expected a ReferenceError to be thrown but no exception was thrown at all Ran 4 tests 2 passed 2 failed
1 parent d83ec55 commit 9b80af2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: lib/reporters/simple.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ function simpleReporter(results) {
1010

1111
clearPassed();
1212
lastPassed = true;
13-
process.stdout.write('PASS ' + test.file);
13+
process.stdout.write(`PASS ${test.file}`);
1414
});
1515

1616
results.on('fail', function (test) {
1717
failed++;
1818
clearPassed();
1919
lastPassed = false;
20-
console.log('FAIL ' + test.file);
21-
console.log(' ' + test.result.message);
20+
console.log(`FAIL ${test.file}${test.strictMode ? ' (strict)' : ' (non-strict)'}`);
21+
console.log(` ${test.result.message}`);
2222
console.log('');
2323
});
2424

2525
results.on('end', function () {
2626
clearPassed();
2727

28-
console.log('Ran ' + (passed + failed) + ' tests')
29-
console.log(passed + ' passed')
30-
console.log(failed + ' failed')
28+
console.log(`Ran ${(passed + failed)} tests`);
29+
console.log(`${passed} passed`);
30+
console.log(`${failed} failed`);
3131
});
3232

3333
function clearPassed() {

0 commit comments

Comments
 (0)