457 Commits

Author SHA1 Message Date
Daniel Ehrenberg
6330eccfc4
Add feature flags for various tests 2017-04-06 12:18:03 -04:00
Leo Balter
ce95292899 Merge pull request #939 from dilijev/typo
Corrected typo in annexB templates exsting->existing
2017-04-06 11:57:57 -04:00
Rick Waldron
818bb8d88f Merge pull request #938 from leobalter/yield-star-abrupt-getiter
Add cases for abrupt completions in yield* in async generator - getIterator
2017-04-06 11:43:29 -04:00
Rick Waldron
d7f4f5f664 Merge pull request #937 from leobalter/yield-star
templates for yield star flow
2017-04-06 11:43:21 -04:00
Rick Waldron
7685eeac1f Merge pull request #941 from leobalter/yield-star-next-abrupt
Add cases for abrupt completions in yield* in async generator - next
2017-04-06 11:42:54 -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
2c6a82e55f
Add cases for abrupt completions in yield* in async generator - next
Closes #883
2017-03-27 21:42:06 -04:00
Doug Ilijev
be788f6abf Renamed src/annex-b-fns/*-{ exsting -> existing }-*.case 2017-03-27 17:41:00 -07:00
Leo Balter
78388c5ac2
Add cases for abrupt completions in yield* in async generator - getting iterator
Closes #873
2017-03-27 20:38:14 -04:00
Leo Balter
a010c9cf91
Add cases for yield stars flow 2017-03-27 17:15:27 -04:00
Leonardo Balter
c6191216c5
Add asyng-gen templates for params in the test gen tool 2017-03-27 13:32:03 -04:00
Leo Balter
3f51de0c49
Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
Leo Balter
6ad75adb0e
Add async-iteration features flag 2017-03-27 13:07:10 -04:00
Leonardo Balter
e34a56774e
Improve some yield cases based on feedback 2017-03-27 13:07:09 -04:00
Leonardo Balter
3a4e3bd8b1
Add generators templates for async gen 2017-03-27 13:07:07 -04:00
Leonardo Balter
76001a503f
Fix current generator templates 2017-03-27 13:07:05 -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
Leo Balter
1e35ec9fed
Fix case sensitive template name 2017-03-27 12:12:32 -04:00
Leonardo Balter
30c280a1f9
Add case for obj rest name equal to a property
Fixes #913
2017-03-20 14:50:53 -04:00
Leonardo Balter
585f48389f
fix typo 2017-03-20 14:50:45 -04:00
Leo Balter
e4bbdba105 Merge pull request #914 from leobalter/850-top-level
Avoid top level name and length bindings
2017-03-14 20:48:48 -04:00
Leonardo Balter
659d82ded4
Rename top level 'length' bindings from test generation cases
Ref #850
2017-03-14 17:42:03 -04:00
Leonardo Balter
41370bcb99
Create tests for trailing comma on arguments list 2017-03-14 16:27:56 -04:00
Leonardo Balter
cb85912b13
fix location for features 2017-03-14 15:11:05 -04:00
Leonardo Balter
c37a242057
Move tests for params trailing comma to the test gen tool 2017-03-14 14:58:32 -04:00
Leonardo Balter
abaf554c2d
prefix params cases to dflt- while templates are not set to dlft anymore 2017-03-14 13:20:37 -04:00
Leonardo Balter
ae1455c062
mv src/dflt-params to src/params folder 2017-03-14 13:20:23 -04:00
Caio Lima
16e66ece0c Initial set for Object Spread feature (#890) 2017-03-13 10:21:26 -04:00
Leo Balter
4108569dd7 Merge pull request #891 from leobalter/860-block-dft-params
Test for parameters with default expressions in Annex B FiB tests
2017-03-10 15:53:01 -05:00
Leonardo Balter
77fbf1cada
Additional coverage for computed yield values
Ref #865
Ref https://github.com/tc39/test262/pull/890#issuecomment-284600429
2017-03-09 10:23:08 -05:00
Caio Lima
0200c63396
Implementing test cases for object rest deconstruction
Closes #867
Ref #865
2017-03-06 16:24:35 -05:00
Leonardo Balter
60303b9f07
Test for parameters with default expressions in Annex B FiB tests
Resolves gh-860
2017-03-06 16:05:37 -05:00
Mike Pennisi
f03c2c244c Procedurally generate related tests
Take advantage of a recent extension to the test generation tool in
order to limit duplication.
2017-03-04 12:17:35 -05:00
Mike Pennisi
228851fbe4
Add tests for accessor names 2017-03-01 11:38:10 -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
a41b71115b Annex b skip fib (#704)
* Re-generate tests

The test generation tool has been modified in the time since these tests
were first generated and committed to the project. Re-generate the tests
using the latest version of the tool.

* Add test cases for Annex B hoisting disqualifiers

The "variable-like" function hoisting semantics defined in Annex B
extension B.3.3 is only applied if "[...] replacing the
FunctionDeclaration f with a VariableStatement that has F as a
BindingIdentifier would not produce any Early Errors [...]". Test262
previously included tests for this condition when the disqualifying
early error originated from the ScriptBody and FunctionBody productions.

Add test cases to assert the behavior when it is disqualified by all
other relevant early errors: Block statements, `for` statements,
`for-of` statements, `for-in` statements, and Switch statements.

* Generate tests

* fixup! Add test cases for Annex B hoisting disqualifiers

* fixup! Add test cases for Annex B hoisting disqualifiers

Correct test case "info" meta-data.

* fixup! Add test cases for Annex B hoisting disqualifiers

Improve test bodies

* fixup! Generate tests
2016-07-11 16:37:42 -07: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
jugglinmike
a3fffa754b Improve coverage for "super" keyword (#687)
* Improve test coverage for `super` keyword

Add tests for SuperCall and SuperProperty, organized together in the
`test/language/expressions/super/` directory. For SuperProperty, include
tests for usage from within Object initializers and class bodies because
a different set of semantics are observable from each context.
2016-06-29 16:45:19 -07:00
Mike Pennisi
71f9559f11
Add tests for default parameters 2016-06-21 12:22:47 -04:00
Mike Pennisi
744cb4d2c9
Add templates for destructuring with dflt params 2016-06-21 12:20:36 -04:00
Mike Pennisi
8c8397573c Add test cases for spread operator
The operand of the spread operator may be an AssignmentExpression. Add
test cases which demonstrate this.
2016-06-11 17:42:50 -04:00
Mike Pennisi
2658524163 Add test templates for spread in array initializer
Formulate templates for the SpreadElement in an array initializer in
order to conform to existing pattern.
2016-06-11 17:27:19 -04:00
Leo Balter
2cf968cfad Merge pull request #651 from bocoup/generation-dstr-assign
Re-format destructuring assignment tests
2016-06-01 14:00:09 -04:00
Leo Balter
1e75730d5f Merge pull request #587 from bocoup/generation-annexb-fns
Add tests for Annex B "function in block" semantics (procedurally generated)
2016-05-31 17:45:48 -04:00
Mike Pennisi
c24a206511 Re-format destructuring assignment tests
Utilize the test generation tool to increase coverage of destructuring
assignment semantics. Previously, only destructuring assignment in the
AssignmentExpression position was tested. With this change applied, the
same tests will assert expected behavior for destructuring assignment in
`for..of` statements, as well.

A limited number of tests are applied to the `for..in` statement as
well, but due to the iteration protocol observed by that statement, many
destructuring tests are not relevant, and others cannot be automatically
generated from this format.
2016-05-25 13:47:06 -04:00
Mike Pennisi
b7d496942a Use distinct variable name within test case
In order to increase the clarity of generated output, select a name for
the test case variable that is not also used by a test template.
2016-05-19 15:06:13 -04:00
Mike Pennisi
95b5b13c16 Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
Mike Pennisi
c98b6ed4e6 Specify esid tag in test templates 2016-05-19 15:06:11 -04:00