Commit Graph

4248 Commits

Author SHA1 Message Date
Ross Kirsling 09380a4ae4 Add test verifying that optional call preserves `this`. (#2436)
* Add test verifying that optional call preserves `this`.

* Update test/language/expressions/optional-chaining/optional-call-preserves-this.js

Co-Authored-By: Leo Balter <leonardo.balter@gmail.com>
2019-12-03 16:28:15 -05:00
Leo Balter 5c41447b75
Remove incorrect tests for AggregateError#toString (#2435)
A conforming implementation of ECMAScript may provide additional types, values, objects, properties, and functions beyond those described in this specification. In particular, a conforming implementation of ECMAScript may provide properties not described in this specification, and values for those properties, for objects that are described in this specification.

Ref #2433
2019-12-03 12:43:58 -05:00
Frank Yung-Fong Tang 65e996ba81 Check the step 29 of InitializeDateTimeFormat (#2427) 2019-12-02 10:43:53 -05:00
Gus Caplan 22978d381c add test for typeof proxy (#2438) 2019-12-02 10:42:08 -05:00
Leo Balter 8ef20fb521
Merge pull request #2439 from devsnek/engine262
add engine262 runner
2019-12-02 10:31:40 -05:00
Gus Caplan df8aa614be
add engine262 runner 2019-11-29 13:57:28 -08:00
Leo Balter 2213d13a4b
Merge pull request #2425 from bcoe/optional-chaining-iteration
feat(optional-chaining): add tests for IterationStatement
2019-11-19 08:09:25 -08:00
bcoe 5babea2780
chore: added a few more examples based on code review 2019-11-18 20:44:34 -08:00
Leo Balter 3682ddd7e3
Add tests for String#replaceAll (#2423)
Fixes #2417
2019-11-18 10:22:07 -05:00
bcoe 3d0c2037c3
feat(optional-chaining): add tests for IterationStatement 2019-11-17 21:11:24 -08:00
Leo Balter 7040938bd0
Fix tests for AggregateError (#2419)
Ref tc39/proposal-promise-any#49
2019-11-15 12:46:58 -05:00
Jon Coppeard 43b0c7650d Update tests for FinalizationGroup#register (#2424)
FinalizationGroup#register should throw if called with target and holdings being the same value.

This change happenend in: https://github.com/tc39/proposal-weakrefs/pull/165
2019-11-14 11:13:32 -05:00
Leo Balter aa9ba4b58f
Add tests for Intl.DisplayNames#resolvedOptions (#2405) 2019-11-13 10:50:18 -05:00
Leo Balter 8f8b3374c2
Merge pull request #2420 from shvaikalesh/improve-json-parse-coverage
Improve JSON.parse reviver parameter coverage
2019-11-12 13:38:48 -05:00
Leo Balter 8544b062f3
Merge pull request #2418 from leobalter/remote-aggregateerror-tostring
Remove aggregateerror tostring
2019-11-12 11:56:30 -05:00
Gus Caplan 34333993d7 tag subclass tests with WeakSet and WeakMap (#2421) 2019-11-11 20:58:38 -05:00
Alexey Shvayka 5728e1b6c9 Add reviver prototype chain lookup tests 2019-11-12 02:14:05 +02:00
Alexey Shvayka 80a99f703b Add reviver object with non-configurable property tests 2019-11-12 02:14:05 +02:00
Alexey Shvayka 027cc0c0ca Add reviver array with non-configurable property tests 2019-11-12 02:14:05 +02:00
Alexey Shvayka 64ce046229 Add reviver wrapper test 2019-11-11 23:58:07 +02:00
Alexey Shvayka da9612db98 Add some more Proxy/ownKeys invariants tests (#2413)
* Defer making [[ProxyTarget]] non-extensible

* Fix typo in method name

* Add last Object.keys with Proxy invariant test

* Add Object.getOwnPropertySymbols with Proxy invariants tests

* Add Object.getOwnPropertyNames with Proxy invariants tests

* Replace "es6id" with "esid" in Object.getOwnPropertySymbols tests
2019-11-11 15:02:07 -05:00
Alexey Shvayka 600245fcd3 Add integer index tests for Proxy "set" and "has" traps (#2412)
* Make Proxy [[HasProperty]] in prototype test more robust

* Add integer index Proxy [[HasProperty]] in prototype test

* Add integer index Proxy [[Set]] in prototype test
2019-11-11 15:01:39 -05:00
Leo Balter 13016eb89d
Merge pull request #2416 from devsnek/fix-newlines
Add lint check for missing newlines at end of tests and fix tests without the newlines
2019-11-11 14:48:55 -05:00
Leo Balter 206c0cbb55
Merge branch 'master' into fix-newlines 2019-11-11 14:40:28 -05:00
Gus Caplan 9bb90d1a34 Fix failure phase in coalesce tests (#2415) 2019-11-11 14:38:26 -05:00
Leo Balter 02bdf77b19 Add test for AggregateError's toString
Ref tc39/proposal-promise-any#49
2019-11-11 12:19:20 -05:00
Leo Balter 90231ad16f Remote tests for AggregateError.prototype.toString
Ref tc39/proposal-promise-any#49
2019-11-11 11:20:24 -05:00
Gus Caplan a53f43e1ce
add missing newlines in tests 2019-11-10 20:18:56 -08:00
Gus Caplan 833825849d
add lint check for newline at end of file 2019-11-10 20:18:53 -08:00
Leo Balter 1bc193528b
Add tests for AggregateError (#2406)
This covers part of the Promise.any proposal
2019-11-07 11:01:21 -05:00
Ross Kirsling 91861e2330 Remove incorrect optional chaining tests. (#2411) 2019-11-01 14:05:31 -04:00
Caio Lima d89c2cd601 Adding case to test invalid syntax when using PrivateName after '?.' (#2408) 2019-11-01 10:44:07 -04:00
Leo Balter 21195de94c
Inital commit for Intl.DisplayNames tests (#2404) 2019-10-17 10:32:00 -04:00
Ms2ger 4b6efea2c6 Add more tests for DateTimeFormat.hourCycle/hour12. (#2385)
In particular, when using dateStyle/timeStyle.

See also <https://github.com/tc39/proposal-intl-datetime-style/issues/34>.
2019-10-15 12:39:34 -04:00
Frank Yung-Fong Tang 146ef7db57 add features: [Intl.DateTimeFormat-formatRange] (#2403) 2019-10-10 15:27:20 -04:00
Leo Balter 98883a577e
Use canonical format for the description in the metatags (#2401)
Ref #2387
2019-10-10 11:30:26 -04:00
Leo Balter f25ae223b8 Add cases for matching paren covered logical expressions 2019-10-09 21:52:52 -04:00
Leo Balter f0f4cd6138 Improve metadata 2019-10-09 21:52:52 -04:00
Leo Balter c7a158e74b Add feature 2019-10-09 21:52:52 -04:00
Leo Balter ec41c1a417 Add tests for Nullish Coalesce Expression 2019-10-09 21:52:52 -04:00
Leo Balter 6b66b82d88 Cleanup compareArray and deepEqual assertions, remove assert._formatValue
Fixes #2372
2019-10-09 17:57:10 -04:00
Leo Balter 4182972a49
Merge pull request #2396 from leobalter/2381/yaml
Yaml consistency
2019-10-09 13:29:16 -04:00
Jordan Harband 59d1af9d2a [matchAll] pass a global regex (#2399)
- also, expect the right kind of error in `flags-undefined-throws.js`

Fixes #2398
2019-10-09 10:32:39 -04:00
Leo Balter d49777de27 Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
Alexey Shvayka bb6ce7e435 Add test for Proxy "has" trap on prototype (#2382)
* Use allowProxyTraps.js in [[Set]] tests

* Add [[HasProperty]] test
2019-10-08 14:58:27 -04:00
Alexey Shvayka 1aac32e2f8 Improve Proxy/ownKeys invariants coverage (#2384)
* Add non-configurable invariant test

* Add non-extensible invariant test
2019-10-08 14:54:46 -04:00
Frank Yung-Fong Tang 79591ae6c8 Add test for #349 and #351 PR (#2379)
Test DateTimeFormat change pattern based on calendar and output relatedYear and yearName
based on the assumption that "en-u-ca-chinese" will output 'relatedYear' and 'yearName'.
https://github.com/tc39/ecma402/pull/349
https://github.com/tc39/ecma402/pull/351
@rwaldron @leobalter @Ms2ger @littledan
2019-10-08 14:54:02 -04:00
Leo Balter 2b48ec7a00 More yaml and whitespace fixes
Ref #2383
2019-10-08 14:50:57 -04:00
Leo Balter 917e6f7f99 Yaml consistency
Ref #2381
2019-10-08 14:48:59 -04:00
Frank Yung-Fong Tang 79a01f5122 Add tests for 'numberingSystem' and 'calendar' options (#2383)
* Add tests for 'numberingSystem' option

* add constructor-numberingSystem-order.js

* correct esid

* initial actual

* add let

* add constructor-calendar-numberingSystem-order.js
2019-10-08 14:48:46 -04:00