578 Commits

Author SHA1 Message Date
Rick Waldron
642d88377f
Merge pull request #1375 from jugglinmike/refactor-for-parsers-assignment
Refactor AssignmentExpression tests for parsers
2017-12-19 15:46:31 -05:00
Rick Waldron
a801bdf786 Fix frontmatter 2017-12-19 15:42:57 -05:00
André Bargull
204afb7ba6 Add tests when continue triggers IteratorClose 2017-12-19 15:42:57 -05:00
André Bargull
df1e5e7d44 Add more completion value tests for try-statements 2017-12-19 15:42:56 -05:00
Mike Pennisi
025b44f38c Refactor AssignmentExpression tests for parsers
A number of tests for the parsing of the AssignmentExpression production
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` in the relevant tests and instead express the
expectations with literal source text. Remove superfluous "onlyStrict"
restriction from tests by declaring the probe binding prior to
assignment.
2017-12-10 15:59:11 -05:00
Leo Balter
6f8c89dfd1
Update class public fields tags in non-generated test files 2017-11-28 13:02:21 -05:00
Leo Balter
a488271931
Update class fields tags in non-generated test files 2017-11-28 12:59:27 -05:00
Leo Balter
d142f75468
Regenerate tests 2017-11-28 12:49:12 -05:00
Leo Balter
77c70a514d
Merge pull request #1344 from leobalter/class-fields-same-name
Class fields with the same name
2017-11-28 10:35:27 -05:00
Isiah Meadows
6ca3634d1b Broken error message in test (#1358)
Fixes #1355
2017-11-28 10:34:04 -05:00
Leo Balter
5b7b007af5
Generate tests 2017-11-15 14:33:23 -05:00
Leo Balter
076ecc38c6
Fix bugs reported in #1338 (#1339)
* Accessing `ta[0]` throws a TypeError.

* Fix array indices starting at 0 and property references

* Fix classfields templates for properly checking static propnames.

* Generate tests

* `assert.equal` is not defined

* Add missing includes

* Generate tests

* typo s/Avalue/42/

* fix whitespace

* Add missing var for strict mode

* Expand generated class fields tests for forbidden computed property name values

Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243

* derived classes have access to private names in base classes, if private names are in scope
2017-11-10 15:06:00 -05:00
Valerie R Young
bef77dc144 classfields: PrivateFieldSet and PrivateFieldGet 2017-11-03 15:43:44 -04:00
Valerie R Young
a6e9a4ea1a classfields: PrivateFieldAdd TypeError test 2017-11-03 15:43:44 -04:00
Valerie R Young
ad12c4f5ad classfields: field definition abrupt completion tests 2017-11-03 15:43:44 -04:00
Leo Balter
06091cb6fd
Merge pull request #1319 from bocoup/classfields-dupsdeletes
classfields: add tests duplicate private fields and deleting private fields
2017-11-03 15:19:34 -04:00
Valerie R Young
1bbedf4b02
regenerate files 2017-11-03 14:52:47 -04:00
Valerie R Young
dd371194fe
class fields: add ASI tests 2017-11-03 14:52:46 -04:00
Leo Balter
ce203360b1
Merge pull request #1323 from bocoup/classfields-scope
classfields: add early error tests for privatename references
2017-11-03 14:12:10 -04:00
Leo Balter
20a2572ba9
Merge pull request #1309 from bocoup/classfields-stringname
classfields: add tests for forbidden public/private propertynames
2017-11-03 14:02:27 -04:00
André Bargull
1f57fe412c Regenerate tests 2017-11-01 08:23:44 -07:00
André Bargull
6c8698acac Update test to not rely on throwing a Test262Error
Only this test relied on $ERROR throwing a catchable Test262Error.

This change allows test environments to provide their on $ERROR function for better error reporting.
2017-11-01 07:54:04 -07:00
Valerie R Young
4828ce08a3 regenerate files 2017-10-31 14:49:26 -04:00
Valerie R Young
7572c0c36b Classfields: simple success case for nested classes private name reference 2017-10-29 20:46:09 -04:00
Valerie R Young
54f4d02aa6 Classfields: simple early errors test for privatename references in scripts 2017-10-29 20:46:09 -04:00
Valerie R Young
2664e17e1d generated test files 2017-10-29 20:11:12 -04:00
Valerie R Young
ea4c8fc95c classfields: add tests for forbidden privatenames 2017-10-27 17:40:42 -04:00
Leo Balter
88881301d7
Regenerate tests 2017-10-27 15:45:42 -04:00
Leo Balter
fafd465454
Merge pull request #1303 from bocoup/classfields
classfields: eval early errors
2017-10-27 12:03:18 -04:00
Leo Balter
b8d1a29f2d
Re-generate tests 2017-10-26 19:04:57 -04:00
Leo Balter
f8f5a7a1e7
Add missing generators flags 2017-10-26 19:04:57 -04:00
Valerie R Young
a9769d0854 regenerate test files 2017-10-26 10:10:57 -04:00
Valerie R Young
c39eeb9276 classfields: add tests for duplicate privatenames 2017-10-25 10:37:13 -04:00
Valerie R Young
0ad5eaf87c regenerate tests 2017-10-20 22:06:02 -04:00
Valerie R Young
aeffe35d5b
regenerate test files 2017-10-18 16:50:39 -04:00
Valerie R Young
d3c7e1a13a generate files 2017-10-17 17:53:03 -04:00
Leo Balter
315eca2bbd Merge pull request #1293 from bocoup/esid-fix
fix: esid in case file instead of template file
2017-10-17 17:52:03 -04:00
Valerie R Young
d68faa904f regenerate tests 2017-10-17 17:47:52 -04:00
Caitlin Potter
51e6a124d3 Generate tests 2017-10-17 15:48:40 -04:00
Leo Balter
edfef8db55 Updates for let names as a LHS in for-in loops (#1271)
* Delete identifier-let-allowed-as-lefthandside-expression-non-strict.js

Fixes #1192

This is already covered by 8422147c17/test/language/statements/for-in/head-lhs-let.js (L27)

* restore for-in test
2017-10-12 15:27:15 -04: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
Caitlin Potter
0881a6a2ad Generate tests 2017-10-04 11:24:27 +02:00
⭐caitp⭐
f3b5a1e4c0 Update iteration tests with respect to spec changes (#1248)
https://github.com/tc39/ecma262/pull/988 changes the iteration protocol
such that the "next" method is only loaded from the iterator object once
during the prologue of iteration, rather than during each step.
2017-09-27 17:59:41 -04:00
Caio Lima
d41eb5d913 Added test case to consider rest ordering (#1242) 2017-09-26 17:02:42 -04:00
André Bargull
58111fff7b Regenerate tests 2017-09-16 17:00:55 +02:00
Leo Balter
7f88a6d7f9 Add other missing Symbol feature flags 2017-09-08 10:13:50 -04:00
Leo Balter
2bee5df77a Add missing Symbol.iterator feature flags 2017-09-08 10:13:50 -04: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