Commit Graph

135 Commits

Author SHA1 Message Date
Jamie Kyle bad7c0487e
Add tests for Object.hasOwn (#2995)
* Add tests for Object.hasOwn

* Update test/built-ins/Object/hasOwn/length.js

Co-authored-by: Jordan Harband <ljharb@gmail.com>

* Update test/built-ins/Object/hasOwn/name.js

Co-authored-by: Jordan Harband <ljharb@gmail.com>

* Fixup comments for Object.hasOwn

* Add Object.hasOwn descriptor test

* use assert.sameValue with true instead of assert()

* remove extra semicolons

* Remove old $ERROR style tests from hasown

* Fix thrown error type in hasown tests

* Fix incorrect test cases

Co-authored-by: Jordan Harband <ljharb@gmail.com>
2021-06-16 17:35:06 -04:00
Mike Pennisi 56ca8add7d Update project structure to support non-JS files
This change is in service of forthcoming tests for the "JSON modules"
language proposal [1]. Verifying the semantics of that proposal requires
modules whose source text is not valid ECMAScript; this change updates
the guidelines for contributing and interpreting tests so that such test
material can be handled consistently.

Differentiating JSON files with a distinct file name suffice will assist
consumers which require special handling of such files (e.g. web
browsers).

Change the pattern used to designate "fixture" files so that it may be
applied to files used for JSON modules.

Increment the project version number to alert consumers of this change
in interpreting instructions.

[1] https://github.com/tc39/proposal-json-modules
2021-05-28 20:02:59 -04:00
Ujjwal Sharma 5e0fc43c66
Add basic tests for proposal-intl-locale-info (#2987)
* Add basic tests for weekInfo

* Add basic tests for textInfo

* Add basic tests for timeZones

* Add basic tests for numberingSystems

* Add basic tests for hourCycles

* Add basic tests for collations

* Add basic tests for calendars

* Add feature for Intl.Locale-info

* add validation to branding tests for locale-info

Add additional assertion to branding tests for proposal-intl-locale-info
to make sure they don't pass spuriously when the proposal is not
implemented.
2021-05-18 22:40:08 -04:00
Mike Pennisi 18834b2e19 Add tests for import assertions 2021-05-14 11:04:29 -04:00
Shu-yu Guo 70bc32edab
Give Error cause tests the error-cause feature tag (#2977) 2021-04-23 15:53:14 -07:00
jugglinmike 61c6f8214b
Add tests for stage 3 proposal "private fields in" (#2963) 2021-04-19 07:50:52 -07:00
Ross Kirsling df1bce9c2e Rename item() to at(). 2020-11-18 13:31:11 -05:00
Rick Waldron 82f38efbab Features: add "intl-normative-optional" 2020-11-03 14:28:17 -05:00
Rick Waldron bf900a30b2 Create and assign feature: "align-detached-buffer-semantics-with-web-reality" 2020-10-09 13:46:50 -04:00
Gus Caplan 6aa8338d23 add feature tags 2020-10-08 18:05:00 -04:00
Rick Waldron ce8ec71c98 Features: add full name for FinalizationRegistry.prototype.cleanupSome. 2020-10-06 12:01:10 -04:00
Gus Caplan ad8a5e9940 add Arbitrary module namespace names feature 2020-09-30 14:08:10 -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
Rick Waldron cbfb7eb96a src/subclass-builtins/*.case: Add missing features 2020-09-15 11:09:52 -04:00
ExE Boss 391cd16f1f Add `legacy‑regexp` to `features` 2020-09-10 16:07:17 -04:00
Leo Balter 5a01caed71 Add feature tag for cleanupSome
The WeakRefs proposal advanced to Stage 4 but cleanupSome moved back to a Stage 2 status.
The tests should remain in Test262 for now but this feature flag should help users to
filter tests out.
2020-07-21 16:57:50 -04:00
Rick Waldron f32b35e7a8 Atomics.waitAsync: add feature to features.txt 2020-04-23 10:32:55 -04:00
Justin Ridgewell 78dbc401b1 Add logical-assignment-operators feature 2020-03-31 10:56:40 -04: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
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
Leo Balter 3682ddd7e3
Add tests for String#replaceAll (#2423)
Fixes #2417
2019-11-18 10:22:07 -05: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
Leo Balter 21195de94c
Inital commit for Intl.DisplayNames tests (#2404) 2019-10-17 10:32:00 -04:00
Leo Balter c7a158e74b Add feature 2019-10-09 21:52:52 -04:00
Leo Balter 7134634aa4 Revert "Remove tests based on the $262.gc hook"
This reverts commit d6d37f2f43.
2019-09-23 12:26:02 -04:00
Ron Buckton 1056d8fde9 Add tests for regexp-match-indices (#2309)
* Add tests for regexp-match-indices

* Add tests for unicode matches based on presence of /u flag

* Added deepEqual helper, PR feedback
2019-09-18 13:39:12 -03:00
Leo Balter d6d37f2f43 Remove tests based on the $262.gc hook
Fixes #2239
Closes #2329
2019-09-05 19:38:03 +01:00
Leo Balter 56a2dba975 First set of tests for Top Level Await 2019-08-05 23:07:53 -04:00
Leo Balter 29627e892b Add cases for Optional Expressions as DestructuringAssignmentTarget 2019-08-05 10:55:32 -04:00
Richard Gibson 4af2c34eb2 Add tests for rest parameter with "use strict" (expecting syntax error) 2019-07-03 18:54:21 -04:00
Leo Balter 969d4e68b4 Basic tests for weakref and finalizationgroup 2019-06-21 11:50:22 -04:00
Rick Waldron b223ac4e1f INTERPRETING.md: Add $262.gc() and "host-gc-required" feature (#2208) 2019-06-21 11:18:10 -04:00
Alexey Shvayka 8984ea8080 Add "proxy-missing-checks" feature tag (#2195) 2019-06-12 15:00:18 -04:00
Frank Yung-Fong Tang 49eee8bf9d Initial tests for Intl.DateTimeFormat quarter/dayPeriod/fractionalSecondDigits (#2194) 2019-06-12 11:55:53 -04:00
Frank Yung-Fong Tang 4b25f6fae8 Add initial tests for Intl.DateTimeFormat formatRange and formatRangeToParts (#2134) 2019-05-01 15:20:29 -04:00
Leo Balter 7e7b9e103d
Port tests from Promise.all to Promise.allSettled (#2124) 2019-04-17 14:17:54 -04:00
Ms2ger c03e14263e Add tests for the datetime-style proposal. (#2125) 2019-04-10 11:09:40 -04:00
Leo Balter 353cf531d6 Apply review feedback for hashbang 2019-02-14 15:06:08 -05:00
Timothy Gu 72fc9d8c8d Update features.txt status (#2022)
Move proposals that have been incorporated into the standard to the
corresponding section.
2019-01-17 17:08:11 -02:00
Ms2ger 4c0194aaa9 Unified Intl.NumberFormat: Add feature. 2018-11-28 10:25:18 -05:00
Rick Waldron 2792e66c68 features.txt: organize sections (#1967) 2018-11-26 13:21:01 -05:00
André Bargull c3e384c8c5 Add initial tests for import.meta (#1888)
Fixes #1342
2018-10-23 15:23:08 -04:00
Rick Waldron c77078809c Dynamic Imports: initial cases, templates, non-generated tests and fixtures 2018-10-04 16:16:35 -04:00
Richard Gibson d961fcc905 Add feature for well-formed-stringify tests 2018-10-03 11:06:32 -04:00
jbhoosreddy e2bf6f63dc update features.txt 2018-08-29 21:15:52 -04:00
Rick Waldron c72926a107 Features: add class-static-* feature names 2018-08-20 16:38:52 -04:00
Kevin Gibbons 7f694d4718 Object.fromEntries: add basic tests 2018-08-13 10:25:09 -04:00
Jordan Harband 765de9136d
`global`: update property name 2018-07-25 17:11:53 -07:00
Rick Waldron 7676b1b48e
Merge pull request #1625 from Ms2ger/Segmenter-@@toStringTag
Add a test for Intl.Segmenter.prototype[@@toStringTag].
2018-07-06 14:45:29 -04:00
Ms2ger df1e9c626c Add the Intl.Segmenter feature. 2018-07-06 12:23:39 +02:00
Ms2ger 91d22be781 Add the Intl.ListFormat feature. 2018-07-06 12:06:38 +02:00
Valerie Young 2fa8fc40e4 Tests for `export * as ns from 'foo'` syntax (#1498) 2018-06-28 15:46:36 -04:00
Ms2ger b4efa8c938 Add tests for the shape of the Intl.RelativeTimeFormat API. (#1596)
* Add Intl.RelativeTimeFormat feature.

* Add tests for the shape of the Intl.RelativeTimeFormat API.

* fixup! Add tests for the shape of the Intl.RelativeTimeFormat API.
2018-06-26 14:02:29 -04:00
Leo Balter 6c2503a810
Adds String.fromCodePoint to the features list (#1606) 2018-06-21 16:03:08 -04:00
Leo Balter e89e9a8a28
Add global feature tag (#1600) 2018-06-18 18:00:19 -04:00
Joyee Cheung cc53f64325
Add tests for Symbol.prototype.description 2018-06-07 21:39:02 +08:00
Rick Waldron a8f7012587 Array.prototype.flatten => Array.prototype.flat (#1569) 2018-05-22 15:47:50 -04:00
Richard Gibson dbc0c6b1cc Add json-superset feature 2018-05-08 14:19:44 -04:00
Ms2ger eecf4d46ad Submit some Intl.Locale() tests.
Some of these are based on work by André Bargull in
<https://bugzilla.mozilla.org/show_bug.cgi?id=1433303>.
2018-05-03 14:21:10 -04:00
Rick Waldron 0b36f27000 Features: add missing "destructuring-binding" features; remove "default-arg" (#1521) 2018-04-24 14:52:19 -04:00
André Bargull a1faccdd41 Fix various test bugs
- "CannotSuspendMainAgent" feature was changed to "CanBlockIsFalse" flag
- Move annex-b tests into annex-b directory
- Update variable names in nonshared-int-views.js tests
- Move getReport() call in nan-for-timeout.js to avoid iloop
- Update BigInt constructor to match new semantics (tc39/proposal-bigint#138)
2018-04-24 09:52:35 -07:00
Rick Waldron 4f7268566b Features: add missing TypedArray constructors 2018-04-19 15:31:54 -04:00
peterwmwong f1e45d9e5e
Fleshed out tests for Symbol.matchAll, String.p.matchAll, RegExp.p[@@matchAll], and %RegExpStringIteratorPrototype%
Tests were updated and assuming https://github.com/tc39/proposal-string-matchall/pull/33 will be merged.
2018-03-17 22:48:31 -05:00
André Bargull 500e48e6ce Fix various test bugs (#1502)
Fixes #1492
2018-03-22 16:36:57 -04:00
Rick Waldron 12797840ae features: [numeric-separator-literal] 2018-02-08 11:13:54 -05:00
Rick Waldron 2d80b92cb8 features.txt: use new convention 2018-01-25 14:37:48 -05:00
Valerie R Young 55c39cc58b Add feature: string-trimming 2018-01-25 14:10:40 -05:00
Rick Waldron b7afd3d00d Frontmatter: updates to ForIn/OfBodyEvaluation tests 2018-01-11 10:47:10 -05:00
Rick Waldron 7d9cb55345 Features: Object.is 2018-01-11 10:20:50 -05:00
Michael Ficarra 041da54c02 add flatten/flatMap to features.txt and mark appropriate tests 2018-01-05 16:59:34 -05:00
Leo Balter e6532d50b6
Update class-fields tags in the features list 2017-11-28 12:48:02 -05:00
André Bargull 32b1984275 Fix multiple issues in nan-equivalence.js test case 2017-11-01 08:23:42 -07:00
Jeff Walden c05138b44c Modify $262.uncallableAndIsHTMLDDA() to $262.IsHTMLDDA (#1305)
Modify $262.uncallableAndIsHTMLDDA() to an optional $262.IsHTMLDDA (whose use must be guarded by a feature of the same name), and narrowly/correctly prescribe its requirements consistent with `document.all`'s behavior in HTML.
2017-10-19 15:03:21 -04:00
Jeff Walden 76c1a8fa3a Add tests for the case of <iterator>.return, as used in the iteration protocol, being an object that's uncallable and compares equal to `undefined`. 2017-10-17 12:21:43 -07:00
Rick Waldron a7b5a7aa97 Features.txt: Add string-trimming; replace "#" in feature tags (#1247) 2017-10-03 17:02:29 -04:00
Leo Balter 60782de95e Tag tests for U+180E and complete coverage for RegExp matching 2017-09-25 15:27:59 -04:00
Leo Balter 7cbbe51216 Add cross-realm feature 2017-09-22 15:29:10 -04:00
Rick Waldron fa61006313 features.txt: update list to include Atomics, for-of 2017-09-08 12:30:23 -04:00
Leo Balter ac30a01b7a
Add computed-property-names to the features list 2017-08-24 14:11:29 -04:00
Leo Balter 581e22e49c
Add Class Fields to the known features list 2017-08-24 14:11:28 -04:00
Josh Wolfe 9875641a4c Add BigInt into the known features list (#1195) 2017-08-23 14:34:25 -04:00
Lucas Azzola 75db6744eb Add optional-catch-binding tests (#1167) 2017-08-18 17:19:48 -04:00
Rick Waldron 650d084fe3 features: generator => generators 2017-08-16 15:11:05 -04:00
Jordan Harband 3528601c41
Promise.prototype.finally: add tests 2017-07-25 23:06:12 -07:00
jugglinmike 66bd632bae Lint test `features` tag (#1060)
A recent commit introduced a document that enumerated acceptable values
for the test "features" metadata tag. However, this list was incomplete,
and maintaining it placed extra burden on the project owners.

Restructure the document into a machine-readable format. Add entries for
all previously-omitted values. Add in-line documentation with
recommendations for maintenance of the file. Extend the project's
linting tool to validate tests according to the document's contents.
2017-06-12 18:59:14 -03:00