Commit Graph

51 Commits

Author SHA1 Message Date
Cam Tenny 4d9d5c570d Refactor simple cases of (IIFE/async function).then(\$DONE, \$DONE); to use asyncTest 2023-02-21 11:04:09 -08:00
rwaldron 77cc528526 Generate tests 2021-07-22 15:31:36 -04:00
Stuart Cook c11d6b00bc
Add a test for `for await (async of` (#2982) 2021-05-04 15:05:45 -04:00
jmdyck 11624af8d0
Update "info" field (#2941)
The quoted spec wording changed in ecma262#1694.
2021-01-28 16:03:01 -08:00
Rick Waldron b25e36cdb6 Generate tests 2020-09-10 16:22:34 -04:00
Rick Waldron 362d7af20f Generate tests 2020-06-24 15:47:49 -04:00
Alexey Shvayka 7f53ea671c Add for/of tests 2020-06-03 13:25:03 -04:00
Alexey Shvayka df59ad6134 Add AsyncIteratorClose tests 2020-04-02 11:25:58 -04:00
jugglinmike 5757d60e17 Correct syntax in generated tests (#2373)
Prior to the application of this patch, the modified test template
included an unintentional syntax error. This caused all generated tests
to spuriously satisfy the expectation for an error.

Correct the syntax in the test template and regenerate the tests,
ensuring that when engines report a syntax error, they are demonstrating
the behavior which the tests were designed to verify.
2019-09-27 16:22:56 -04:00
Leo Balter 5d84854f27
Avoid usage of Object.keys when asserting order of returned values (#2320)
Fixes #2226
2019-09-04 11:38:18 -03:00
Aleksey Shvayka 465d0b587e Add for-of tests with bogus initializers (#2182) 2019-05-29 15:37:52 -04:00
André Bargull c843ff0228 Test for abrupt completion of PromiseResolve in AsyncFromSyncIteratorContinuation
Issue: tc39/ecma262#1461
PR: tc39/ecma262#1470
2019-03-11 10:34:44 -07:00
André Bargull 9d711fdf11 Add test for "constructor" lookups and correct job order in for-await loop 2019-03-11 10:34:40 -07:00
Leo Balter dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00
Rick Waldron f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
Mathias Bynens b9daa57dcb Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
Mathias Bynens e3feffb01e Move `throw "…"` for negative parsing errors to a helper function
Closes #1634.
2018-10-23 13:51:16 +02:00
Leo Balter 46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
Mike Pennisi 136110378b Rename negative test "phase" for parsing
Early errors may result from parsing the source text of a test file, but
they may also result from parsing some other source text as referenced
through the ES2015 module syntax. The latter form of early error is not
necessarily detectable by ECMAScript parsers, however. Because of this,
the label "early" is not sufficiently precise for all Test262 consumers
to correctly interpret all tests.

Update the "phase" name of "early" to "parse" for all those negative
tests that describe errors resulting from parsing of the file's source
text directly. A forthcoming commit will update the remaining tests to
use a "phase" name that is more specific to module resolution.
2018-01-05 15:17:50 -05:00
Rick Waldron 92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Leo Balter b3092c61b6 Add generators flags for tests depending on generators features (#1259)
* Add missing generators feature flags

* Generate files

* Add generators flags

* fixup! Add generators flags
2017-10-04 16:12:34 -04:00
André Bargull 58111fff7b Regenerate tests 2017-09-16 17:00:55 +02:00
Leo Balter 9f526c0bcd Re-generate tests 2017-09-08 10:13:50 -04:00
Leo Balter 7630235d5d Re-generate tests 2017-09-08 10:13:36 -04:00
Leo Balter 9376782c6e Regenerate tests 2017-09-07 15:51:13 -04:00
André Bargull 76ff88ff2f Regenerate tests 2017-09-04 09:42:06 -04:00
Leo Balter 1624816d81 Re-Generate tests 2017-08-18 18:16:55 -04:00
Leo Balter eb93f96911 Merge pull request #1182 from rwaldron/1181
features: generator => generators. Fixes gh-1181
2017-08-18 17:19:01 -04:00
Rick Waldron 3ca040f892 Throw away tests 2017-08-18 17:11:02 -04:00
Rick Waldron dffbe50668 Generate tests 2017-08-16 15:11:44 -04:00
Rick Waldron cc70c52547 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-25 10:55:29 -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 44e19a0fe6 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-12 17:10:27 -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 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
Rick Waldron 0a66e9b9de Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 16:03:23 -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
Leo Balter 8d7e98265c
Generate tests 2017-05-15 16:02:44 -04:00
Leo Balter 5204678e8f
Generate tests 2017-05-15 15:25:33 -04:00
Leo Balter 17b13b9d01 Merge pull request #1020 from rwaldron/dstr-binding_for-await-of-async-gen-func-error
for-await-of: dstr-binding, error, async func & async gen templates
2017-05-12 18:28:39 -04:00
Rick Waldron 5f274a8581
Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-12 16:01:41 -04:00
Leo Balter 5f04d2b1f3
Generate tests 2017-05-10 14:08:35 -04:00
Leo Balter ed714d702a Merge pull request #1017 from anba/expr-lookahead-restr
Expression statement lookahead restriction and identifier tests
2017-05-09 18:38:11 -04:00
Rick Waldron 278c9ad994 Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 15:04:08 -04:00
Rick Waldron c3c8d6f099 for-await-of: dstr-binding, error, async func & async gen templates
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 12:51:55 -04:00
André Bargull 3d8fe2af4c Add tests for contextual keywords with escape sequences 2017-05-02 12:09:29 -07:00
André Bargull 7a86baee7d Add lookahead restriction tests for "let [" in expression statement contexts 2017-05-02 12:09:28 -07:00
Rick Waldron 376d9a57a7 Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -04:00