4324 Commits

Author SHA1 Message Date
Frank Tang
d38e98d1f3 Fix formatToParts expectation @ RelativeTimeFormat
Fix wrong expectations of
Intl.RelativeTimeFormat.prototype.formatToParts
Add tests to cover "group", "decimal" and "fraction".
2018-10-31 12:38:29 -04:00
Rick Waldron
1fb8e8d22f Merge branch 'segmenter-v8' of git://github.com/Ms2ger/test262 into Ms2ger-segmenter-v8
* 'segmenter-v8' of git://github.com/Ms2ger/test262:
  Intl.Segmenter: Submit batch of V8 tests for the iterators.

# Conflicts:
#	implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:35:49 -04: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
Leo Balter
70248aa166 Generate tests 2018-10-26 14:41:35 -04:00
Leo Balter
38be52c525 fix usage of assertFalse
Fixes #1904
2018-10-26 14:34:24 -04:00
Ms2ger
72ab472057 Intl.Segmenter: Submit batch of V8 tests for the iterators. 2018-10-26 12:00:39 +02: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
Ms2ger
e847c6ebb0 Intl.Collator: Add a test for search and sort in German.
Ref: https://github.com/tc39/ecma402/issues/256.
2018-10-25 13:08:08 -04:00
Ms2ger
0d07ed06c0 Intl.Segmenter: Submit batch of V8 tests for segment(). 2018-10-25 10:15:11 -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
Ms2ger
0dcec72e34 Intl.ListFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:22:08 -04:00
Ms2ger
b8b93ec421 Intl.RelativeTimeFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:21:25 -04:00
Rick Waldron
757491d4f8 Corrections to export * specifier paths. Fixes gh-1883 (#1894) 2018-10-24 12:17:56 -04:00
Ms2ger
e1be2c8f8b Intl.Segmenter: Add some tests for the constructor. 2018-10-24 10:13:31 -04:00
Ms2ger
52dfda893d Intl.Segmenter: Test the order of properties in the result of resolvedOptions(). 2018-10-24 09:54:54 -04:00
Rick Waldron
f247a5fe09 Revert "Improve assertion handling when comparison causes failure via coercion"
This reverts commit c49c35674448da02e355661c0804801aac8937ae.
2018-10-23 17:21:17 -04:00
Rick Waldron
c49c356744 Improve assertion handling when comparison causes failure via coercion 2018-10-23 17:00:47 -04:00
Ms2ger
480f11f612 Intl.Segmenter: API tests for the segment method. 2018-10-23 16:18:05 -04:00
André Bargull
c3e384c8c5 Add initial tests for import.meta (#1888)
Fixes #1342
2018-10-23 15:23:08 -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
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
4d6e47bca9 Change RelativeTimeFormat -> ListFormat in ListFormat test 2018-10-17 13:35:58 -04:00
Ms2ger
fa16d7df3f Intl: Add tests for table iteration order.
The order was defined in <https://github.com/tc39/ecma402/pull/279>.
2018-10-17 12:59:38 -04:00
André Bargull
d3e5b818d9 Revert "remove "invalid" from invalid date of "cu" and "nu""
This reverts commit a1c3929c3580103acf593b4390d3ad7a77697fba.
2018-10-17 07:46:46 -07:00