Commit Graph

5081 Commits

Author SHA1 Message Date
akluball e73054f75e
Add tests for ZWJ and ZWNJ in identifiers (#2723) 2020-08-05 12:27:34 -07:00
Gus Caplan 5f99d05c6a native function validator for your consideration 2020-08-04 19:44:31 -04:00
Gus Caplan 156186aee2 New NativeFunction tests 2020-08-04 19:44:31 -04:00
Ross Kirsling ede5b2400f Test TV for tagged templates too. 2020-08-03 21:33:44 -04:00
Ross Kirsling f24b9004b3 Add tests for \9 in template/strict strings. 2020-08-03 21:33:44 -04:00
Rohit Ashiwal a6c819ad0f
fix link to branch `preserved-website-directory` (#2715)
Currently, we direct the readers to `compare` page. Which is odd, since readers
hope to land on the branch's page. Let's fix this by changing the link to point
to the branch's page.
2020-07-30 15:41:24 -07:00
Leo Balter e0ef80b967
Merge pull request #2712 from shvaikalesh/intl402-intl-object-tostringtag
Add Intl[@@toStringTag] coverage
2020-07-30 15:19:38 -07:00
Yusuke Suzuki f6a9847c73
related-year-zh.js may not contain years (#2718)
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 related-year-zh.js tests, we intentionally override the CLDR data with the different format.
This change modifies the test to accept that alternative output.
2020-07-29 14:58:32 -07:00
Frank Yung-Fong Tang 0f5a274aad
Fix Segmenter tests: Check "input" in segment-*-iterable.js (#2714)
* Check "input" in segment-*-iterable.js

Remove dup test in segment-*.js

* Fix segment-tostring.js
2020-07-29 12:00:35 -07:00
Yusuke Suzuki 80b54781b0
Intl.Segmenter iterator result should have isWordLike only if type is "word" (#2717)
Update according to https://github.com/tc39/proposal-intl-segmenter/pull/128.
2020-07-28 10:53:16 -07:00
Alexey Shvayka c46be192bb Remove duplicated Intl.toString() test 2020-07-23 10:13:18 +03:00
Alexey Shvayka f9622ce80b Remove duplicated Intl.[[Prototype]] test 2020-07-23 10:13:13 +03:00
Alexey Shvayka aa4fd3fffa Add Intl[@@toStringTag] coverage 2020-07-23 10:13:12 +03:00
Alexey Shvayka c619375b46
Test [[IsHTMLDDA]] object with `typeof` operator (#2706) 2020-07-21 14:14:56 -07: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
Yusuke Suzuki 538fcd88d8
Intl.DisplayNames.length should be 2 (#2711)
`locales` and `options` are not optional parameters. So the length should be 2.
2020-07-20 16:29:05 -07:00
Ross Kirsling fb05c9a4df
Add tests for \8 in template/strict strings. (#2654) 2020-07-20 13:25:59 -07:00
Jordan Harband 4203041cef
Add tests for `Reflect[Symbol.toStringTag]` (#2710)
Ref https://github.com/tc39/ecma262/pull/2057

Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2020-07-20 13:23:56 -07:00
Leo Balter d3bfa94c16 Fix bad renaming, main should upstream to master 2020-07-15 16:52:23 -04:00
Leo Balter 7e4657243b Refactor tests for static methods creation and fetching
Ref #2504
2020-07-15 16:13:40 -04:00
Leo Balter acc55231dd Update .github/workflows/update-master-after-main.yml 2020-07-15 15:47:15 -04:00
Leo Balter 60658a3b67 Update .github/workflows/update-master-after-main.yml
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2020-07-15 15:47:15 -04:00
Leo Balter 0277ed4260 fixup! Rename usage of master to main 2020-07-15 15:47:15 -04:00
Leo Balter 2e127ec40e Rename usage of master to main
Ref #2699
2020-07-15 15:47:15 -04:00
Alexey Shvayka e193b449d4
Test [[IsHTMLDDA]] object as "prototype" of superclass (#2702) 2020-07-15 10:50:02 -07:00
Rick Waldron 28ec03f454
Remove unnecessary files containing whitelist and blacklist (#2701) 2020-07-14 15:01:49 -07:00
Leo Balter 8575a6eb1d
Merge pull request #2698 from FrankYFTang/fixDisplayNames
Intl.DisplayNames make type required
2020-07-13 16:18:55 -07:00
Frank Tang 5010996d5d Test invalid type 2020-07-13 15:50:07 -07:00
Leo Balter b9e4010b20
Fix language in test file (#2700) 2020-07-13 15:01:38 -07:00
Leo Balter 80c0c0801d Only update master branch after main 2020-07-13 14:12:56 -07:00
Leo Balter 31e88a860a Add GitHub Workflow to mirror master and main branches 2020-07-13 14:09:05 -07:00
Frank Tang 3c89cde3e0 Intl.DisplayNames make type required
Update the tests to the latest version after we make
the type option now required

Spec:
https://tc39.es/proposal-intl-displaynames/

Changes of spec:
https://github.com/tc39/proposal-intl-displaynames/pull/76
https://github.com/tc39/proposal-intl-displaynames/pull/83
2020-07-10 19:19:34 -07:00
Frank Yung-Fong Tang 59f5b49359 remove 0 from the range and use undefined 2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang 1161eee3e4 use undefined instead of 0 2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang 36e4278f20 use undefined instead of 0 so range is only 1-3 2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang 21824359d0 restrict the range from 1 to 3 2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang e620226cd7 limit the range to 1 to 3 only 2020-07-09 21:52:54 -04:00
QuXing9 19653bdfc8
Additional tests for escape and unescape methods (#2695)
Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2020-07-09 10:16:18 -07:00
QuXing9 91a9abff4e
Add three testcases for test262 suite. (#2692)
* Add tests for escape function when parameter is not a string.

Fixes #2687
Fixes #2637

* Add test for indirect eval calls  when script is a for statement.

When for statement doesn't have a body, it should throw a SyntaxError.

Fixes #2661

* Add tests for Function Constructor when body contains usestrict.

Fixes #2688
Fixes #2638
2020-07-09 09:57:55 -07:00
Rick Waldron d3c693bdfe
AggregateError: update args order evaluation (#2647)
Fixes #2646
2020-07-08 12:13:36 -07:00
Leo Balter bc433f1e1c Fix typo in the tests for waitAsync
Fixes #2689
2020-07-08 13:46:07 -04:00
Alexey Shvayka c472aeea4b Use $DONE instead of $ERROR to avoid unhandled rejections 2020-07-07 11:16:04 -07:00
Alexey Shvayka 739c4cd78d Remove duplicate of "subclass-species-constructor-resolve-count.js" 2020-07-07 11:16:04 -07:00
Yusuke Suzuki 281eb10b28
Intl.DateTimeFormat.{formatRange,formatRangeToParts} should throw TypeError instead of RangeError if either of parameter is undefined (#2685)
http://tc39.es/proposal-intl-DateTimeFormat-formatRange/
The spec draft throws TypeError instead of RangeError.

	1.4.5 Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate )
	...
	4. If startDate is undefined or endDate is undefined, throw a TypeError exception.

	1.4.6 Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate )
	...
	4. If startDate is undefined or endDate is undefined, throw a TypeError exception.
2020-07-01 14:45:43 -07:00
Gus Caplan fe3ad55d80
add missing Promise.any features (#2686) 2020-07-01 10:33:56 -07:00
Leo Balter 89f9c13449 Expand tests for Optional Chaining 2020-06-30 17:37:01 -04:00
Rick Waldron 6179359305
Promise.any: coverage updates, R4 (#2683) 2020-06-30 13:56:55 -07:00
Rick Waldron 16b48a1271
Promise.allSettled: coverage updates, R2 (#2684) 2020-06-30 13:56:04 -07:00
André Bargull 836f609b08 Update Atomics.exchange to allow non-shared buffers
Follow-up for: https://github.com/tc39/test262/pull/2633
2020-06-30 16:04:25 -04:00
Rick Waldron 51e73466ee
Atomics.waitAsync: more guards against false positive test passing (#2678) 2020-06-30 07:40:18 -07:00