Commit Graph

2023 Commits

Author SHA1 Message Date
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
jugglinmike 66bd632bae Lint test `features` tag (#1060)
A recent commit introduced a document that enumerated acceptable values
for the test "features" metadata tag. However, this list was incomplete,
and maintaining it placed extra burden on the project owners.

Restructure the document into a machine-readable format. Add entries for
all previously-omitted values. Add in-line documentation with
recommendations for maintenance of the file. Extend the project's
linting tool to validate tests according to the document's contents.
2017-06-12 18:59:14 -03:00
Leo Balter b2bb2f9e5a Merge pull request #1061 from rwaldron/dstr-assignment-invalid-removal
Remove src/dstr-assignment/default/for-await-of.template (invalid)
2017-06-12 18:49:51 -03:00
Rick Waldron 44e19a0fe6 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-12 17:10:27 -04:00
Rick Waldron ff34bf5c73 Remove src/dstr-assignment/default/for-await-of.template (invalid)
Will need to revisit with a function and generator version

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-12 17:10:21 -04:00
Rick Waldron c8574edd9c Merge pull request #968 from littledan/no-let-yield-await-asi
Tests for PR to Prohibit ASI between 'let' and 'yield'/'await'
2017-06-09 13:14:35 -04:00
Rick Waldron 2a0da2efd4 Merge pull request #1053 from rwaldron/rename-src-dstr-assignment-for-await
src/dstr-assignment-async-iteration -> src/dstr-assignment-for-await
2017-05-31 16:27:16 -04:00
Rick Waldron 670731a25e Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-31 16:05:26 -04:00
Rick Waldron 3bff862ca7 src/dstr-assignment-async-iteration -> src/dstr-assignment-for-await
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-31 16:04:56 -04:00
Rick Waldron 60a6a7c81e Merge pull request #1039 from rwaldron/dstr-assignment_for-await-of
[WIP] for-await-of: dstr-assignment, templates & cases
2017-05-31 15:46:40 -04:00
Leo Balter e8fb452df8 Merge pull request #1044 from rwaldron/dstr-binding-async-iteration
Move dstr-binding for-await-of cases and templates to dstr-binding-async-iteration. Fixes gh-1043
2017-05-25 15:39:18 -04:00
Caio Lima 8f5afc2915 Generated tests for computed property Object rest destructuring 2017-05-22 23:05:35 -03:00
Caio Lima 35adcb2a7d Adding case to computed property 2017-05-22 22:24:31 -03:00
Rick Waldron 0a66e9b9de Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 16:03:23 -04:00
Rick Waldron f6dd54eb19 update the async func templates to match async generator templates (error)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 14:18:53 -04:00
Rick Waldron b1620ab5b8 src/dstr-binding-async-iteration => src/dstr-binding-for-await
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 13:23:12 -04:00
Rick Waldron e522cbce57 Update algorithm step definitions
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 13:16:30 -04:00
Rick Waldron befaab57a4 Update cases and templates per review
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 12:48:43 -04:00
Arup Rakshit dabee7bd9b Fix spelling typo. (#1046) 2017-05-22 11:53:38 -04:00
jugglinmike 891467f09a Update lint "whitelist" file and document usage (#1048) 2017-05-22 11:53:20 -04:00
Rick Waldron fd3510dd16 Move async-iteration specific dstr-assignment templates into own src directory
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-19 12:28:38 -04:00
Rick Waldron e4b64ecc59 Merge pull request #1041 from leobalter/global-code
Remove more unnecessary tests
2017-05-18 16:07:31 -04:00
Rick Waldron 30ace1206e Merge pull request #1042 from leobalter/tr104
Update TR 104
2017-05-18 16:07:21 -04:00
Leo Balter b1ca9c0222
Add link in the README file 2017-05-18 15:53:41 -04:00
Leo Balter 2883aa3b5f
Update TR-104 with released version 2017-05-18 15:47:35 -04:00
Leo Balter 06f2f3e810
Remove more unnecessary tests
These tests are not helpful for their respective APIs being tested.

They don't add any coverage for the built-in apis and basically check
behaviors that might conflict with a implementation defined global.
2017-05-17 19:33:54 -04:00
Rick Waldron 5c8f4db9d7 Merge pull request #1040 from leobalter/remove-unnecessary-tests
Remove unnecessary tests
2017-05-17 15:46:04 -04:00
Rick Waldron d4fde0a5c3 for-await-of: dstr-assignment, cases
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-17 15:31:50 -04:00
Leo Balter 715b9052cf
Remove unnecessary tests
These tests are not adding any coverage to the respective API they
should be covering.

There are other files checking cases for array-like objects, and
playing this with the global might cause issues and unnexpected
behavior on specific environments like browsers.
2017-05-17 15:27:51 -04:00
Mathias Bynens d587abccdb Fix test involving a Unicode property escape in a character class range (#1034)
Thanks to @anba for spotting this: 4843f049fa (r116528031)
2017-05-17 13:07:50 -04:00
Rick Waldron a9fa392c11 Merge pull request #1038 from leobalter/fix-features-flags
Fix features flags
2017-05-16 17:34:32 -04:00
Leo Balter dde12905df
Generate tests 2017-05-16 17:32:25 -04:00
Leo Balter 26b0437c4f
Fix features flags 2017-05-16 17:31:32 -04:00
Rick Waldron 9f3b85fb21 for-await-of: dstr-assignment, default template
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-16 13:24:41 -04:00
Rick Waldron 2b0a8cc1c4 Merge pull request #1037 from leobalter/asyncIterators
Add templates for dstr-binding w/ for-await-of looping over async iterators
2017-05-16 09:25:23 -04:00