Skip to content

Commit

Permalink
Improve test robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo authored and ptomato committed Feb 10, 2024
1 parent 257a7c3 commit 3c4e1ce
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,16 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
---*/

// Because this test concerns the interpretation of non-executable character
// sequences within ECMAScript source code, special care must be taken to
// ensure that executable code is evaluated as expected.
//
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,16 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
---*/

// Because this test concerns the interpretation of non-executable character
// sequences within ECMAScript source code, special care must be taken to
// ensure that executable code is evaluated as expected.
//
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,16 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
---*/

// Because this test concerns the interpretation of non-executable character
// sequences within ECMAScript source code, special care must be taken to
// ensure that executable code is evaluated as expected.
//
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");

0 comments on commit 3c4e1ce

Please sign in to comment.