Commit Graph

3905 Commits

Author SHA1 Message Date
Alexey Shvayka 1fd4fb480c Add Object.seal tests 2021-02-08 15:40:48 -05:00
Alexey Shvayka 83ffa3d911 Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
Yusuke Suzuki 93a2ba8c28 Fix BigInt TypedArrays tests
1. test/built-ins/TypedArray/prototype/findIndex/BigInt/predicate-may-detach-buffer.js
It is not updated when a60a67ea88 is landed. This patch fixes it.

2. test/built-ins/TypedArray/prototype/filter/BigInt/callbackfn-detachbuffer.js
After detaching, BigInt64Array/BigUint64Array will produce undefined for indexed access. And
if `filter`'s callback says `true` for these results, we need to store `ToBigInt(undefined)`
to a newly resulted BigInt64Array/BigUint64Array and this will throw an error. But this test
assumed it does not throw. This patch fixed flag so that we do not throw that error while keeping
detached typed arrays tested.
2021-02-03 22:10:52 -05:00
ExE Boss 8f904d8cc8 Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
jmdyck 11624af8d0
Update "info" field (#2941)
The quoted spec wording changed in ecma262#1694.
2021-01-28 16:03:01 -08:00
Mathias Bynens 79060efc7f Add tests for accessors setting their successor 2021-01-27 09:23:28 -05:00
Mathias Bynens e610e75985 Add tests for accessors setting precedessors 2021-01-27 09:23:28 -05:00
Mathias Bynens 80c18c0ea8 Add tests for accessors popping elements 2021-01-27 09:23:28 -05:00
Mathias Bynens 7733d900b2 Add tests for accessors increasing length 2021-01-27 09:23:28 -05:00
Mathias Bynens b7da7c75ce Rename tests 2021-01-27 09:23:28 -05:00
Mathias Bynens 82f634d7fc Add tests for more precise Array#sort
https://github.com/tc39/ecma262/pull/1585
2021-01-27 09:23:28 -05:00
Oskari Noppa a840b0d093 Shorten a very long filename
A quite popular solution for encrypting files on Linux,
[eCryptfs](https://wiki.archlinux.org/index.php/ECryptfs), can't handle
filenames longer than 143 characters when filename encryption is enabled. It
just so happens that the name of this file was 144 characters long, which makes
pulling the repository to an encrypted folder fail.
2021-01-19 09:06:30 -05:00
Caio Lima f81c2f5422 Adding test case for super access from class field defined as arrow function 2021-01-18 09:41:23 -05:00
Kevin Gibbons 96f1e2713b add tests for `for ( async of` 2021-01-18 09:40:36 -05:00
Yusuke Suzuki df1961f16a Fix formatRangeToParts/date-same-returns-single-date.js and add tests using practically-equal two dates
intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js is using `formatRange` and `format`.
Fix this test to use `formatRangeToParts` and `formatToParts` since it is the intention of this test.

This patch adds additional tests to intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js and
intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js. The new test uses two dates that are practially-equal,
and ensures the implementation uses `format` or `formatToParts` by detecting they are practically-equal.
2021-01-10 20:55:08 -05:00
Felipe Balbontín 6cf3433cf8 Update copyright in formatRange/date-same-returns-single-date.js and formatRangeToParts/date-same-returns-single-date.js 2021-01-03 19:52:18 -05:00
Felipe Balbontín 22cdb74659 Add tests for Intl.DateTimeFormat formatRange(ToParts) to check the behavior when startDate is the same as endDate (tc39/proposal-intl-DateTimeFormat-formatRange#19). 2021-01-03 19:52:18 -05:00
Shu-yu Guo 9ca13b1272 Fix typo in BigIntArray property descriptor test 2020-12-30 16:53:29 -05:00
Frank Yung-Fong Tang b2e9dff281 change cel-gaulish map to xtg 2020-12-21 10:15:14 -05:00
Frank Yung-Fong Tang 7c9480476e Update the test based on v35 of UTS35
see http://unicode.org/reports/tr35/#LocaleId_Canonicalization
@anba
2020-12-21 10:15:14 -05:00
Rick Waldron de091de9f6 Include indexOf(undefined, ...) and lastIndexOf(undefined, ...) 2020-12-16 11:59:56 -05:00
Rick Waldron 167e596a64 Align detached buffer semantics with web reality, R6. Fixes gh-2915 2020-12-16 11:59:56 -05:00
Frank Yung-Fong Tang 483219a596 fix mapping for cel-gaulish 2020-12-16 11:59:06 -05:00
Frank Yung-Fong Tang 0b752efc09 Map "cel-gaulish" to "xtg" 2020-12-16 11:59:06 -05:00
Frank Yung-Fong Tang 4ff1828c5e Update to CLDR 38
see 
https://github.com/unicode-org/cldr/blame/master/common/supplemental/supplementalMetadata.xml#L531
and
http://unicode.org/reports/tr35/#LocaleId_Canonicalization
2020-12-16 11:59:06 -05:00
Frank Yung-Fong Tang 10bbf0030a Change sgn-GR: sgn-GR to sgn-GR: gss per CLDR38
see c640c7b9ac/common/supplemental/supplementalMetadata.xml (L149)
2020-12-16 11:59:06 -05:00
Alexey Shvayka 51666c5315 Improve coverage of mapped arguments' [[DefineOwnProperty]] method 2020-12-11 11:06:51 -05:00
Tom Schuster 734c867ac3 Remove test code between license and front matter
The script that we use for updating SpiderMonkey's copy of test262 doesn't like this.
@rwaldron r?
2020-12-10 09:20:36 -05:00
Sébastien Ros 7376666039 Typo 2020-12-10 09:19:33 -05:00
Vlad c1959a44a6 Math.max/min - each element coerced 2020-12-10 09:19:02 -05:00
Felipe Balbontín c898b68ef6 Update the description of some Intl.DateTimeFormat formatRange(ToParts) tests based on changes introduced in tc39/proposal-intl-DateTimeFormat-formatRange#23 2020-12-10 09:17:00 -05:00
Rick Waldron 3b425c6da3 Coverage: missing tests for Array.prototype.reverse method. Fixes gh-2902 2020-12-02 16:34:44 -05:00
Rick Waldron 96aff62fb2 IntegerIndexedElementSet should always indicate success. Ref: tc39/ecma262/pull/2210 2020-12-02 15:06:36 -05:00
Ross Kirsling 73798cbc61
Fix typos for at/prop-desc tests. (#2908) 2020-11-19 02:32:38 -08:00
Rick Waldron 8051f05354 Improved metadata 2020-11-18 16:44:55 -05:00
Rick Waldron fe5f8192de Fix typo 2020-11-18 16:44:55 -05:00
Rick Waldron b5ccbcb5e4 Coverage: Missing test for function length and parameter destructuring. Closes gh-2895 2020-11-18 16:44:55 -05:00
Rick Waldron 602c828805 Coverage: read-only function expression name. Closes gh-2896 2020-11-18 16:30:13 -05:00
Leo Balter 2e5ff2461b fixup! Fix missing renames for item->at 2020-11-18 15:18:14 -05:00
Leo Balter 65bd4432f9 Fix missing renames for item->at
Ref #2905
2020-11-18 15:18:14 -05:00
Rick Waldron e1bfbbfdc8 Fix: Broken test: language/global-code/decl-lex-configurable-global.js. Closes gh-2897 2020-11-18 14:00:54 -05:00
Ross Kirsling df1bce9c2e Rename item() to at(). 2020-11-18 13:31:11 -05:00
Yusuke Suzuki 36d2d2d348 Fix test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/index-prop-desc.js's value
Since the 0's value is 43, 43 should be populated in a descriptor.
2020-11-13 08:57:15 -05:00
Rick Waldron 1c33fdb0ca Test cases for invalid escape sequences preceding "use strict". Fixes gh-2893 2020-11-04 13:46:04 -05:00
Rick Waldron 3d3c56200b Correction 2020-11-04 13:45:45 -05:00
Rick Waldron 112967c1a9 Lint fixes 2020-11-04 13:45:45 -05:00
Rick Waldron 5c546996ba Align detached buffer semantics with web reality, R5. Fixes gh-2879 2020-11-04 13:45:45 -05:00
Rick Waldron 82f38efbab Features: add "intl-normative-optional" 2020-11-03 14:28:17 -05:00
Yusuke Suzuki 20b11bee0f Add tests for [[Description]] of Intl [[FallbackSymbol]]
If normative optional is implemented and [[FallbackSymbol]] is used, its description should be "IntlLegacyConstructedSymbol"
2020-11-02 12:34:09 -05:00
Rick Waldron 3c58228465 Align detached buffer semantics with web reality, R4. Fixes gh-2879 2020-11-02 12:20:44 -05:00
Rick Waldron 959840a62a Remove unused include 2020-10-29 13:50:08 -04:00
Rick Waldron cef698c374 Rename long test file names 2020-10-29 13:49:25 -04:00
Rick Waldron 224c0ce19e Replace unicode characters that pyyaml cannot read 2020-10-29 13:49:09 -04:00
Rick Waldron a563e3a3f8 Remove template that is generating duplicate tests 2020-10-29 13:48:50 -04:00
Rick Waldron 1af15d5199 Add missing features flags 2020-10-29 13:20:18 -04:00
Rick Waldron 0001489473 Update test/built-ins/TypedArray/prototype/forEach/callbackfn-detachbuffer.js
Co-authored-by: Ross Kirsling <rkirsling@gmail.com>
2020-10-21 20:14:36 -04:00
Rick Waldron a60a67ea88 Align detached buffer semantics with web reality, R3 2020-10-21 20:14:36 -04:00
Rick Waldron d6b342338e arbitrary-module-namespace-names: Assertion correction. Fixes gh-2866 2020-10-19 17:47:40 -04:00
Rick Waldron 7d998a098e Align detached buffer semantics with web reality, R2 2020-10-19 17:41:11 -04:00
Shu-yu Guo 6d49a317ac Add missing includes to some Atomics.waitAsync tests 2020-10-19 17:26:47 -04:00
Rick Waldron fd10123a71 String.prototype.split: rename overlong files. Fixes gh-2865 2020-10-19 10:22:45 -04:00
Rick Waldron 3439564fca Add "☿" export to export-expname_FIXTURE.js. Fixes gh-2866 2020-10-17 09:19:45 -04:00
Rick Waldron f2a8384d4d Align detached buffer semantics with web reality, R1 2020-10-16 20:38:21 -04:00
Rick Waldron 23f30e527a Move $DONOTEVALUATE() calls to correct position 2020-10-16 20:37:40 -04:00
Rick Waldron 487b77eda8 Fix gh-2866 2020-10-16 20:34:32 -04:00
Shu-yu Guo f38e55def4 Add SyntaxError tests for string literal export name 2020-10-16 20:32:10 -04:00
Rick Waldron d9740c1726 Atomics.waitAsync: fix lint 2020-10-14 14:21:04 -04:00
Rick Waldron d8efa93bec Generate tests 2020-10-14 14:20:46 -04:00
Rick Waldron bab4da88e3 Remove erroneous test templates and generated files 2020-10-14 14:20:46 -04:00
Rick Waldron b89c3bf369 Generate tests 2020-10-14 14:01:01 -04:00
Caio Lima 72154b17fc Adding test cases to validate private field access with primitive receivers 2020-10-09 16:36:09 -04:00
Jeff Walden 2cfccb765a Add tests verifying that duplicate variants, in a tag or in the tlang component of a tag, make it structurally invalid. 2020-10-09 16:34:33 -04:00
Rick Waldron 59463a2dd7 Cleanups 2020-10-09 13:46:50 -04:00
Rick Waldron bf900a30b2 Create and assign feature: "align-detached-buffer-semantics-with-web-reality" 2020-10-09 13:46:50 -04:00
Rick Waldron 0bb8fe8aba IntegerIndexedElementGet ( O, index ) 2020-10-09 13:46:50 -04:00
Rick Waldron 5f299199c6 IntegerIndexedElementSet ( O, index, value ) 2020-10-09 13:46:50 -04:00
Rick Waldron 47be1e83e2 [[Delete]] ( P ) 2020-10-09 13:46:50 -04:00
Rick Waldron 9c069a6810 sec-%typedarray%.prototype.slice 2020-10-09 13:46:50 -04:00
Rick Waldron 36c2cd165f WIP: Align detached buffer semantics with web reality
To support https://github.com/tc39/ecma262/pull/2164
2020-10-09 13:46:50 -04:00
devsnek 52cb1d0c98 Add missing feature 2020-10-08 20:13:18 -04:00
Gus Caplan ef1ad4c041 add dup __proto__ in json test 2020-10-08 18:05:00 -04:00
Gus Caplan 6aa8338d23 add feature tags 2020-10-08 18:05:00 -04:00
Gus Caplan 1d31345a70 fixup 2020-10-08 18:05:00 -04:00
Gus Caplan 881c9e3ba5 move __proto__ tests 2020-10-08 18:05:00 -04:00
Gus Caplan 14788fee59 move define/lookup tests 2020-10-08 18:05:00 -04:00
Rick Waldron 6d8ab9c35e Coverage: more Atomics.waitAsync tests, fixes, improved messages. 2020-10-08 17:25:45 -04:00
Rick Waldron 04517c7ded Remove erroneous ArrowFunction 2020-10-07 16:43:48 -04:00
Rick Waldron a6d38ffe9a Correction: add explicit language re: application of Forbidden Extensions, bullet 1 2020-10-07 16:43:31 -04:00
Rick Waldron 20e3101105 Lint fixes 2020-10-06 12:01:34 -04:00
Rick Waldron d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron 8aacff591c Standardize built-in constructor testing 2020-10-06 12:01:34 -04:00
Rick Waldron 12ed905003 Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
Rick Waldron c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Rick Waldron ce8ec71c98 Features: add full name for FinalizationRegistry.prototype.cleanupSome. 2020-10-06 12:01:10 -04:00
Frank Yung-Fong Tang 42bf3a9f7a Add the check of collation 2020-10-06 11:05:17 -04:00
Rick Waldron 8a65608dc2 Coverage: Object.seal instances of all built-in constructors, and other built-in values. Fixes gh-2845 2020-10-05 14:38:41 -04:00
Rick Waldron c0b18dfadf Cleanup 2020-10-05 14:38:41 -04:00
Rick Waldron 9d345b6a85 Coverage: Object.seal instances of all built-in constructors. Fixes gh-2845 2020-10-05 14:38:41 -04:00
Rick Waldron d6732b2e28 Object.seal: rename in modern form. 2020-10-05 14:38:41 -04:00
Rick Waldron 32334e52ac Object.seal: fix esids 2020-10-05 14:38:41 -04:00
Rick Waldron e9f7b74855 Coverage: improved Reflect.apply testing with various inputs at args position. Fixes gh-2844 2020-10-05 13:56:19 -04:00
Rick Waldron fd65b84378 Coverage: %TypedArray%.prototype.sort( comparefn = undefined ). Fixes gh-2843 2020-10-05 11:05:57 -04:00
Rick Waldron 6db0565b76 Generate tests 2020-10-05 10:53:43 -04:00
Rick Waldron 9e71e2120a Generate tests 2020-10-05 10:53:43 -04:00
Gus Caplan ad8a5e9940 add Arbitrary module namespace names feature 2020-09-30 14:08:10 -04:00
Rick Waldron f4ec59ad38 Generate tests 2020-09-30 11:51:44 -04:00
Rick Waldron 70a39ad0fb Fix: test/language/module-code/export-expname_FIXTURE.js remove frontmatter. 2020-09-30 10:22:52 -04:00
Rick Waldron dc74a0b0ee Generate tests 2020-09-30 10:05:47 -04:00
Rick Waldron fd4ac46b34 Update test/language/module-code/export-expname-binding-string.js
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-09-30 09:39:35 -04:00
Bradley Farias c43c9d8448 Exports can be Arbitrary Strings 2020-09-30 09:39:35 -04:00
Rick Waldron f4a9af6587 Fix: $262.detachArrayBuffer -> $DETACHBUFFER 2020-09-28 13:28:39 -04:00
Kevin Gibbons c911f71888 Coverage: Date arithmetic is floating point 2020-09-28 09:11:00 -04:00
Yusuke Suzuki 3c789640ec dft-currency-mnfd-range-check-mxfd.js should check maximumFractionDigits, not maximumSignificantDigits
This test is checking maximumSignificantDigits, but this is wrong. We should check maximumFractionDigits.
2020-09-28 09:09:09 -04:00
Rick Waldron 348a706c5d Generate tests 2020-09-25 16:12:12 -04:00
Rick Waldron 677ae94ae9 Generate tests 2020-09-25 15:54:49 -04:00
Rick Waldron 21e97fb616 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron 3f2a2aa464 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron cd778bea8c Generate tests 2020-09-25 13:30:10 -04:00
Rick Waldron 73db72baad Generate tests 2020-09-25 13:15:33 -04:00
Rick Waldron 76dacfb17c Generate tests 2020-09-25 12:58:22 -04:00
Rick Waldron 5090f7adfe Generate tests 2020-09-25 12:01:39 -04:00
Rick Waldron e3b12065b2 Coverage: Array.prototype.item, String.prototype.item, TypedArray.prototype.item. Closes gh-2809, gh-2810, gh-2811 2020-09-24 17:23:38 -04:00
devsnek bf205bac84 Remove annex b regex from main tests 2020-09-24 16:53:08 -04:00
Yusuke Suzuki 3fe45c44c6 Revert "Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits"
This reverts commit a7b9067fe1.
I fixed the test with a7b9067fe1 based on the current spec, but this test was based on WIP spec change.
2020-09-24 14:55:28 -04:00
Rick Waldron e2a4e79a11 Coverage: formal parameter binding identifier "eval" must have the correct value in non-strict code. Fixes gh-2814 2020-09-24 14:54:48 -04:00
Rick Waldron 16bf949629 Coverage: String.prototype.split method, regexp separator. Fixes gh-2813 2020-09-24 14:54:28 -04:00
Rick Waldron 834789514d Rename: legacy -> description 2020-09-24 14:54:28 -04:00
Rick Waldron e5fa1d5ef4 Transform: legacy $ERROR -> assert.* 2020-09-24 14:54:28 -04:00
Rick Waldron dcbc02b7fa Coverage: Object.getOwnPropertySymbols/Names called with non-object values. Fixes gh-2804 2020-09-24 14:53:26 -04:00
Rick Waldron 07cc3c8bb1 Coverage: calling array methods with boolean as thisValue. Fixes gh-2803 2020-09-24 14:52:48 -04:00
Rick Waldron 4bcc582183 Regenerate tests 2020-09-23 11:18:16 -04:00
Rick Waldron 601688856e Generate tests 2020-09-23 11:18:16 -04:00
Rick Waldron 41c5a42fa7 Generate tests 2020-09-22 10:37:57 -04:00
Rick Waldron b59bd307a8 Coverage: async arrow in ClassHeritage. Fixes gh-1736 2020-09-22 10:37:57 -04:00
Rick Waldron fd92897147 Generate tests 2020-09-22 10:37:38 -04:00
Rick Waldron 82ee7a2cfb Coverage: String.prototype.replace method calls toString on replaceValue (regexp object). Fixes gh-2797 2020-09-22 10:37:20 -04:00
HyeockJinKim be99a3e519 Add coverage for rest properties with computed key
gh-2089
2020-09-22 10:31:33 -04:00
Yusuke Suzuki e75ed15b91 Perl YAML parser cannot parse documents in options-granularity-abrupt-throws.js and options-granularity-toString-abrupt-throws.js
Remove line terminator.
2020-09-21 16:04:44 -04:00
Yusuke Suzuki 333da4198a Connector of date and time style can be " at " or ", "
macOS system ICU is shipping new CLDR, but it has many overrides on the top of it to make the formatted output suitable for the system.
And in timedatestyle-en.js tests, we intentionally override the CLDR data with the different format.
This change modifies the test to accept that alternative output.
2020-09-19 15:35:45 -04:00
Rick Waldron fd12f5bc6b Coverage: Error message default value + cleanup. Fixes gh-2789 2020-09-18 16:42:22 -04:00
Rick Waldron 5e3761f5c8 Cleanup: parseInt, migrate legacy tests to assert, update messages. 2020-09-18 16:25:50 -04:00
Rick Waldron 55652110f7 Update test/language/statements/try/completion-values-fn-finally-abrupt.js
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
2020-09-18 16:19:13 -04:00
Leo Balter 536ecd08a9 completion values of try-catch-finally 2020-09-18 16:19:13 -04:00
Rick Waldron 5de16292fd Coverage: try/catch/finally completion values. Fixes gh-1742 2020-09-18 16:19:13 -04:00
Rick Waldron 81db9994c9 Cover NumericLiteral..toString, NaN.toString, Infinity.toString. Fixes gh-1732 2020-09-17 16:24:33 -04:00
Rick Waldron 1ab47810d1 Generate tests 2020-09-17 16:24:07 -04:00
Rick Waldron be7e9ff98b Computed Property Names: YieldExpression that yields something. 2020-09-17 16:24:07 -04:00
Rick Waldron 916cdb72e5 Generate tests 2020-09-17 16:23:26 -04:00
Rick Waldron 67382a1e8e Add await test: await is valid in non-module strict mode code. 2020-09-17 16:22:22 -04:00
Rick Waldron 057a31e15e Add coverage for reserved words in shorthand properties. Fixes gh-1179 2020-09-17 16:22:22 -04:00