712 Commits

Author SHA1 Message Date
Mathias Bynens
e3feffb01e Move throw "…" for negative parsing errors to a helper function
Closes #1634.
2018-10-23 13:51:16 +02:00
Leo Balter
3936950114 Fix test previously invalid for strict mode 2018-10-19 12:43:39 -04:00
Leo Balter
fc250a310c fix test with unnecessary async generator 2018-10-19 12:43:39 -04:00
Leo Balter
98b3cc95f7 flag resolved import specifiers in test files 2018-10-19 12:43:39 -04:00
Leo Balter
c93b1075f5 Generate tests 2018-10-19 12:43:39 -04:00
Leo Balter
7ee8091259 Move namespace test files 2018-10-19 11:51:40 -04:00
Leo Balter
20b6a3b0a7 Move dynamic-import tests to test/language/expressions 2018-10-19 11:48:17 -04:00
André Bargull
100b3b4afe Add missing includes for await tests (#1874) 2018-10-18 12:02:25 -04:00
Maya Lekova
b98c45ca5a AsyncFunction: Add tests ensuring the new 1-tick await behaviour (#1843)
* AsyncFunction: Add tests ensuring the new 1-tick await behaviour

This commit adds 3 tests ensuring the optimized behaviour of await
(see https://github.com/tc39/ecma262/pull/1250) in the following cases:
- async functions
- yielding from async generator functions
- for-await-of loops

* AsyncFunction: Add tests ensuring the monkey-patched promises behaviour

This commit adds 2 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250) in the following cases:
- awaiting on a native promise with monkey-patched "then"
- awaiting on a non-native promise (a "thenable" object)

* AsyncFunction: Add tests ensuring the non-native promises behaviour

This commit adds 1 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250) in the following cases:
- awaiting on a non-promise, non-thenable object

It also renames the previous test for non-promise (a "thenable" object)
to distinguish from the new case.

The commit adds checks for proper await/promises interleaving in the
aforementioned cases and includes a small code clean-up.

* AsyncFunction: Refactor tests ensuring the new 1-tick await behaviour

Gather all the tests to their appropriate folder and update copyright header.
2018-10-17 16:10:09 -04:00
Leo Balter
2ac5f1766e Add tests for delete expression returning true on non reference types 2018-10-16 19:47:25 -04:00
Rick Waldron
3bcb28e918 Generate tests 2018-10-15 12:43:16 -04:00
Mike Pennisi
36f5d9527f Refactor compound assignment tests for parsers
The tests for the parsing of compound assignment expressions 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-15 11:55:29 -04:00
Mike Pennisi
a3a5bedee4 Add esid metadata 2018-10-15 11:55:29 -04:00
Mike Pennisi
6870cc4a77 Rename files 2018-10-15 11:55:29 -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
46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
jugglinmike
42ed4291f5 Refactor increment/decrement tests for parsers (#1786)
The tests for the parsing of postfix increment, postfix decrement,
prefix increment, and prefix decrement 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-09-24 12:29:30 -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
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
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
bf5661bf60 Generate tests 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
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