417 Commits

Author SHA1 Message Date
Frank Yung-Fong Tang
79c1818a68 Correct pl-pl*.js test for minimumGroupingDigits
pl has minimumGroupingDigits{"2"} in locale data according to CLDR
therefore there should be no \u00a0 between 1 and 000

Close https://github.com/tc39/test262/issues/2589
2020-04-25 18:48:40 -04:00
Frank Yung-Fong Tang
0942fe16ae correct comments 2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
9b54c22e10 correct comments 2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
aabf688371 correct comment 2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
e72a96572b Change the compareArray to allow new property
Change the compareArray to code which allow new property but still assert the actual output contains the expected and assert the order.
2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
21440c733c Change compareArray to allow new property
Change the compareArray to code which allow new property but still assert the actual output contains the expected and assert the order.
2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
fc55e45698 Change the compareArray to allow new property
Change the compareArray to code which allow new property but still assert the actual output contains the expected and assert the order.
2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
8ad12251ae Change compareArray to allow new property
Change the compareArray to code which allow new property but still assert the actual output contains the expected and assert the order.
2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
4fb0e70db0 add "fractionalSecondDigits" 2020-04-25 18:43:48 -04:00
Frank Yung-Fong Tang
9c6ab189b7 Add fractionalSecondDigits
close https://github.com/tc39/test262/issues/2591
2020-04-25 18:43:48 -04:00
Jeff Walden
31dabb5618 Add a test for Unicode key-type pairs being canonicalized by Intl.Locale regardless whether they're passed in the input tag, or through the options object. 2020-04-23 10:49:48 -04:00
Frank Yung-Fong Tang
064d3c24e3 correct exceptions for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
18f55513f0 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
7bb81a4ee0 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
52ec5850d6 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
6b3b5c100a correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
7aa12918ec correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
fb00de47c0 correct expectation of exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
11cc0c03f9 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
9119877088 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
2022f97a25 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
0fc6784390 correct exceptZero expectation 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
988bf55b25 correct exceptZero expectation 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
e5d4129d37 correct for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
8293c961e9 correct expectation for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
0279d96432 correct cases for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
d4017357d8 correction for exceptZero 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
f07fe8cb1c correct 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
c1a1111972 correct 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
832ecd285f correct 2020-04-23 10:46:27 -04:00
Frank Yung-Fong Tang
940be668ca correct expectation for signDisplay: "exceptZero" 2020-04-23 10:46:27 -04:00
André Bargull
18bb955771 Upstream additional language tag canonicalisation and Intl.Locale tests from SpiderMonkey
Adds more canonicalisation and Intl.Locale tests from:
- https://hg.mozilla.org/mozilla-central/file/tip/js/src/tests/non262/Intl/Locale
- https://hg.mozilla.org/mozilla-central/file/tip/js/src/tests/non262/Intl/
2020-04-09 09:20:55 -04:00
André Bargull
5d8e6c8e85 Restore grandfathered tests removed in #2054
With the move to UTS 35 for language tag processing, the expected
canonicalisation results for "cel-gaulish" should now be consistent across
implementations.
2020-04-09 09:20:55 -04:00
André Bargull
de02cf4dd5 Re-enable variant subtag canonicalisation in tests
UTS 35 canonicalisation requires to (again) canonicalise variant subtags.
2020-04-09 09:20:55 -04:00
André Bargull
ae8694b4b7 Copy "invalid options" test from RelativeTimeFormat to NumberFormat/DateTimeFormat
The invalid 'numberingSystem' options test from RelativeTimeFormat covers a few
more cases, so let's reuse it for NumberFormat and DateTimeFormat.
While there, also add tests using non-ASCII inputs.

Fixes #2540
2020-03-30 13:58:04 -04: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
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
Caio Lima
04b1d2254b Added tests with invalid values for calendar and numberingSystem (#2480) 2020-01-24 14:21:33 -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
Frank Yung-Fong Tang
31f1bb5a75 Remove date related types for Intl.DisplayNames (#2448) 2019-12-23 13:07:36 -05:00
Frank Yung-Fong Tang
65e996ba81 Check the step 29 of InitializeDateTimeFormat (#2427) 2019-12-02 10:43:53 -05:00
Leo Balter
aa9ba4b58f
Add tests for Intl.DisplayNames#resolvedOptions (#2405) 2019-11-13 10:50:18 -05: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