578 Commits

Author SHA1 Message Date
Caio Lima
2682ab57cf Adding private brand check cases for private methods, getters and setters. (#2152) 2019-05-08 16:26:13 -04:00
Caio Lima
7ab73f5fb7 Fixing typo on 2019-05-08 15:21:26 -03:00
Caio Lima
4cd26da388 Adding more cases that can be present on ClassHeritage grammar rule 2019-05-08 15:12:24 -03:00
Caio Lima
4c62f6dd73 Adding case to verify if PrivateEnvironment is properly set when evaluating 'ClassHeritage' 2019-05-08 15:12:24 -03:00
Jason Orendorff
1988988a10 Add a couple more tests for ASI with fields. (#2128) 2019-04-17 10:55:01 -04:00
Leo Balter
93f2bae981
Merge pull request #2118 from jugglinmike/refactor-for-parsers-with
Refactor `with` statement tests for parsers
2019-04-02 14:08:18 -04:00
Mike Pennisi
9b396d0b0b Refactor with statement tests for parsers
The tests for the parsing of the `with` statement 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. Rename the files to make each test's purpose more clear.
2019-03-31 22:22:04 -04:00
Mike Pennisi
255338141b Remove redundant tests
These tests are syntactically equivalent to
`test/language/statements/with/12.10.1-7-s.js` and may therefore be
removed without degrading coverage.

While `test/language/statements/with/12.10.1-9-s.js` differs slightly in
the pattern used to enable strict mode, the relevant behavior of the
"use strict" directive prologue is expressly tested via
`test/language/directive-prologue/func-expr-inside-func-decl-parse.js`.
2019-03-31 22:21:41 -04:00
Mike Pennisi
159bcc7bad Improve test precision
Previously, some tests verified two independent concerns simultaneously:
syntactic validity and runtime completion value. The former is relevant
for ECMAScript runtimes and parsers alike, but the latter is only
observable by runtimes.

Express expectations regarding syntactic validity using literal program
code so they can be used by parsers. Maintain the original tests which
rely on eval in order to preserve coverage for statement completion
values.
2019-03-31 21:44:49 -04:00
Mike Pennisi
aa4c533d28 Refactor misc. statement tests for parsers
The tests for the parsing of various statement 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. Rename the files to make each test's purpose more clear.
2019-03-31 21:44:49 -04:00
Caio Lima
fd75ab0097 Adding tests to verify private fields on Proxy Objects (#2099) 2019-03-18 21:18:55 -04:00
Leo Balter
47bf9d1db9
Merge pull request #2100 from leobalter/2033/features-private
Add missing feature tags
2019-03-14 14:51:48 -04:00
Leo Balter
3378de1020 Regenerate tests 2019-03-13 15:46:40 -04:00
Leo Balter
e227f54d01 Fix assertions previously not reached before
Fix #2049
2019-03-13 15:27:20 -04:00
André Bargull
3428a59ae8 Add test case for tc39/ecma262#1172 2019-03-11 10:34:46 -07:00
André Bargull
c843ff0228 Test for abrupt completion of PromiseResolve in AsyncFromSyncIteratorContinuation
Issue: tc39/ecma262#1461
PR: tc39/ecma262#1470
2019-03-11 10:34:44 -07:00
André Bargull
252ca73626 Add test that only explicit undefined return value is awaited in async generator 2019-03-11 10:34:43 -07:00
André Bargull
1111d4996d Add test that return resumption value in async generator is awaited 2019-03-11 10:34:42 -07:00
André Bargull
9d711fdf11 Add test for "constructor" lookups and correct job order in for-await loop 2019-03-11 10:34:40 -07:00
André Bargull
bb838d8d6b Add test when IteratorValue argument to AsyncGeneratorYield in yield* throws 2019-03-11 10:34:38 -07:00
Leo Balter
0fb6388682 Generate tests 2019-02-25 16:14:22 -05:00
Caio Lima
b9f43c0711 Adding destructuring-binding on feature list 2019-02-14 15:14:46 -05:00
Caio Lima
b8e92c2341 Added case to verify invalid syntax when using private field on object destructuring 2019-02-14 15:14:46 -05:00
Caio Lima
185e590880 Removed invalid super access tests and created properly syntax error checks 2019-02-14 15:12:48 -05:00
Caio Lima
4e3e82ee3f Fixing async tests and other NIT changes 2019-02-06 18:18:48 -02:00
Caio Lima
442c3539a3 Added generated tests 2019-02-06 17:18:13 -02:00
Leo Balter
fb9bb7502f
Merge pull request #2056 from anba/test-bugs-jan2019
Remove invalid private name tests and guard against missing bindings
2019-01-30 08:20:04 -07:00
Ross Kirsling
e855815840 Delete early-catch-var.js 2019-01-30 09:57:50 -05:00
André Bargull
3c81164266 Regenerate tests 2019-01-30 06:51:16 -08:00
jugglinmike
9fccd9852e Improve coverage for UniqueFormalParameters (#2043)
Previously, the early error prohibiting duplicate entries in
UniqueFormalParameters was only tested in terms of async functions. In
one case, this was misattributed to UniqeFormalParameters and only
enforced for strict mode code.

Extend coverage to the other function-creating productions which include
UniqueFormalParameters (i.e. method definitions and non-async arrow
functions), and update the existing tests to more accurately describe
the source of the error.
2019-01-23 14:07:19 -02:00
Nicolò Ribaudo
f624ca52d1 Regenerate tests 2019-01-17 21:40:39 +01:00
Nicolò Ribaudo
2be05bc494 Regenerate tests 2019-01-12 00:59:46 +01:00
Nicolò Ribaudo
78a9fb81c6 Regenerate tests 2019-01-08 16:32:35 +01:00
Ross Kirsling
d0f57bff72 Ensure test file YAML blocks don't have a trailing space. (#2018) 2019-01-07 11:40:39 -02:00
Leo Balter
f77b930e67 Move non generated files 2018-12-21 15:47:01 -05:00
Leo Balter
2907b7110a Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter
4d40dd5ade Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter
d73548b027 Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter
02af6a5552 Regenerate tests 2018-12-20 12:53:31 -05:00
Leo Balter
20c38d3396 Expand tests for duplicate lexical names of vardeclarednames in the same statementlist 2018-12-20 12:53:31 -05:00
Leo Balter
3703d2bad1 Generate tests 2018-12-20 12:49:50 -05:00
Leo Balter
6986a9166d Generate tests 2018-12-20 12:49:50 -05:00
Peter Marshall
b3efcd2f3f Consistently use spaces in features lists (#2000) 2018-12-17 17:00:04 -02:00
Leo Balter
be890421b8
Merge pull request #1985 from mkubilayk/private-method-init-order
test: Ensure private methods are visible from all initializers
2018-12-15 05:50:52 -05:00
Kubilay Kahveci
14c49c0e9d Generate tests 2018-12-10 20:43:09 +00:00
André Bargull
b62dae4fff Fix various bugs in test cases (#1988) 2018-12-05 15:48:28 -05:00
Leo Balter
79fd1b2c76 Generate tests 2018-11-28 10:26:13 -05:00
Leo Balter
7be4e99f80 Generate tests 2018-11-28 10:26:13 -05:00
Leo Balter
9d5aa7d267 Generate tests 2018-11-26 16:39:43 -05:00
Leo Balter
94a0eaeb8a Generate tests 2018-11-26 16:39:43 -05:00