Richard Gibson
c59db6e8bd
Generate tests
...
SRC_DIR=src/function-forms ./make.py
2019-07-10 20:20:16 -04:00
Caio Lima
ea359a1d81
Added tests to cover access of private members on inner regular functions and arrow functions. ( #2228 )
2019-07-10 16:58:19 -04:00
Nicolò Ribaudo
77f6cfb2aa
Add missing features to class fields tests ( #2220 )
2019-07-03 17:22:14 -04:00
Caio Lima
b1b4177796
Adding cases where private names are used on direct eval calls ( #2213 )
...
* Adding cases where private names are used on direct eval calls
* Removing return statement from setter case
2019-06-26 15:08:44 -04:00
Leo Balter
1fb2b78a8d
Merge pull request #2188 from caiolima/private-methods-own-property
...
Verify that private methods and accessors aren't visible to [[GetOwnProperty]] and [[HasProperty]].
2019-06-26 15:07:47 -04:00
Jaideep Bhoosreddy
51fc533565
Add test for multiple evaluations of classes with private ( #2176 )
2019-06-26 15:05:10 -04:00
Caio Lima
166d5ac589
Adding tests to validate HomeObject setup on private methods and accessors ( #2214 )
2019-06-26 12:03:36 -04:00
Caio Lima
bf859771f0
Adding case with computed property and simplifying 'own-property.case'
2019-06-21 12:29:54 -03:00
Caio Lima
f1ac274f9d
Adding test cases to verify that private methods and accessors are not visible to [[GetOwnProperty]] and [[HasProperty]].
2019-06-21 09:50:12 -03:00
Alexey Shvayka
df1a1c75b7
Remove trailing spaces from YAML blocks ( #2201 )
2019-06-19 16:39:21 -04:00
Alexey Shvayka
084e45966f
Add poisoned __proto__ tests ( #2203 )
...
* Add SuperProperty test
* Add SuperCall test
* Add ClassDeclaration test
* Add ClassExpression test
2019-06-19 16:38:30 -04:00
Caio Lima
c0c0417f04
Adding new test cases to validate public class fields initialization. ( #2186 )
2019-05-30 11:21:26 -04:00
Leo Balter
77b0e84452
Regenerate tests
2019-05-29 15:59:27 -04:00
Aleksey Shvayka
465d0b587e
Add for-of tests with bogus initializers ( #2182 )
2019-05-29 15:37:52 -04:00
Leo Balter
dce80ecde1
Merge pull request #2178 from mkubilayk/private-before-super-return
...
Check private methods are not installed before super returns
2019-05-29 13:22:11 -04:00
Leo Balter
35dc11f569
Merge pull request #2171 from leobalter/call-innerb
...
Add assertion for private method shadowed by getter case
2019-05-29 10:54:30 -04:00
Kubilay Kahveci
240cc6992e
Generate tests
2019-05-29 11:00:19 +01:00
Leo Balter
c2ceb7345a
Regenerate tests
2019-05-22 17:05:42 -04:00
Leo Balter
a038f7b219
Fix yaml trailing line
2019-05-22 14:00:32 -04:00
Caio Lima
696d87274b
Added case to with Function.prototype.call
2019-05-22 13:53:58 -04:00
Caio Lima
4114b3749f
Adding tests to cover private methods comparison
2019-05-22 13:53:58 -04:00
Leo Balter
3c64d3eac4
Generate tests
2019-05-22 13:49:46 -04:00
Caio Lima
72945e0412
Adding test cases to cover usage of private methods and accessors on inner classes. ( #2150 )
2019-05-22 12:58:09 -04:00
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
Leo Balter
f7f845ce6f
Update tests with DONOTEVALUATE
2018-11-14 09:19:15 -05:00
Leo Balter
238c88d4a0
Generate tests
2018-11-13 20:21:32 -05:00
Leo Balter
10dc6ff75a
Generate tests
2018-11-13 20:21:32 -05:00
Leo Balter
50601e7aad
Generate tests
2018-11-13 20:21:32 -05:00
Leo Balter
dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
...
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00
Adrian Heine
4f085d7b8f
Fix typo (disinct -> distinct)
2018-11-10 10:50:21 +01:00
Leo Balter
ab540afaa1
Generate tests
2018-11-07 18:14:37 -05:00
Adrian Heine né Lang
19fa24ee91
Remove wrong feature tag ( #1932 )
2018-11-07 16:05:20 -05:00
Leo Balter
053aed901a
Regenerate tests
2018-11-06 10:35:22 -05:00
Katie Broida
f11d0ab3d5
Fix class syntax
2018-11-06 10:35:22 -05:00
Katie Broida
9ccf0a822f
Generate tests
2018-11-06 10:35:22 -05:00
Leo Balter
69c1efd325
Generate tests
2018-11-05 12:17:14 -05:00
Leo Balter
ecb5fcbe33
Merge pull request #1840 from jugglinmike/refactor-for-parsers-var
...
Refactor variable declaration tests for parsers
2018-11-05 10:12:24 -05:00
Mike Pennisi
a7deb7bcce
Add tests for `arguments` within function body
2018-10-28 16:23:38 -04:00
Rick Waldron
f1e362d558
Fix typos; generate tests ( #1907 )
2018-10-26 17:11:05 -04:00
Kubilay Kahveci
b7fb4ade5e
Generate tests
2018-10-26 15:12:43 -04:00
Mathias Bynens
8869799c6d
Rebase, regenerate, and update tests
2018-10-23 13:51:17 +02:00
Mathias Bynens
b9daa57dcb
Rename to $DONOTEVALUATE per @leobalter's suggestion
2018-10-23 13:51:17 +02:00
Mathias Bynens
e3feffb01e
Move `throw "…"` for negative parsing errors to a helper function
...
Closes #1634 .
2018-10-23 13:51:16 +02:00
Rick Waldron
3bcb28e918
Generate tests
2018-10-15 12:43:16 -04:00
Mike Pennisi
aac38cb368
Normalize coverage for `var` declarations
...
Add tests to mirror similar tests which were authored previously.
2018-10-07 16:49:50 -04:00
Mike Pennisi
b819c597ab
Remove redundant test
...
This behavior is covered by another test in this directory:
`arguments-strict-single.js`. Although the syntax error happens to occur
within the body of a function expression, this distinction is not
significant enough to warrant the test's presence nor does it motivate
the introduction of many similar negative syntax tests which are
currently unavailable.
2018-10-07 16:49:49 -04:00
Mike Pennisi
6b00c8fbfe
Rename and refactor tests
...
The tests for the parsing of variable declarations 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.
2018-10-07 16:49:49 -04:00
Mike Pennisi
ceb79988ae
Relocate and refactor tests
...
The tests for the parsing of `for/in` loops 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. Move the tests to the `for-in` directory to better reflect
the grammar production that they test.
2018-10-07 16:48:42 -04:00
Mike Pennisi
835c202b36
Remove redundant and irrelevant tests
...
Two tests placed within the "variable" directory do not include a variable
declaration. Because the behavior they assert is covered by an existing
test (test/language/arguments-object/10.5-1gs.js), they may be removed
without reducing coverage.
2018-10-07 16:43:08 -04:00
Timothy Gu
140d922d4c
Add async-functions feature to more files ( #1830 )
2018-10-05 10:37:21 -04:00
Leo Balter
754fe94c5d
fixup! Generate tests
2018-10-04 16:21:11 -04:00
Rick Waldron
a7ba033337
Generate tests
2018-10-04 16:21:11 -04:00
Leo Balter
5896ba49be
Generate tests
2018-10-04 10:32:01 -04:00
Leo Balter
46fcbf81d1
Generate tests
2018-09-26 09:18:46 -04:00
Kubilay Kahveci
395adc3a7c
Generate tests
2018-09-18 14:16:20 -04:00
Leo Balter
317cacdcc9
Fix test generation
2018-09-13 14:55:32 -04:00
Rick Waldron
5c02a094cb
Generate tests
2018-09-13 10:23:49 -04:00
Rick Waldron
6bedd8f1c6
Merge pull request #1717 from leobalter/1711-fixes
...
Apply fixes on recent class element tests
2018-09-11 11:22:43 -04:00
Rick Waldron
2c714ede1d
Merge pull request #1719 from leobalter/private-fields-methods-whitespace-syntax-error
...
Private fields and methods whitespace syntax error
2018-09-11 11:20:44 -04:00
Leo Balter
a17484e230
Generate Tests
2018-09-10 17:13:06 -04:00
Leo Balter
b056d138fa
generate tests
2018-09-10 14:15:40 -04:00
Leo Balter
5cdbf084a7
Generate tests
2018-09-10 14:13:39 -04:00
Rick Waldron
6aa46d0ddb
Merge pull request #1707 from leobalter/private-methods-args
...
Add class private methods (include static) to arguments templates
2018-09-10 11:57:40 -04:00
Leo Balter
a9837df144
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
e28a6f37d0
remove old duplicates
2018-09-10 11:20:40 -04:00
Leo Balter
7766d0fb66
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
94a40cb474
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
8524805f25
Final cases to move to tests generation
2018-09-10 11:20:40 -04:00
Leo Balter
bcfc576af4
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
daea4efc57
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
20217a7eeb
add cases for static method names named prototype
2018-09-10 11:20:40 -04:00
Leo Balter
ef591384d8
Remove old duplicate tests
2018-09-10 11:20:40 -04:00
Leo Balter
ee9739c699
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
af9bcfef5f
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
92c83dfbd4
Add cases for non-ctor methods containing direct super
2018-09-10 11:20:40 -04:00
Leo Balter
bf5661bf60
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
46e03c3875
add generation cases for special methods with propname constructor
2018-09-10 11:20:40 -04:00
Leo Balter
eae139d8ef
Generate tests
2018-09-04 17:10:51 -04:00
Leo Balter
2c9583a309
Generate tests
2018-09-04 12:40:30 -04:00
Leo Balter
a4faf41ed6
Generate tests
2018-08-31 15:22:43 -04:00
Leo Balter
fa36c45083
Fix generated tests
2018-08-21 16:32:10 -04:00
Leo Balter
dbcd388154
Remove duplicate of test/language/statements/class/fields-privatename-constructor-err.js
2018-08-21 16:24:37 -04:00
Leo Balter
e25e53c0a7
Fix tests for #constructor
2018-08-21 16:11:27 -04:00
Leo Balter
45a31876e7
Fix tests for computed names in class fields - ctor and prototype
2018-08-21 15:50:39 -04:00
Leo Balter
3690d98e27
Generate tests
2018-08-21 12:47:19 -04:00
Leo Balter
dacc69a066
Generate tests
2018-08-21 12:17:05 -04:00
Leo Balter
9a7fa8cb91
Generate tests
2018-08-20 17:12:40 -04:00
Leo Balter
de1bbd65c8
Generate tests
2018-08-20 16:38:54 -04:00
Leo Balter
96809308fd
Generate tests
2018-08-20 16:38:54 -04:00
Leo Balter
c5a1a4a24b
Generate tests
2018-08-20 16:38:54 -04:00
Rick Waldron
331a3964d5
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
aee9dc163e
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
f222b94f2a
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
ad9fd16bd1
Class Fields: convert .js file to .case
2018-08-20 16:38:52 -04:00
Rick Waldron
1466650ca3
Class Fields: add private name propname errors
2018-08-20 16:38:52 -04:00
Rick Waldron
734544272b
Class Fields: convert propname-error into non-generated to avoid creating erroneous tests where restrictions do not align.
2018-08-20 16:38:52 -04:00
Rick Waldron
3996741ca0
Class Fields: Remove templates that cause erroneous tests to be created.
2018-08-20 16:38:52 -04:00
Rick Waldron
90e8859cdd
Class Fields: Updating frontmatter
2018-08-20 16:38:52 -04:00
Valerie R Young
5d014bdfba
classfields: field definition abrupt completion tests
...
# Conflicts:
# test/language/statements/class/classelementname-abrupt-completion.js
# test/language/statements/class/fielddefinition-initializer-abrupt-completion.js
# test/language/statements/class/super-fielddefinition-initializer-abrupt-completion.js
2018-08-20 16:38:52 -04:00
Rick Waldron
588459fc34
Generate tests
2018-07-25 12:19:29 -04:00
André Bargull
06c2f01901
Fix multiple test bugs and remove incomplete or no longer valid tests ( #1616 )
2018-06-29 18:52:53 -04:00