mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Actually increment the errors
counter on failures in test-fixtures.js
/test_fixtures_esprima.js
, so that the test runners won't incorrectly report that the tests passed
This commit is contained in:
parent
cf00516f04
commit
fe9a561d45
2 changed files with 4 additions and 0 deletions
2
external/builder/test-fixtures.js
vendored
2
external/builder/test-fixtures.js
vendored
|
@ -30,6 +30,8 @@ ls('*-expected.*').forEach(function(expectationFilename) {
|
||||||
out = ('Error: ' + e.message).replace(/^/gm, '//');
|
out = ('Error: ' + e.message).replace(/^/gm, '//');
|
||||||
}
|
}
|
||||||
if (out !== expectation) {
|
if (out !== expectation) {
|
||||||
|
errors++;
|
||||||
|
|
||||||
echo('Assertion failed for ' + inFilename);
|
echo('Assertion failed for ' + inFilename);
|
||||||
echo('--------------------------------------------------');
|
echo('--------------------------------------------------');
|
||||||
echo('EXPECTED:');
|
echo('EXPECTED:');
|
||||||
|
|
2
external/builder/test-fixtures_esprima.js
vendored
2
external/builder/test-fixtures_esprima.js
vendored
|
@ -33,6 +33,8 @@ ls('*-expected.*').forEach(function(expectationFilename) {
|
||||||
out = ('Error: ' + e.message).replace(/^/gm, '//');
|
out = ('Error: ' + e.message).replace(/^/gm, '//');
|
||||||
}
|
}
|
||||||
if (out !== expectation) {
|
if (out !== expectation) {
|
||||||
|
errors++;
|
||||||
|
|
||||||
echo('Assertion failed for ' + inFilename);
|
echo('Assertion failed for ' + inFilename);
|
||||||
echo('--------------------------------------------------');
|
echo('--------------------------------------------------');
|
||||||
echo('EXPECTED:');
|
echo('EXPECTED:');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue