Commit Graph

3217 Commits

Author SHA1 Message Date
Shu-yu Guo f6b2ccdd09
Use assert instead of the nonexistent assert.ok (#2510) 2020-02-24 15:30:05 -08:00
Alexey Shvayka 6d4b62614b Add Symbol.isConcatSpreadable get order test 2020-02-20 12:38:28 -05:00
Alexey Shvayka e8c53a2d4e Add "length" exceeding integer limit test 2020-02-20 12:38:28 -05:00
Alexey Shvayka b1e8a1cf8d Refactor 2 tests using propertyHelper.js harness 2020-02-20 12:38:28 -05:00
Gus Caplan b3c94b3268 Update call-proto-not-ctor.js 2020-02-20 12:37:03 -05:00
Gus Caplan 922e27fd8c fix super evaluation order tests 2020-02-20 12:37:03 -05:00
Alexey Shvayka 602cdaca46 Add Array#flatMap non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 08634993b4 Add Array#flatMap non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 2d3a718c8e Add Array#flatMap non-writable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka e9a7dc5eb6 Add Array#flat non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 9b7f7bb80a Add Array#flat non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka e9c8807caf Add Array#flat non-writable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 61e969d953 Add Array#concat non-extensible tests 2020-02-20 12:36:10 -05:00
Alexey Shvayka 3fa940e7cd Add Array#concat non-configurable property tests 2020-02-20 12:36:10 -05:00
Alexey Shvayka 5faee49d36 Add Array#concat non-writable property tests 2020-02-20 12:36:10 -05:00
Alexey Shvayka 8310766461 Add Array#splice non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 4566372b88 Add Array#splice non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 7c8dac120f Add Array#slice non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka b6590765f9 Add Array#slice non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 06357bed6a Add Array#filter non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka d842aa21af Add Array#filter non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 10ead92024 Add Array#map non-extensible test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 1f7a0be6f5 Add Array#map non-configurable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka ac1c1b23c6 Add Array.of non-writable property test 2020-02-20 12:36:10 -05:00
Alexey Shvayka 61aa9951f2 Add Array.from non-writable property tests 2020-02-20 12:36:10 -05:00
Alexey Shvayka 8d4fbb4ab9 Add Array.from with non-iterable test 2020-02-20 12:36:10 -05:00
Alexey Shvayka b478d5fa29 Make Array.from with iterable test more precise 2020-02-20 12:36:10 -05:00
Caio Lima 5d5904d69a Adding test cases to verify that 'numberingSystem' and 'calendar' options are being mapped to lower case 2020-02-20 12:33:21 -05:00
Toru Nagashima eab9d3bd30 update tests to follow review 2020-02-20 12:16:43 -05:00
Toru Nagashima 7b1a828459 add tests from #2486 2020-02-20 12:16:43 -05:00
Toru Nagashima d2dab3510f Add test case for BigInt in LiteralPropertyName 2020-02-20 12:16:43 -05:00
Daniel Ehrenberg c6dd620ad3 Rename FinalizationGroup to FinalizationRegistry
Corresponds to https://github.com/tc39/proposal-weakrefs/pull/183

(Note, this is untested)
2020-02-20 12:13:29 -05:00
Ross Kirsling 723205bd54 Fix invalid YAML from #2470 and #2474. 2020-02-20 12:12:03 -05:00
Jordan Harband a1fbd310e0 `Atomics.store` now normalizes -0 to +0
Per https://github.com/tc39/ecma262/pull/1827
2020-02-13 10:39:14 -05:00
Gus Caplan 900855b07b Fix Promise/prototype/finally/rejected-observable-then-calls-argument 2020-02-13 10:37:24 -05:00
Gus Caplan 47f8c1c976 add more missing feature flags 2020-02-13 10:36:42 -05:00
Gus Caplan 505949357b Fix call to $DONE 2020-02-08 08:55:38 -05:00
Gus Caplan 5b231ab2d6 add missing WeakSet and WeakMap features 2020-02-08 08:54:09 -05:00
Rick Waldron 811090fce2 Fix: \$DONE() must not be called with an argument, unless the argument is an error. 2020-02-07 12:24:43 -05:00
Jordan Harband 0ebbdf0395 `Promise.prototype.finally` thunks have a length of 0 2020-02-07 11:44:31 -05:00
Natalie Silvanovich 5c9b5ed610 Updating description for search element test 2020-02-06 12:43:52 -05:00
Natalie Silvanovich 07e708d900 TypedArray includes tests 2020-02-06 12:43:52 -05:00
Natalie Silvanovich 7ad85e90a9 Security test for TypedArray.prototype.sort based on CVE-2016-7288 2020-02-06 11:10:17 -05:00
Ms2ger 1f7f5ef23c Change the unit in the NumberFormat unit tests.
This ensures https://github.com/tc39/proposal-unified-intl-numberformat/pull/93 is covered.
2020-02-06 11:09:18 -05:00
Caio Lima 6ecaf1f065 Adjusting separator character 2020-02-05 15:11:25 -05:00
Caio Lima 2e6a371f71 Adding missing 'zip' function 2020-02-05 15:11:25 -05:00
Caio Lima 1337f11e21 Adding tests to cover 'fractionalSecondDigits' on DateTimeFormat.prototype.formatRangeToParts. 2020-02-05 15:11:25 -05:00
Alexey Shvayka 72c4433687 Add `replaceValue` evaluation order test 2020-02-05 15:08:07 -05:00
Alexey Shvayka 946a2a3fec Merge "length" tests 2020-02-05 15:08:07 -05:00
Tooru Fujisawa e756399793 Add test for NumericLiteralSeparator after decimal point followed by DecimalDigit 2020-02-05 15:06:46 -05:00
Alexey Shvayka 57d5ffa471 Fix $DONE usage 2020-02-05 15:05:51 -05:00
Alexey Shvayka c5b1c97362 Fix isConstructor checks 2020-02-05 15:05:51 -05:00
Alexey Shvayka b3ec56fb8c Add CreateResolvingFunctions tests 2020-02-05 15:05:51 -05:00
Alexey Shvayka 8ce27898b9 Add Then Finally Functions test 2020-02-05 15:05:51 -05:00
Alexey Shvayka 1e13f2b1e7 Add Catch Finally Functions test 2020-02-05 15:05:51 -05:00
Alexey Shvayka 95fd012c66 Add isConstructor to Promise.prototype.finally test 2020-02-05 15:05:51 -05:00
Natalie Silvanovich a12677ec4c Adding security tests for TypedArray.prototype.fill based on CVE-2016-4734 2020-02-05 15:04:06 -05:00
Natalie Silvanovich c2e157240d Test that Typed Array internal slots are not inherited by TypedArray.prototype.buffer 2020-02-05 14:31:10 -05:00
Alexey Shvayka 963917618f Test that JSON.stringify calls replacer on deleted properties 2020-02-05 14:25:04 -05:00
Tomas Echeverri Valencia 6d4d69f19f Add missing `?` in unit test (#2477)
The question mark is required as it is part of the "optional chaining operator" `?.` that's being tested here
2020-01-24 14:22:34 -05:00
Caio Lima 04b1d2254b Added tests with invalid values for calendar and numberingSystem (#2480) 2020-01-24 14:21:33 -05:00
Alexey Shvayka 4383f2c6ba Add Object.{freeze,preventExtensions,seal} abrupt completion tests (#2468)
* Add Object.freeze test

* Add Object.preventExtensions test

* Add Object.seal test
2020-01-14 11:31:45 -05:00
Ms2ger 28b4fcca4b Add tests for the numberingSystem option to RelativeTimeFormat. (#2459)
* Add tests for the numberingSystem option to RelativeTimeFormat.

* fixup! Add tests for the numberingSystem option to RelativeTimeFormat.
2020-01-08 16:29:13 -05:00
Ms2ger 87ac236324 Add a specific test for relatedYear output. (#2458)
Based on <https://cs.chromium.org/chromium/src/v8/test/intl/date-format/related-year.js>.

Fixes #2332.
2020-01-08 16:27:39 -05:00
Lo̹̫̦̥̬̜͈͝n̗͚̼̤ĝ̮̫͎̬̬͕̪ͫ̐̕ ͭ̊H̱̏ͬ̃ͨ̆͗o̱͚͉͉̖̰̪ͯ̈ͪ̈̎̚ cd6db88295 Fix toNumber consistency issue with boolean (#2456)
As per https://tc39.es/ecma262/#table-11 `toNumber(false)` is supposed to be `+0`
2020-01-08 16:24:19 -05:00
Ms2ger 2fb0eca404 More tests for Unified NumberFormat. (#2454) 2020-01-08 16:23:01 -05:00
Ross Kirsling 01007880bc Add test verifying offsetless date-time string is local time. (#2461)
* Add test verifying offsetless date-time string is local time.

* Fix copyright year.
2020-01-08 15:32:28 -05:00
Ross Kirsling 623e9d199a Add tests for Array methods throwing with string receiver. (#2463) 2020-01-08 14:00:30 -05:00
Leo Balter 6e4d442cc6
Fix syntax typos + whitespace (#2466)
Ref #2444
2020-01-08 13:57:49 -05:00
Natalie Silvanovich 65afdfbff6 Additional tests for TypedArray copyWithin (#2444) 2020-01-08 13:26:40 -05:00
Leo Balter 20ca8e3568
Merge pull request #2465 from bocoup/eval-param-only-sloppy
Test cases for new ReferenceError: remove class tests and add no-strict
2020-01-08 12:58:40 -05:00
Valerie Young 55b28c166f Generate tests 2020-01-08 09:30:47 -08:00
Jordan Harband 5cb381cbe0
super evaluation order tests
For https://github.com/tc39/ecma262/pull/1775
2020-01-06 11:15:26 -08:00
Shu-yu Guo 68352eb8b5 Flag sloppy eval in parameter initializer tests as noStrict 2020-01-03 15:36:51 -08:00
Leo Balter 157b18d16b
Merge pull request #2447 from bocoup/eval-param-ref-error
Add test case for new ReferenceError after removal of per-parameter position var scope
2019-12-23 13:39:26 -05:00
Shu-yu Guo 27bda64012 Update tests for removal of per-parameter position var scope (#2445)
See https://github.com/tc39/ecma262/pull/1046
2019-12-23 13:36:09 -05:00
Valerie Young 6281e227f5 generated test files 2019-12-23 13:33:25 -05:00
Frank Yung-Fong Tang 31f1bb5a75 Remove date related types for Intl.DisplayNames (#2448) 2019-12-23 13:07:36 -05:00
Gus Caplan 502cc20010 fix delete test, add error tests, fix lint (#2453) 2019-12-21 16:57:41 -05:00
Alexey Shvayka 19fd4bea79 Improve Object.prototype.isPrototypeOf coverage (#2446) 2019-12-18 21:33:31 -05:00
Benjamin E. Coe 0ea69c7864 feat: regression tests for optional call (#2429)
* feat: regression tests for optional call

* chore: address code review

* chore: fix assertion

* chore: set context rather than return context
2019-12-18 11:35:28 -05:00
Mathieu Hofman a3370bfca5 FinalizationGroup: Improve tests for cleanupSome/unregister interactions (#2440)
* Add test for unregister when the cell was already cleaned up

* FinalizationGroup.cleanupSome: call unregister after gc is performed
2019-12-18 11:26:54 -05:00
Natalie Silvanovich 0ddce199d5 Adding tests for Array.prototype.copyWithin (#2443)
* Adding tests for Array.prototype.copyWithin. This case caused a security bug in Moddable
2019-12-18 11:26:19 -05:00
Kevin Gibbons cadd47aa5f Add test for for-in order (#2432)
* Add EnumerateObjectProperties tests for builtins which use it

* Add tests for EnumerateObjectProperties for for-in

* Add feature flag for for-in-order
2019-12-18 11:25:20 -05:00
Jon Coppeard f7ad2953ed Update tests now that FinalizationGroup.prototype.cleanupSome throws if cleanup is currently in progress. (#2434)
This behaviour was changed in: https://github.com/tc39/proposal-weakrefs/pull/158
2019-12-18 11:23:23 -05:00
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 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