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 tests
Browse files Browse the repository at this point in the history
PR-URL: #177
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kyle Farnung <[email protected]>
  • Loading branch information
kunalspathak committed Feb 28, 2017
1 parent 8fe0274 commit ebeae15
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 18 deletions.
3 changes: 2 additions & 1 deletion test/known_issues/known_issues.status
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ test-stdout-buffer-flush-on-exit: SKIP
[$jsEngine==chakracore]
test-vm-function-redefinition : SKIP
test-vm-inherited_properties : SKIP
test-vm-data-property-writable : SKIP
test-vm-data-property-writable : SKIP
test-vm-attributes-property-not-on-sandbox : SKIP
9 changes: 5 additions & 4 deletions test/message/eval_messages.chakracore.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[eval]
SyntaxError: 'with' statements are not allowed in strict mode
at exports.runInThisContext (vm.js:*)
at createScript (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([eval]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -12,7 +13,7 @@ SyntaxError: 'with' statements are not allowed in strict mode
Error: hello
at Global code ([eval]:1:1)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([eval]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -22,7 +23,7 @@ Error: hello
Error: hello
at Global code ([eval]:1:15)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([eval]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -33,7 +34,7 @@ Error: hello
ReferenceError: Variable undefined in strict mode
at Global code ([eval]:1:28)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([eval]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand Down
9 changes: 5 additions & 4 deletions test/message/stdin_messages.chakracore.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[stdin]
SyntaxError: 'with' statements are not allowed in strict mode
at exports.runInThisContext (vm.js:*)
at createScript (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([stdin]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -12,7 +13,7 @@ SyntaxError: 'with' statements are not allowed in strict mode
Error: hello
at Global code ([stdin]:*)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([stdin]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -22,7 +23,7 @@ Error: hello
Error: hello
at Global code ([stdin]:*)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([stdin]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand All @@ -33,7 +34,7 @@ Error: hello
ReferenceError: Variable undefined in strict mode
at Global code ([stdin]:*)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function ([stdin]-wrapper:*:*)
at Module.prototype._compile (module.js:*:*)
at Anonymous function (bootstrap_node.js:*:*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TypeError: Unable to set property 'bar' of undefined or null reference
at Global code (evalmachine.<anonymous>:1:1)
at Script.prototype.runInContext (vm.js:*)
at Script.prototype.runInNewContext (vm.js:*)
at exports.runInNewContext (vm.js:*)
at 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:*:*)
Expand Down
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 @@ -2,7 +2,7 @@ beginning
Error: boo!
at Global code (test.vm:*)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function (*test*message*vm_display_runtime_error.js:*)
at Module.prototype._compile (module.js:*)
at Module._extensions[.js] (module.js:*)
Expand Down
8 changes: 4 additions & 4 deletions test/message/vm_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
beginning
SyntaxError: Expected identifier
at exports.runInThisContext (vm.js:*)
at createScript (vm.js:*)
at 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:*)
Expand All @@ -9,9 +10,9 @@ SyntaxError: Expected identifier
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (bootstrap_node.js:*)
at startup (bootstrap_node.js:*)
SyntaxError: Expected identifier
at exports.runInThisContext (vm.js:*)
at createScript (vm.js:*)
at 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:*)
Expand All @@ -20,4 +21,3 @@ SyntaxError: Expected identifier
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (bootstrap_node.js:*)
at startup (bootstrap_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 @@ -3,7 +3,7 @@ middle
Error: boo!
at Global code (test.vm:*)
at Script.prototype.runInThisContext (vm.js:*:*)
at exports.runInThisContext (vm.js:*)
at runInThisContext (vm.js:*)
at Anonymous function (*test*message*vm_dont_display_runtime_error.js:*)
at Module.prototype._compile (module.js:*)
at Module._extensions[.js] (module.js:*)
Expand Down
4 changes: 2 additions & 2 deletions test/message/vm_dont_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
beginning
middle
SyntaxError: Expected identifier
at exports.runInThisContext (vm.js:*)
at createScript (vm.js:*)
at 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:*)
Expand All @@ -10,4 +11,3 @@ SyntaxError: Expected identifier
at Module._load (module.js:*)
at Module.runMain (module.js:*)
at run (bootstrap_node.js:*)
at startup (bootstrap_node.js:*)
2 changes: 2 additions & 0 deletions test/parallel/parallel.status
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ test-force-repl-with-eval : SKIP
test-fs-stat : SKIP
test-http-same-map : SKIP
test-intl : SKIP
test-intl-no-icu-data : SKIP
test-icu-transcode : SKIP
test-memory-usage : SKIP
test-promises-unhandled-rejections : SKIP
Expand All @@ -69,6 +70,7 @@ test-vm-create-and-run-in-context : SKIP
test-vm-global-identity : SKIP
test-vm-low-stack-space : SKIP
test-vm-preserves-property : SKIP
test-vm-property-not-on-sandbox : SKIP
test-vm-proxies : SKIP
test-vm-strict-mode : SKIP
test-vm-timeout : SKIP
Expand Down

0 comments on commit ebeae15

Please sign in to comment.