Commit Graph

852 Commits

Author SHA1 Message Date
Kubilay Kahveci b7fb4ade5e Generate tests 2018-10-26 15:12:43 -04:00
Leo Balter 70248aa166 Generate tests 2018-10-26 14:41:35 -04:00
Leo Balter 1538a93bc1 typo 2018-10-25 13:30:18 -04:00
Leo Balter 09e608edad Add cases for ImportCall syntax reused in CallExpressions 2018-10-25 13:30:18 -04:00
Leo Balter ca87891961 Add case for valid import in a new covered expression 2018-10-25 13:30:18 -04:00
Leo Balter cd9ca65787 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter 51a0bad7d4 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter a347df3aae Add tests for invalid expressions with import() with early ReferenceErrors 2018-10-25 13:30:18 -04:00
Leo Balter d641be96b4 Add test for import() used from eval 2018-10-25 13:30:18 -04:00
Leo Balter 54aba308b7 import() must not allow a escape sequence 2018-10-25 13:30:18 -04:00
Leo Balter 91bf2474c2 Add more cases for import.meta and new promise instances 2018-10-24 12:27:40 -04:00
Leo Balter bcdc613df7 Add case for custom toprimitive operations 2018-10-24 12:27:40 -04:00
Leo Balter 23e9d7d58e Add another case for indirect module binding update
Also cases for double failing resolutions
2018-10-24 12:27:40 -04:00
Leo Balter aebfbdd9df Add more edgy cases for import()
Also rename test/language/expressions/dynamic-import/assignment-expression/
2018-10-24 12:27:40 -04:00
Rick Waldron 757491d4f8 Corrections to export * specifier paths. Fixes gh-1883 (#1894) 2018-10-24 12:17:56 -04:00
André Bargull c3e384c8c5 Add initial tests for import.meta (#1888)
Fixes #1342
2018-10-23 15:23:08 -04: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
Leo Balter e620039286 Add some more cases for import() 2018-10-18 17:17:54 -04:00
Leo Balter f1b337cf55 Generate tests 2018-10-18 17:06:26 -04:00
Leo Balter eedbf4cf1d Generate tests 2018-10-18 17:06:26 -04:00
Leo Balter aefadabda7 Generate tests 2018-10-18 17:06:26 -04:00
Leo Balter a4d102e020
Add tests for Assignment Expressions in Dynamic Imports (#1865) 2018-10-18 16:14:02 -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
André Bargull faed4fb089 Fix various test issues 2018-10-17 07:45:33 -07:00
Leo Balter 2ac5f1766e Add tests for delete expression returning true on non reference types 2018-10-16 19:47:25 -04:00
Leo Balter 061a8ea63a
Merge pull request #1853 from leobalter/dyn-import-part3
Add more cases for dynamic imports
2018-10-15 14:36:01 -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
Leo Balter 206370b98e missing copyright header 2018-10-12 17:58:54 -04:00
Leo Balter 81d6bb21a9 Generate tests 2018-10-12 17:27:24 -04:00
Leo Balter 103ee25959 More coverage for namespace object 2018-10-12 17:27:00 -04:00
Leo Balter b7e0a48725 Reuse fixture 2018-10-12 15:32:38 -04:00
Leo Balter 1eb6c6a546 Generate tests 2018-10-12 14:49:54 -04:00
Leo Balter cce2f219f0 Add tests for export * as ns from mod to dyn imports 2018-10-12 14:49:53 -04:00
Leo Balter 3968c2d831 Migrate test for ns 2018-10-11 16:57:36 -04:00
Leo Balter 019322b114 Generate tests 2018-10-11 11:09:48 -04:00
Leo Balter ec1d7ccc6f Rename imported to namespace 2018-10-11 11:09:48 -04:00
Leo Balter 1c119e323e Generate tests 2018-10-11 11:09:48 -04:00
Leo Balter dc2da1558f Add tests for the resolved namespace obj 2018-10-11 11:09:48 -04:00
Leo Balter 070198fbad Generate tests 2018-10-11 11:09:47 -04:00
Leo Balter f8fda5b6d2 Remove nested-with template for usage/catch tests
This should be well covered in the syntax templates and opens the path for tests with module code restrictions
2018-10-11 11:09:47 -04:00
Leo Balter b0ec060e62 Add more cases for Dynamic Imports usage
- Add cases for mixing module and script code
- Rename test case from return promise to thenable
- Fix script code case with valid loaded fixture
- Add a test to assert a promise return
- Add case for specifier toString rejection
- Add case for specifier toString
- Test Assignment expression abrupt completion
- Test Promise return
2018-10-11 11:09:47 -04:00