summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2016-03-13 13:21:02 -0400
committerMike Pennisi <mike@mikepennisi.com>2016-10-19 15:24:22 -0400
commitade6d2e384350055e1e23c35cfbf0d4dab03c82e (patch)
treee50241ad42f245c6a3c0d0df62b902ef9ef82e18 /CONTRIBUTING.md
parent0d4a07ba8c179551fde110a738241da69217db52 (diff)
downloadqtdeclarative-testsuites-ade6d2e384350055e1e23c35cfbf0d4dab03c82e.tar.gz
Remove "NotEarlyError" object
Because expectations regarding error "phase" are now expressed via test meta-data, the test runner may now enforce this requirement on negative tests. Remove the "NotEarlyError" from the project source. This reduces the amount of domain knowledge required to author tests and lessens the potential for inconsistencies between tests.
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md11
1 files changed, 0 insertions, 11 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 25d1b05f4..a3230e9f7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -157,12 +157,6 @@ assert.sameValue(actual, expected, message) | throw a new Test262Error instance
assert.notSameValue(actual, unexpected, message) | throw a new Test262Error instance if the first two arguments are [the same value](http://www.ecma-international.org/ecma-262/6.0/#sec-samevalue); accepts an optional string message for use in creating the error
assert.throws(expectedErrorConstructor, fn) | throw a new Test262Error instance if the provided function does not throw an error, or if the constructor of the value thrown does not match the provided constructor
-The test harness also defines the following objects:
-
-Identifier | Purpose
------------|--------
-NotEarlyError | preconstructed error object used for testing syntax and other early errors; see Syntax Error & Early Error, below
-
```
/// error class
function Test262Error(message) {
@@ -178,8 +172,6 @@ function $ERROR(message) {
function $DONE(arg) {
//[omitted body]
}
-
-var NotEarlyError = new Error(...);
```
## Handling Errors and Negative Test Cases
@@ -193,9 +185,6 @@ negative:
type: SyntaxError
---*/
-// This `throw` statement guarantees that no code is executed in order to
-// trigger the SyntaxError.
-throw NotEarlyError;
var var = var;
```