33 Commits

Author SHA1 Message Date
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
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
Leo Balter
cf68ab3e5e Add Symbol.iterator features flags to test generation files 2017-09-08 10:13:50 -04:00
Leo Balter
31f7b3e218 Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00
Rick Waldron
650d084fe3 features: generator => generators 2017-08-16 15:11:05 -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
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
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
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
93e8924ec5
Add templates for dstr-binding w/ for-await-of looping over async iterators 2017-05-15 16:01:19 -04:00
Leo Balter
59d9d0b6d8
Assert iterators are consumed - and closed - in dstr patterns
Ref https://bugzilla.mozilla.org/show_bug.cgi?id=1364608
2017-05-15 15:23:48 -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
c3825f6138 for-await-of: dstr-binding, async func & async gen templates (update steps)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-11 15:45:06 -04:00
Leo Balter
f4f23cb06b
Set a proper length reference to avoid conflict with browsers
In browsers length is a valid property of window, so they would have a normal
completion instead of a ReferenceError
2017-05-10 14:08:33 -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
Rick Waldron
8f7dc1912a for-await-of: dstr-binding, async func & async gen templates
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -04:00
Rick Waldron
684449a65f for-await-of: dstr-binding templates
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-28 17:02:43 -04:00
Daniel Ehrenberg
dcfcd17ae7
Fix async generator test templates
- Insert a missing .next() call
- Avoid overlapping names used in test cases

Case files like `src/dstr-binding/ary-ptrn-elem-ary-elision-init.case` are already setting
bindings named `g`. Renaming them in the templates prevents overlapping names.
2017-04-06 19:40:25 -04:00
Rick Waldron
01ce88b588 Merge pull request #922 from leobalter/async-gen-templates-dstr-errors
Add async generator error templates for destructuring binding
2017-04-06 11:42:04 -04:00
Rick Waldron
b0e921ff45 Merge pull request #921 from leobalter/async-gen-templates-dstr
Add async generator templates for destructing binding
2017-04-06 11:41:27 -04:00
Leo Balter
3f51de0c49
Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
Leonardo Balter
05e54bb076
Add async gen error templates for dstr-binding 2017-03-27 12:58:59 -04:00
Leonardo Balter
6d3f8152fc
Add async gen templates for dstr-binding 2017-03-27 12:54:15 -04:00
Caio Lima
0200c63396
Implementing test cases for object rest deconstruction
Closes #867
Ref #865
2017-03-06 16:24:35 -05:00
Mike Pennisi
7f6e6d137d [generation] Parse and render new error format
Extend the test generation tool to emit the recently-modified format of
the "negative" meta-data. Update the effected test case files
accordingly.
2016-10-19 15:24:19 -04:00
jugglinmike
2bfaa0d895 Improve coverage for class "name" inference (#718)
* Extend tests for class "name" inference

Ensure that when a class defines a static "name" method, that method
definition prevents the "name" inference behavior.

* Re-generate tests
2016-07-08 18:37:04 -07:00
Mike Pennisi
744cb4d2c9
Add templates for destructuring with dflt params 2016-06-21 12:20:36 -04:00
Mike Pennisi
cc7381d3b2 Add test cases for destructuring binding 2016-05-10 11:51:44 -04:00
Mike Pennisi
be195c38ca Add omitted destructuring binding forms
Add test templates for destructuring binding as it occurs in
previously-overlooked productions (various IterationStatements and the
TryStatement).
2016-05-10 11:51:44 -04:00
Mike Pennisi
8c6b1320de Add assertion messages for function invocation 2016-05-10 11:51:44 -04:00
Mike Pennisi
0d09ea91d9 Add "features" tag to test templates 2016-05-10 11:51:32 -04:00
Mike Pennisi
d5190e96df Specify esid tag in test templates 2016-05-10 11:39:22 -04:00
Mike Pennisi
74bff6b3d5 Add initial set of generated test sources 2016-03-16 15:29:30 -04:00