Yusuke Suzuki
8060bba447
Accessing order of fractionalSecondDigits should be earlier than timeZoneName
...
In this PR[1], fractionalSecondDigits is listed earlier than timeZoneName in table 6[2].
So, accessing order of fractionalSecondDigits in [3]'s step-29 should be earlier than timeZoneName.
[1]: https://github.com/tc39/ecma402/pull/347
[2]: https://tc39.es/ecma402/#sec-datetimeformat-abstracts
[3]: https://tc39.es/ecma402/#sec-initializedatetimeformat
2020-09-02 15:30:46 -04: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
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
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
André Bargull
d42aaa4b15
Expect `undefined` when no fractional second digits are present
...
Change the expected value per the current PR.
2020-06-24 12:11:36 -04:00
Frank Tang
8d3dd2d1a0
Sync the test w/ changes in intl-datetime-style 43
...
See
https://github.com/tc39/proposal-intl-datetime-style/pull/43
2020-06-17 12:44:31 -04:00
Alexey Shvayka
ef12a8b11c
Intl: Add coverage for meaningful @@toStringTag values ( #2634 )
...
* Add Intl.Collator tests
* Add Intl.DateTimeFormat tests
* Adjust Intl.NumberFormat tests
* Add Intl.PluralRules tests
* Remove now duplicated tests
* Add "toString-changed-tag.js" tests
2020-06-01 15:40:35 -07: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
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
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
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
Frank Yung-Fong Tang
65e996ba81
Check the step 29 of InitializeDateTimeFormat ( #2427 )
2019-12-02 10:43:53 -05: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
Frank Yung-Fong Tang
146ef7db57
add features: [Intl.DateTimeFormat-formatRange] ( #2403 )
2019-10-10 15:27:20 -04:00
Leo Balter
98883a577e
Use canonical format for the description in the metatags ( #2401 )
...
Ref #2387
2019-10-10 11:30:26 -04:00
Leo Balter
4182972a49
Merge pull request #2396 from leobalter/2381/yaml
...
Yaml consistency
2019-10-09 13:29:16 -04:00
Frank Yung-Fong Tang
79591ae6c8
Add test for #349 and #351 PR ( #2379 )
...
Test DateTimeFormat change pattern based on calendar and output relatedYear and yearName
based on the assumption that "en-u-ca-chinese" will output 'relatedYear' and 'yearName'.
https://github.com/tc39/ecma402/pull/349
https://github.com/tc39/ecma402/pull/351
@rwaldron @leobalter @Ms2ger @littledan
2019-10-08 14:54:02 -04:00
Leo Balter
2b48ec7a00
More yaml and whitespace fixes
...
Ref #2383
2019-10-08 14:50:57 -04:00
Leo Balter
917e6f7f99
Yaml consistency
...
Ref #2381
2019-10-08 14:48:59 -04:00
Frank Yung-Fong Tang
79a01f5122
Add tests for 'numberingSystem' and 'calendar' options ( #2383 )
...
* Add tests for 'numberingSystem' option
* add constructor-numberingSystem-order.js
* correct esid
* initial actual
* add let
* add constructor-calendar-numberingSystem-order.js
2019-10-08 14:48:46 -04:00
Frank Yung-Fong Tang
b073c48b49
Add test to ensure Intl.DateTimeFormat choose pattern by calendar ( #2381 )
...
* Add test for different pattern based on calendar
* Add test for formatRangeToParts
* remove debug print
* fix typo
* fix typo
* address review feedback
* address review feedback
* change the map and use string template
* rewrite maps and use string template
2019-10-08 14:44:41 -04:00
Leo Balter
e2903e2648
Merge pull request #2366 from bocoup/unnecessary-includes
...
Remove unnecessary "includes" directives
2019-09-27 16:46:22 -04:00
Frank Yung-Fong Tang
0213936e95
remove test for abandon ecma402/pull/345 ( #2368 )
...
https://github.com/tc39/ecma402/pull/345
2019-09-26 14:23:24 -04:00
Mike Pennisi
f26c2a11bd
Remove unnecessary "includes" directives
...
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Alexey Shvayka
ef7fd2bc27
Add "proto-from-ctor-realm" tests for Intl constructors ( #2334 )
...
* Rename "Object/proto-from-ctor.js" test
* Add missing "Symbol" features
* Add Intl.Collator test
* Add Intl.DateTimeFormat test
* Add Intl.NumberFormat test
* Add Intl.PluralRules test
2019-09-11 17:22:21 -03:00
André Bargull
59a1a016b7
Assign "name" property to all anonymous functions ( #2299 )
...
Implements the changes from <https://github.com/tc39/ecma262/pull/1490 >.
2019-08-15 10:58:40 -04:00
Frank Yung-Fong Tang
76eca53cb8
add fractionalSecondDigits.js for formatRange ( #2242 )
2019-07-22 08:54:24 -04:00
Leo Balter
cd79eada15
Update test files to follow lint rule
2019-07-15 14:03:25 -04:00
Frank Yung-Fong Tang
f7e6656c13
Remove tests for "quarter" option of Intl.DateTimeFormat ( #2232 )
2019-07-15 13:51:22 -04:00
Frank Yung-Fong Tang
53d14f56bb
Add tests for format/formatToParts of fractionalSecondDigits option ( #2234 )
...
* Add more tests for fractionalSecondDigits
* + test of fractionalSecondDigits formatToParts
2019-07-15 13:50:25 -04:00
Frank Yung-Fong Tang
281c7ff5d0
Correct features to Intl.DateTimeFormat-dayPeriod ( #2222 )
2019-07-03 18:09:45 -04:00
Leo Balter
b41b0577a0
Add tests for DateTimeFormat using dayPeriod
2019-07-02 10:04:43 -04:00
Leo Balter
ab046dc1ea
Cleanups for tests
...
Ref https://github.com/tc39/test262/pull/2194
2019-06-12 14:06:22 -04:00
Frank Yung-Fong Tang
49eee8bf9d
Initial tests for Intl.DateTimeFormat quarter/dayPeriod/fractionalSecondDigits ( #2194 )
2019-06-12 11:55:53 -04:00