Rick Waldron
eaec1ffe2f
async-iteration: yield Promise.reject(value) is treated as throw value (rejects)
...
- http://tc39.github.io/tc39-notes/2017-05_may-25.html#15iva-revisiting-async-generator-yield-behavior
- http://tc39.github.io/tc39-notes/2017-05_may-25.html#conclusionresolution-12
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 12:03:09 -04:00
Leo Balter
bcea4333fc
Merge pull request #1070 from rwaldron/add-missing-harness-tests
...
Add missing harness tests
2017-06-28 12:01:57 -04:00
Rick Waldron
13dfae4da9
Fixes test/harness/nans.js
...
- correction to license
- use Number.isNaN
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
30a4fb13a2
Fix typo in harness/arrayContains.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
a6aa58a44f
harness test: propertyHelper.js (error case)
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
7eef084cf5
harness test: timer.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
c896312175
Update description in test/harness/sta-override-error.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
5165cc11cf
harness test: testTypedArray.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
537ef01882
harness test: fnGlobalObject.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
1839050378
Removes relocated error.js tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
5f5e1655e1
harness test: nan.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
7c9b648d08
harness test: tcoHelper.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
8a5841acdc
harness test: promiseHelper.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
3e85c608da
harness test: sta.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
759ad854e9
harness test: detachArrayBuffer.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
8e360021b8
harness test: decimalToHexString.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
86f03a2ef8
harness test: dateConstants.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
27f3452b33
harness test: arrayContains.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
c9f3ab5610
Temp renaming to get around case ignorance, part 2
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
86209d8fd9
Make all harness/* file names consistent; update occurrences in test
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:58 -04:00
Mike Pennisi
53842533b7
Enforce use of `throw` stmt in early error tests
...
Previously, test consumers were encouraged to insert a `throw` statement
as the first statement of tests for early errors. This recommendation
made tests harder to consume, and as an optional transformation,
consumers may have ignored it or simply been unaware it was made. By
explicitly including such a `throw` statement, the tests become more
literal, making them easier to consume and more transparent in their
expectations.
Document expectation for all tests for early errors to include an
explicit `throw` statement. Extend linting script to verify that
contributors are automatically notified of violations and to ensure that
future contributions satisfy this expectation.
2017-06-28 11:24:36 -04:00
Mike Pennisi
ef76e548a4
Re-generate tests
2017-06-28 11:24:36 -04:00
Mike Pennisi
81d00def42
Force "early error" tests to fail if evaluated
...
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -04:00
Rick Waldron
e5ffc904d6
Adding Symbol to Array.prototype.sort "throws on a non-undefined non-function" ( #1066 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 10:34:05 -04:00
Leo Balter
29e69ddb4e
Merge pull request #1072 from rwaldron/1050-addl
...
Remove tests that allow `...{` in object destructuring. Ref gh-1050
2017-06-28 10:32:21 -04:00
Daniel Ehrenberg
e2ee94f452
Fix tests for toFixed and toExponential ( #1080 )
...
toExponential had a typo, and toFixed was against an earlier version
of the specification proposal. The tests pass against a version of V8
which attempts to implement the new spec.
2017-06-28 10:29:47 -04:00
Sue Lockwood
b07621ded1
update Array/From files ESID to sec-array.from ( #1077 )
2017-06-27 17:12:06 -04:00
Daniel Ehrenberg
c74e1e4edf
Merge pull request #1074 from shvaikalesh/improve-named-groups-coverage
...
Improve named groups coverage
2017-06-27 18:21:08 +02:00
Aleksey Shvayka
ce0ba9b2e6
add escaped substitution test
2017-06-27 00:45:08 +03:00
Rick Waldron
d0ba3251d2
Restore migration to assert.sameValue
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-26 14:36:51 -04:00
Aleksey Shvayka
f7b15e18d4
add empty replace test
2017-06-26 18:57:19 +03:00
Aleksey Shvayka
cb22dad417
add empty references tests
2017-06-26 18:35:16 +03:00
Aleksey Shvayka
c38f1d12b0
add groups object tests
2017-06-23 22:59:57 +03:00
Rick Waldron
2dd8e8b2c4
Throw away tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 13:21:39 -04:00
Rick Waldron
a57ffd11e1
Remove tests that allow `...{` in object destructuring. Ref gh-1050
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 13:15:52 -04:00
Daniel Ehrenberg
a2f44c7151
Additional test for range case pointed out by @anba
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
0e6acc0842
Change test based on new spec version
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
b82be14e26
Add tests for invalid \c in character class
...
This patch implements tests for https://github.com/tc39/ecma262/pull/864
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
ce217fffad
Improve invalid \c escape tests
2017-06-23 12:16:28 -04:00
Rick Waldron
2086f66c55
Update verifyProperty to allow checking `value`
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 11:58:16 -04:00
Rick Waldron
1a2244faf8
Fix all test/harness/*.js tests ( #1068 )
...
$ test262-harness --hostType=d8 -t 4 --hostPath=`which d8` test/harness/*.js
Ran 147 tests
147 passed
0 failed
$ test262-harness --hostType=node -t 4 --hostPath=`which node` test/harness/*.js
Ran 147 tests
147 passed
0 failed
$ test262-harness --hostType=jsshell -t 4 --hostPath=`which js` test/harness/*.js
Ran 147 tests
147 passed
0 failed
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-22 22:25:35 -03:00
Aleksey Shvayka
0d2b3562e9
Add basic Symbol constructor tests ( #1069 )
...
* add Symbol.length test
* add Symbol.name test
* add global.Symbol test
2017-06-22 22:11:26 -03:00
Rick Waldron
e3fa66550f
Merge pull request #930 from littledan/date-tostring-tests
...
Date toString tests
2017-06-22 16:22:08 -04:00
Rick Waldron
8fe11a67a7
Merge pull request #1063 from bakkot/noctal-string
...
Add test that noctal escapes are forbidden in strings in strict code
2017-06-21 13:19:10 -04:00
Kevin Gibbons
1ca752482d
Add test that noctal escapes are forbidden in strings in strict code
2017-06-19 12:03:47 -07:00
Daniel Ehrenberg
2f3787936b
Fix typo from review
2017-06-15 06:25:17 +02:00
Daniel Ehrenberg
0314c87b08
Add tests for Number printing precision ranges ( #932 )
...
These tests are against the needs-consensus pull request at
https://github.com/tc39/ecma262/pull/857
2017-06-12 20:10:15 -03:00
Rick Waldron
c59afa3bd7
CONTRIBUTING.md: Adds 'Source Material' section with 'needs tests' pr list ( #1054 )
2017-06-12 19:29:58 -03:00
Leo Balter
6110675fd3
Merge pull request #1045 from caiolima/obj-rest-computed-prop
...
Adding case to computed property
2017-06-12 19:22:53 -03:00
Jordan Harband
f1c1b33b53
Array.prototype.sort and %TypedArray%.prototype.sort should throw on a non-undefined non-function ( #1059 )
...
Per https://github.com/tc39/ecma262/pull/785/
2017-06-12 19:21:33 -03:00