diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2017-05-01 12:29:52 -0400 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2017-05-01 12:29:52 -0400 |
commit | 666f0e920afcf2ba48971818569afa59e5ce83bf (patch) | |
tree | baa1bf2e33f54874b74ecbf8c62c426389d55ee0 /CONTRIBUTING.md | |
parent | 0ad3d51fd908dbb132595e3b41752fe31b30003e (diff) | |
download | qtdeclarative-testsuites-666f0e920afcf2ba48971818569afa59e5ce83bf.tar.gz |
Add assert.throws.early
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8e007afc1..d7e0aeec2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -159,7 +159,8 @@ $DONE(arg) | see Writing Asynchronous Tests, below assert(value, message) | throw a new Test262Error instance if the specified value is not strictly equal to the JavaScript `true` value; accepts an optional string message for use in creating the error assert.sameValue(actual, expected, message) | throw a new Test262Error instance if the first two arguments are not [the same value](https://tc39.github.io/ecma262/#sec-samevalue); accepts an optional string message for use in creating the error assert.notSameValue(actual, unexpected, message) | throw a new Test262Error instance if the first two arguments are [the same value](https://tc39.github.io/ecma262/#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 +assert.throws(expectedErrorConstructor, fn, message) | 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 +assert.throws.early(expectedErrorConstructor, fn) | throw a new Test262Error instance if the provided function does not throw an early error, or if the constructor of the value thrown does not match the provided constructor. This assertion catches only errors that will be parsed through `Function(code)`. ``` /// error class |