1261 Commits

Author SHA1 Message Date
Leo Balter
dc2da1558f Add tests for the resolved namespace obj 2018-10-11 11:09:48 -04:00
Leo Balter
070198fbad Generate tests 2018-10-11 11:09:47 -04:00
Leo Balter
f8fda5b6d2 Remove nested-with template for usage/catch tests
This should be well covered in the syntax templates and opens the path for tests with module code restrictions
2018-10-11 11:09:47 -04:00
Leo Balter
b0ec060e62 Add more cases for Dynamic Imports usage
- Add cases for mixing module and script code
- Rename test case from return promise to thenable
- Fix script code case with valid loaded fixture
- Add a test to assert a promise return
- Add case for specifier toString rejection
- Add case for specifier toString
- Test Assignment expression abrupt completion
- Test Promise return
2018-10-11 11:09:47 -04:00
Leo Balter
3450ed544e fix linting 2018-10-08 13:32:28 -04:00
Leo Balter
874f508077 Generate tests 2018-10-08 11:41:21 -04:00
Leo Balter
9e4fc1b1c2 Generate tests 2018-10-08 11:05:09 -04:00
Mike Pennisi
aac38cb368 Normalize coverage for var declarations
Add tests to mirror similar tests which were authored previously.
2018-10-07 16:49:50 -04:00
Mike Pennisi
b819c597ab Remove redundant test
This behavior is covered by another test in this directory:
`arguments-strict-single.js`. Although the syntax error happens to occur
within the body of a function expression, this distinction is not
significant enough to warrant the test's presence nor does it motivate
the introduction of many similar negative syntax tests which are
currently unavailable.
2018-10-07 16:49:49 -04:00
Mike Pennisi
6b00c8fbfe Rename and refactor tests
The tests for the parsing of variable declarations were expressed using
eval. This made the tests more complex than necessary and also prevented
the tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text.
2018-10-07 16:49:49 -04:00
Mike Pennisi
ceb79988ae Relocate and refactor tests
The tests for the parsing of `for/in` loops were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Move the tests to the `for-in` directory to better reflect
the grammar production that they test.
2018-10-07 16:48:42 -04:00
Mike Pennisi
835c202b36 Remove redundant and irrelevant tests
Two tests placed within the "variable" directory do not include a variable
declaration. Because the behavior they assert is covered by an existing
test (test/language/arguments-object/10.5-1gs.js), they may be removed
without reducing coverage.
2018-10-07 16:43:08 -04:00
Leo Balter
3589fa9d82 Generate Tests 2018-10-05 17:17:41 -04:00
Leo Balter
8e28caa214 Add more coverage to dynamic import
- Add cases for invalid syntax
- Add valid cases
- nested imports
- add non existent file case
- Fix cases and templates to use a full importcall expr token
- add case for call expression position
- remove unnecessary module flag from templates
- Add templates for nested with
2018-10-05 17:17:32 -04:00
Leo Balter
00cfe1628c
Merge pull request #1831 from leobalter/1829-dyn-import-fixes
[dynamic import] Fix async test to verify completion
2018-10-05 12:41:12 -04:00
Timothy Gu
140d922d4c Add async-functions feature to more files (#1830) 2018-10-05 10:37:21 -04:00
Leo Balter
18f1225570 Generate tests 2018-10-05 10:33:48 -04:00
Leo Balter
754fe94c5d fixup! Generate tests 2018-10-04 16:21:11 -04:00
Rick Waldron
a7ba033337 Generate tests 2018-10-04 16:21:11 -04:00
Leo Balter
d92d35605b missing fixup 2018-10-04 16:16:35 -04:00
Leo Balter
292fd0c956 fix test in module/script modes 2018-10-04 16:16:35 -04:00
Leo Balter
7f69f1c6bf Generate tests 2018-10-04 16:16:35 -04:00
Leo Balter
dac8fd4975 Recover Fixture files 2018-10-04 16:16:35 -04:00
Leo Balter
b13b5b9843 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
724e3d7ccb Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
7347b2a121 fix fixtures folders and nit picking on tests 2018-10-04 16:16:35 -04:00
Leo Balter
0a18f4068b remove duplicates, fix fixture folder 2018-10-04 16:16:35 -04:00
Leo Balter
1846d33c29 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
54689ffa69 Update checklist and other fixups 2018-10-04 16:16:35 -04:00
Leo Balter
e8305a7920 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
24d1a78015 fix folders to fixtures 2018-10-04 16:16:35 -04:00
Leo Balter
bc13b8a7c1 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
fdcb06e093 move catch tests to a separate folder 2018-10-04 16:16:35 -04:00
Leo Balter
6150f24d25 Regenerate tests 2018-10-04 16:16:35 -04:00
Rick Waldron
90e69a3b59 Dynamic Imports: eval export default class imports 2018-10-04 16:16:35 -04:00
Rick Waldron
a3eef3f39f Generate tests 2018-10-04 16:16:35 -04:00
Rick Waldron
c77078809c Dynamic Imports: initial cases, templates, non-generated tests and fixtures 2018-10-04 16:16:35 -04:00
Leo Balter
5896ba49be Generate tests 2018-10-04 10:32:01 -04:00
Leo Balter
48cf391412
Revert "Fix "undefiend" typo in unreserved-words.js (#1816)" (#1819)
This reverts commit 7e65999731cb6cd6fab10a92e8b7bd39a6b0793c.
2018-10-03 17:11:05 -04:00
Andrew McCreight
7e65999731 Fix "undefiend" typo in unreserved-words.js (#1816)
I'm not an expert on this, but I'm pretty sure this is supposed to be "undefined" not "undefiend".
2018-10-03 15:14:41 -04:00
Leo Balter
46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
jugglinmike
42ed4291f5 Refactor increment/decrement tests for parsers (#1786)
The tests for the parsing of postfix increment, postfix decrement,
prefix increment, and prefix decrement were expressed using `eval`.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of `eval` and instead express the expectations with
literal source text.
2018-09-24 12:29:30 -04:00
Kubilay Kahveci
395adc3a7c Generate tests 2018-09-18 14:16:20 -04:00
Leo Balter
317cacdcc9 Fix test generation 2018-09-13 14:55:32 -04:00
Rick Waldron
5c02a094cb Generate tests 2018-09-13 10:23:49 -04:00
Rick Waldron
6bedd8f1c6
Merge pull request #1717 from leobalter/1711-fixes
Apply fixes on recent class element tests
2018-09-11 11:22:43 -04:00
Rick Waldron
2c714ede1d
Merge pull request #1719 from leobalter/private-fields-methods-whitespace-syntax-error
Private fields and methods whitespace syntax error
2018-09-11 11:20:44 -04:00
Leo Balter
a17484e230 Generate Tests 2018-09-10 17:13:06 -04:00
Leo Balter
b056d138fa generate tests 2018-09-10 14:15:40 -04:00
Leo Balter
5cdbf084a7 Generate tests 2018-09-10 14:13:39 -04:00