Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: fixed unit test for error message
Browse files Browse the repository at this point in the history
With this there is one extra failure in `parallel/test-repl` that
I will investigate later.

PR-URL: #79
Reviewed-By: Jianchun Xu <Jianchun.Xu@microsoft.com>
  • Loading branch information
kunalspathak committed Jun 16, 2016
1 parent 8b48ffd commit b3610fe
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/message/core_line_numbers.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RangeError: Invalid input
at tryModuleLoad (module.js:*)
at Module._load (module.js:*:*)
at Module.runMain (module.js:*:*)
at startup (node.js:*:*)
at run (node.js:*:*)
1 change: 1 addition & 0 deletions test/message/nexttick_throw.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ ReferenceError: 'undefined_reference_error_maker' is undefined
at _combinedTickCallback (internal/process/next_tick.js:*:*)
at _tickCallback (internal/process/next_tick.js:*:*)
at Module.runMain (module.js:*:*)
at run (node.js:*:*)
at startup (node.js:*:*)
at Anonymous function (node.js:*:*)
2 changes: 1 addition & 1 deletion test/message/vm_display_runtime_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Error: boo!
at tryModuleLoad (module.js:*)
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at startup (node.js:*)
at run (node.js:*)
4 changes: 2 additions & 2 deletions test/message/vm_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SyntaxError: Expected identifier
at tryModuleLoad (module.js:*)
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (node.js:*)
at startup (node.js:*)
at Anonymous function (node.js:*)
SyntaxError: Expected identifier
at exports.runInThisContext (vm.js:*)
at Anonymous function (*test*message*vm_display_syntax_error.js:*)
Expand All @@ -19,5 +19,5 @@ SyntaxError: Expected identifier
at tryModuleLoad (module.js:*)
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (node.js:*)
at startup (node.js:*)
at Anonymous function (node.js:*)
2 changes: 1 addition & 1 deletion test/message/vm_dont_display_runtime_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Error: boo!
at tryModuleLoad (module.js:*)
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at startup (node.js:*)
at run (node.js:*)
2 changes: 1 addition & 1 deletion test/message/vm_dont_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ SyntaxError: Expected identifier
at tryModuleLoad (module.js:*)
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (node.js:*)
at startup (node.js:*)
at Anonymous function (node.js:*)
6 changes: 6 additions & 0 deletions test/parallel/test-debug-brk-no-arg.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;

if (common.isChakraEngine) {
console.log('1..0 # Skipped: This test is disabled for chakra engine ' +
'because debugger support is not implemented yet.');
return;
}

const child = spawn(process.execPath, ['--debug-brk=' + common.PORT, '-i']);
child.stderr.once('data', common.mustCall(function() {
child.stdin.end('.exit');
Expand Down

0 comments on commit b3610fe

Please sign in to comment.