367 Commits

Author SHA1 Message Date
Timothy Gu
6319cb1e2a Add more static class property ordering tests
Since https://github.com/tc39/ecma262/pull/1490, the "length" and "name"
properties of a class are defined before any static methods. This is
tested by #2057, in test/language/computed-property-names of all places.

At the same time, static methods with "name" as the name would overwrite
the original property, but retain the original property enumeration
order. This was not previously tested. In fact, the overwriting behavior
was not tested at all for the "length" property.

This commit mends both holes in test coverage.
2021-07-16 09:27:16 -04:00
jugglinmike
afe217b318
Add tests for "Class Static Init. Blocks" proposal (#2968)
* Add tests for "Class Static Init. Blocks" proposal

This proposal is currently at "stage 3" in TC39's standardization
process.

* fixup! Add tests for "Class Static Init. Blocks" proposal

* Correct identifier reference

* Update tests for grammar

* Update tests for identifiers

* Add tests for scope derivation
2021-07-15 08:49:12 -04:00
Mike Pennisi
3addcc4b04 Generate tests 2021-04-20 09:53:57 -04:00
strager
6888a8df82
Fix typo in private getter/setter tests (#2971)
Several tests for getters and setters claim to check for an early
SyntaxError regarding mixing static and non-static propeties with the
same name. However, the tests trigger another issue: the getters have no
method body; they're missing curlies.

Fix the tests to test only the intended SyntaxError, not unrelated
SyntaxError-s.
2021-04-09 20:13:41 -04:00
Gus Caplan
516ca9af39 Update tests for ECMA262 #2216
https://github.com/tc39/ecma262/pull/2216
2021-02-26 11:49:49 -05:00
jmdyck
11624af8d0
Update "info" field (#2941)
The quoted spec wording changed in ecma262#1694.
2021-01-28 16:03:01 -08:00
Caio Lima
f81c2f5422 Adding test case for super access from class field defined as arrow function 2021-01-18 09:41:23 -05:00
Rick Waldron
d8efa93bec Generate tests 2020-10-14 14:20:46 -04:00
Rick Waldron
bab4da88e3 Remove erroneous test templates and generated files 2020-10-14 14:20:46 -04:00
Rick Waldron
b89c3bf369 Generate tests 2020-10-14 14:01:01 -04:00
Caio Lima
72154b17fc Adding test cases to validate private field access with primitive receivers 2020-10-09 16:36:09 -04:00
Rick Waldron
a6d38ffe9a Correction: add explicit language re: application of Forbidden Extensions, bullet 1 2020-10-07 16:43:31 -04:00
Rick Waldron
6db0565b76 Generate tests 2020-10-05 10:53:43 -04:00
Rick Waldron
9e71e2120a Generate tests 2020-10-05 10:53:43 -04:00
Rick Waldron
f4ec59ad38 Generate tests 2020-09-30 11:51:44 -04:00
Rick Waldron
dc74a0b0ee Generate tests 2020-09-30 10:05:47 -04:00
Rick Waldron
348a706c5d Generate tests 2020-09-25 16:12:12 -04:00
Rick Waldron
21e97fb616 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron
3f2a2aa464 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron
cd778bea8c Generate tests 2020-09-25 13:30:10 -04:00
Rick Waldron
76dacfb17c Generate tests 2020-09-25 12:58:22 -04:00
Rick Waldron
5090f7adfe Generate tests 2020-09-25 12:01:39 -04:00
Rick Waldron
41c5a42fa7 Generate tests 2020-09-22 10:37:57 -04:00
Rick Waldron
fd92897147 Generate tests 2020-09-22 10:37:38 -04:00
Rick Waldron
1ab47810d1 Generate tests 2020-09-17 16:24:07 -04:00
Rick Waldron
a92de6fa2d Generate tests 2020-09-15 11:09:52 -04:00
Rick Waldron
485cb0b1c9 Coverage: check instanceof on instances of built-in subclasses. Fixes gh-659 2020-09-14 13:40:33 -04:00
Rick Waldron
21cdcb85d1 Generate tests 2020-09-14 13:35:13 -04:00
Rick Waldron
5c753769e6 Fixup: remove duplicate tests 2020-09-14 13:35:13 -04:00
Frank Tang
ab3a86d9b3 Move tests from
https://source.chromium.org/chromium/chromium/src/+/master:v8/test/test262/local-tests/
2020-09-14 13:35:13 -04:00
Rick Waldron
b25e36cdb6 Generate tests 2020-09-10 16:22:34 -04:00
Alexey Shvayka
9411d7fccc Array binding: add generated tests 2020-08-20 12:48:08 -04:00
Alexey Shvayka
9ddfa39eca Add generated files 2020-08-12 18:58:26 +03:00
Rick Waldron
362d7af20f Generate tests 2020-06-24 15:47:49 -04:00
Rick Waldron
a816c03735 Generate tests 2020-06-24 15:47:48 -04:00
Adrian Heine né Lang
2f1d28ddca
Fix feature flag in static-private-method-and-instance-method-brand-check (#2307) (#2635) 2020-05-21 14:17:41 -07:00
Adrian Heine né Lang
350ac0dab2
Cover simple declaration of instance fields (#2620) 2020-05-15 12:12:07 -07:00
Alexey Shvayka
9bd8813674 Rename bound function test and update meta 2020-05-13 12:58:33 -04:00
Alexey Shvayka
47abdd0c5e Add async generator function test 2020-05-13 12:58:33 -04:00
Alexey Shvayka
4118a67bef Add async function test 2020-05-13 12:58:33 -04:00
Alexey Shvayka
a71bc984ff Add arrow function test 2020-05-13 12:58:33 -04:00
Alexey Shvayka
9ff500ed70 Rename & improve generator function test 2020-05-13 12:58:33 -04:00
Adrian Heine né Lang
d2f7d4285c
Fix feature flag in private-method-referenced-from-static-method (#2621) 2020-05-11 16:54:11 -07:00
Adrian Heine né Lang
d5826606a4
Fix features in private method length tests (#2617) 2020-05-11 11:45:01 -07:00
Alexey Shvayka
6a18c27ca1 Generate test files from templates 2020-04-29 17:33:10 -04:00
Rick Waldron
62b8fce389 Deleting previously valid generated tests 2020-04-02 12:58:38 -04:00
Caio Lima
539c001941 Updating test with 'o?.#field' to be valid program 2020-04-02 12:58:38 -04:00
Caio Lima
6499fa6794 Adding missing cases of instance field without assignment and static field with assignment 2020-03-31 10:39:11 -04:00
Caio Lima
740e157eb0 Adding test to cover case where there is a static field named as 'static' 2020-03-31 10:39:11 -04:00
Caio Lima
432adbb61e Adding case where 'static' is used as a field name 2020-03-28 16:47:44 -04:00