17 Commits

Author SHA1 Message Date
Rick Waldron
ee3715ee56 Improve assertion handling when comparison causes failure via coercion 2018-10-23 17:25:58 -04:00
Rick Waldron
f247a5fe09 Revert "Improve assertion handling when comparison causes failure via coercion"
This reverts commit c49c35674448da02e355661c0804801aac8937ae.
2018-10-23 17:21:17 -04:00
Rick Waldron
c49c356744 Improve assertion handling when comparison causes failure via coercion 2018-10-23 17:00:47 -04:00
Mathias Bynens
75e8a317a2 Remove assert.throws.early
Negative tests are the better approach for early error tests.

Closes #1622.
2018-08-07 14:35:13 +02:00
Aakash Patel
4fdbb34914 Remove unnecessary uses of let in harness.
The use of `let` is unnecessary here, particularly in a
file that is needed to run any of the tests, even the ES5 tests.
Removing it allows older engines to run older tests.
2017-12-19 15:50:19 -05:00
Rick Waldron
8a2ec34200 harness/*: Eliminate unnecessary uses of features that would require "features: ..." tags 2017-09-08 12:25:44 -04:00
Leo Balter
74cfdfcca3 Remove arrow function syntax from harness/assert.js
After conversations in #1215, we need to catch up with the code that was previously
produced before we set the features flags requirements.
2017-09-08 10:13:23 -04:00
Rick Waldron
4ea2931f16 Update all harness files to pass linting. (#1153)
```
$ python tools/lint/lint.py --whitelist lint.whitelist harness/*.js
Linting 25 files.
Linting complete. 0 errors found.
```

- Renames detachArrayBuffer-$262.detachArrayBuffer.js -> detachArrayBuffer-host-detachArrayBuffer.js (previous naming prevents command-click from terminal)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-14 11:37:24 -04:00
Leo Balter
666f0e920a
Add assert.throws.early 2017-05-01 12:29:52 -04:00
Mathias Bynens
a621155bcd Unify indentation and add .editorconfig (#973) 2017-04-13 10:37:32 -04:00
Leonardo Balter
e7f6cd7f86 assert.throws fails if second argument is not a function 2016-04-15 10:14:54 -04:00
Brian Terlson
8870e7bf34 Merge pull request #394 from smikes/quoted-sameValue-strings
Use guillemets («») to quote string values - fixes #174
2015-08-05 11:20:18 -07:00
smikes
4a6f28f075 Use guillemets («») to quote string values - fixes #174
Expected/actual values should be delimited in a way that
isn't confusable with actual string quotes " '
2015-07-30 20:13:49 -06:00
André Bargull
a4205bac61 B.1.4 extensions are not allowed for Unicode RegExps 2015-07-08 17:19:59 +02:00
Mike Pennisi
c91267235c Extend assertion error messages
When invoked without a custom assertion message, `assert.sameValue` and
`assert.notSameValue` automatically create a message that describes the
actual and expected values.

Extend both assertion methods to also include this information in cases
where a custom message has been specified.
2015-04-21 13:25:02 -04:00
smikes
65e5aa6f79 fix undefined var 2015-02-14 15:02:49 -07:00
Brian Terlson
1f2f7d062f Move assert helper as well 2014-12-09 13:46:53 -08:00