Skip to content
Snippets Groups Projects
Commit 81d00def authored by Mike Pennisi's avatar Mike Pennisi Committed by Rick Waldron
Browse files

Force "early error" tests to fail if evaluated

This pattern makes expectations more explicit by making test files more
literal.
parent e5ffc904
No related branches found
No related tags found
No related merge requests found
Showing
with 40 additions and 0 deletions
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var \u0061wait; var \u0061wait;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var await; var await;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void \u0061wait; void \u0061wait;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void await; void await;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
\u0061wait: ; \u0061wait: ;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
await: ; await: ;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var \u0061wait; var \u0061wait;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var await; var await;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void \u0061wait; void \u0061wait;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void await; void await;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
\u0061wait: ; \u0061wait: ;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
await: ; await: ;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var yi\u0065ld; var yi\u0065ld;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var yield; var yield;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void yi\u0065ld; void yi\u0065ld;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void yield; void yield;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
yi\u0065ld: ; yi\u0065ld: ;
...@@ -17,5 +17,7 @@ negative: ...@@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
yield: ; yield: ;
...@@ -19,6 +19,8 @@ negative: ...@@ -19,6 +19,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
return { return {
...(function() { ...(function() {
......
...@@ -12,6 +12,8 @@ negative: ...@@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
(function() { (function() {
var yield; var yield;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment