forked from nodejs/node-chakracore
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fixed unittest for Chakra engine
There were certain unittest that depends specifically on v8 internals and/or engine specific error message. This change adds if-else to expect different error message for Chakra engine or skip running test case if it test v8 internals not present in Chakra or if it test features unimplemented by chakrashim. Modified test python script to take engine name depending on which it will match the baselines for v8 vs. chakracore engine.
- Loading branch information
1 parent
73d9093
commit 42bc284
Showing
51 changed files
with
282 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
RangeError: Invalid input | ||
at error (punycode.js:67:*) | ||
at decode (punycode.js:*:*) | ||
at Anonymous function (*test*message*core_line_numbers.js:*:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) | ||
at Anonymous function (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Exiting with code=1 | ||
AssertionError: 1 == 2 | ||
at Anonymous function (*test*message*error_exit.js:*:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ReferenceError: 'undefined_reference_error_maker' is undefined | ||
at Anonymous function (*test*message*nexttick_throw.js:*:*) | ||
at nextTickCallbackWith0Args (node.js:*:*) | ||
at _tickCallback (node.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) | ||
at Anonymous function (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
before | ||
Error: Out of stack space |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MyCustomError: This is a custom message |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
before | ||
[object Object] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[object Object] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
null |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
undefined |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ReferenceError: 'undefined_reference_error_maker' is undefined | ||
at Anonymous function (*test*message*timeout_throw.js:*:*) | ||
at listOnTimeout (timers.js:*:*) |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
test/message/undefined_reference_in_new_context.chakracore.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
before | ||
TypeError: Unable to set property 'bar' of undefined or null reference | ||
at Global code (evalmachine.<anonymous>:1:1) | ||
at Script.prototype.runInNewContext (vm.js:*) | ||
at exports.runInNewContext (vm.js:*) | ||
at Anonymous function (*test*message*undefined_reference_in_new_context.js:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
beginning | ||
SyntaxError: Expected identifier | ||
at exports.runInThisContext (vm.js:*) | ||
at Anonymous function (*test*message*vm_display_syntax_error.js:*) | ||
at Module.prototype._compile (module.js:*) | ||
at Module._extensions[.js] (module.js:*) | ||
at Module.prototype.load (module.js:*) | ||
at Module._load (module.js:*) | ||
at Module.runMain (module.js:*) | ||
at startup (node.js:*) | ||
at Anonymous function (node.js:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
beginning | ||
middle | ||
SyntaxError: Expected identifier | ||
at exports.runInThisContext (vm.js:*) | ||
at Anonymous function (*test*message*vm_dont_display_syntax_error.js:*) | ||
at Module.prototype._compile (module.js:*) | ||
at Module._extensions[.js] (module.js:*) | ||
at Module.prototype.load (module.js:*) | ||
at Module._load (module.js:*) | ||
at Module.runMain (module.js:*) | ||
at startup (node.js:*) | ||
at Anonymous function (node.js:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.