ExE Boss
8f904d8cc8
Set function `length` and `name` in `CreateBuiltinFunction`
2021-01-29 09:45:20 -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
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
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
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
873a7241c3
Fixup Intl.* this-value tests (delete dups, add proper esid)
2020-09-14 13:35:13 -04:00
Frank Tang
ab3a86d9b3
Move tests from
...
https://source.chromium.org/chromium/chromium/src/+/master:v8/test/test262/local-tests/
2020-09-14 13:35:13 -04:00
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