Commit Graph

438 Commits

Author SHA1 Message Date
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
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
Frank Yung-Fong Tang 8f6369d1c4 Add more tests for ListFormat (#2387)
* add tests for ListFormat

address https://github.com/tc39/test262/issues/2386

* add test for formatToParts(undefined)

* test GetIterator throw error

* test formatToParts while GetIterator throws error

* test formatToParts while step_iterator throw

* test format while iteratorStep throw

* fix object name

* test format while IteratorValue throws

* test formatToParts while iteratorValue throws

* test formatToParts while iteratorClose call return

* check format with iteratorClose calls return
2019-10-08 14:42:42 -04:00
Frank Yung-Fong Tang 2715f312db Add tests for ListFormat StringListFromIterable ( iterable ) (#2380)
* Add tests for StringListFromIterable

* add case throw TypeError

* add test for formatToParts

* add test for formatToParts
2019-10-08 14:42:26 -04:00
Alexey Shvayka 34cbf0aed2 Add "proto-from-ctor-realm" tests for Intl proposals (#2346)
* Add Intl.Segmenter test

* Add Intl.RelativeTimeFormat test

* Add Intl.Locale test

* Add Intl.ListFormat test
2019-10-08 14:39:52 -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
Ms2ger 70a07985a5 Unified Intl.NumberFormat: Various tests (#2275)
* Unified Intl.NumberFormat: Test compact notation with various locales.

* Unified Intl.NumberFormat: Test compactDisplay constructor option.

* Unified Intl.NumberFormat: Test signDisplay constructor option.

* Unified Intl.NumberFormat: Test signDisplay with various locales.

* Unified Intl.NumberFormat: Test signDisplay with accounting currencySign in various locales.

* Unified Intl.NumberFormat: Test engineering and scientific notations in various locales.

* Unified Intl.NumberFormat: Test unit handling.

* Unified Intl.NumberFormat: Test notation constructor option.

* Unified Intl.NumberFormat: Test engineering and scientific notations with negative exponents.

* Unified Intl.NumberFormat: Test near-zero arguments with signDisplay.

* Unified Intl.NumberFormat: Test units.

* Unified Intl.NumberFormat: Test unit arguments.

* Unified Intl.NumberFormat: Add a generic test for unit arguments.

* Unified Intl.NumberFormat: Test the unitDisplay argument.
2019-08-14 12:47:05 -04:00
André Bargull 99f75984db Fix expected test values (#2261)
These two slipped through the cracks in #2097:

test/intl402/Intl/getCanonicalLocales/non-iana-canon.js
- Variant subtag canonicalisation is currrently not allowed.

test/intl402/Locale/getters.js
- Only the first "loc.caseFirst" test in this file was updated in #2097.
2019-07-30 10:53:44 -04:00
Leo Balter 1cb241cf36
Merge pull request #2097 from anba/canonical-jan2019
Fix various test issues (Was: Unicode BCP 47 Locale Identifier changes)
2019-07-22 08:57:24 -04:00
Frank Yung-Fong Tang 76eca53cb8 add fractionalSecondDigits.js for formatRange (#2242) 2019-07-22 08:54:24 -04:00
André Bargull 50331bd641 Correct expected value for Intl.Locale 'caseFirst'
An empty string is expected with the current proposal text.
2019-07-22 02:24:48 -07:00
André Bargull 8b725e3957 Updates test for Intl.NumberFormat Unified API Proposal changes. 2019-07-22 02:12:27 -07:00
André Bargull 589ef945fa Sort variants added to grandfathered tag
And add an explanation for a previously removed and now re-added assertion.
2019-07-22 02:12:21 -07:00
André Bargull 7b556c6ff2 Intl.getCanonicalLocales changes for UTS 35
intl402/Intl/getCanonicalLocales/canonicalized-tags.js
- Sign languages are no longer canonicalised.
- Variant subtags are sorted alphabetically.

intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
- Canonical form of "cel-gaulish" is "xtg-x-cel-gaulish".

intl402/Intl/getCanonicalLocales/preferred-variant.js
- Variant subtags are no longer canonicalised.
2019-07-22 02:12:18 -07:00
André Bargull e2ad1357c7 Update Intl.Locale tests for UTS 35
constructor-non-iana-canon.js
- Variant subtag canonicalisation is currently no longer present.

constructor-options-region-valid.js
- Digit region codes are now canonicalised.

constructor-tag.js
- Variant subtags are now sorted alphabetically.

likely-subtags-grandfathered.js
- "cmn" is now canonicalised to "zh".
2019-07-22 02:12:17 -07:00
André Bargull 1edeb484b8 Include locales supported through fallback when testing fallbacks
This test started failing when updating to ICU 64, because ICU supports "zh"
and "zh-Hans-CN", but not explicitly also "zh-Hans", which is required for this
test to pass. The same kind of error is reproducible with ICU <64 when "Guru"
is added to the list of script codes in 'testIntl.js', because ICU supports
"pa-Guru-IN", but "pa-IN" isn't explicitly supported, too.

So, change this test to also check 'byFallback' to see if a locale is supported.

Drive-by change:
- Modernise the test to make it more readable how subtags are combined.
- Also add "419" to the list of region codes to cover the digit region syntax.
2019-07-22 02:12:05 -07:00
André Bargull f7e8dba39b Update tests to parse language tags as Unicode BCP 47 Locale Identifiers
harness/testIntl.js
- Add now invalid tags to getInvalidLanguageTags, these tags were previously used in test files changed in this commit.
- Update isCanonicalizedStructurallyValidLanguageTag regular expressions.

test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
- Moved five now invalid tags to getInvalidLanguageTags function in testIntl.js

test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
- All irregular grandfathered tags are invalid now
- Regular grandfathered with extlang subtags are now also invalid
- Regular grandfathered with variant-like subtags are still valid

test/intl402/Intl/getCanonicalLocales/weird-cases.js
- Revert changes from last commit
- "x-u-foo" is now invalid and was moved to getInvalidLanguageTags function

test/intl402/ListFormat/constructor/constructor/locales-valid.js
test/intl402/RelativeTimeFormat/constructor/constructor/locales-valid.js
test/intl402/Segmenter/constructor/constructor/locales-valid.js
- Irregular grandfathered and privateuse only are no longer valid language tags

test/intl402/language-tags-canonicalized.js
- Same changes as in test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js

test/intl402/language-tags-invalid.js
- Invalid tags list in this file was a subset of getInvalidLanguageTags, so replaced with getInvalidLanguageTags to get more coverage

test/intl402/language-tags-valid.js
- Same changes as in test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
2019-07-21 05:44:21 -07:00
André Bargull 94053978bc Update language tag canonicalisation per UTS35
Main changes:
- "cmn" is now canonicalised to "zh"
- "und-x-" is prepended before grandfathered tags without modern replacements
- "und-" is prepended before privateuse-only language tags
2019-07-21 05:44:21 -07:00
Frank Yung-Fong Tang dce0910981 change to camelCase to sync with #54 (#2240)
to sync with https://github.com/tc39/proposal-unified-intl-numberformat/pull/54
@sffc @leobalter
2019-07-16 19:00:29 -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
Frank Yung-Fong Tang 9d0072df3d Fixes {format,formatToParts}/en-us-numeric-auto.js (#2207)
The following lines expect each unit has property "-1" and "1" 
```
  const expected = unit in exceptions
    ? [exceptions[unit]["1"], exceptions[unit]["0"], exceptions[unit]["0"], exceptions[unit]["-1"]]
    : [`in 1 ${unit}`, `in 0 ${unit}s`, `0 ${unit}s ago`, `1 ${unit} ago`];
```
2019-06-21 13:44:42 -04:00
Long Ho 6fd738d396 add exceptions for hour & minute in Intl.RelativeTimeFormat numeric auto (#2191) 2019-06-19 15:34:24 -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
Frank Yung-Fong Tang f7a3f63270 remove (min|max)imumFractionDigits w/ significant (#2189)
Per change in https://tc39.github.io/proposal-unified-intl-numberformat/section11/numberformat_diff_out.html
we should not output minimumFractionDigits and maximumFractionDigits if minimumSignificantDigits or maximumSignificantDigits are set.
2019-06-05 04:08:54 -04:00
Ross Kirsling a919d53019 Fix invalid YAML in formatRange* tests. (#2157) 2019-05-16 13:46:55 -04:00
Daniel Ehrenberg 80af423aca intl tests for proposed additional options in options bag (#1225)
This patch implements tests for the ECMA 402 PR at
https://github.com/tc39/ecma402/pull/175

It is based on the test test/intl402/Collator/10.1.1_19_c.js
2019-05-16 13:46:08 -04:00
Frank Yung-Fong Tang 9b0d09eb11
change the removed unit 'generic' to 'gigabit' 2019-05-15 22:14:13 -07:00
Ms2ger 0e8d1a29be Add tests for Intl.DateTimeFormat formatRange and formatRangeToParts (#2139) 2019-05-08 11:40:33 -04:00
Frank Yung-Fong Tang d47749e84d Use verifyProperty and remove dup check (#2146) 2019-05-02 19:49:40 -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
Ms2ger 94c498a792 Test the interaction of timeStyle and u-hc locale tags. (#2144) 2019-05-01 13:13:50 -04:00
Ms2ger 532206a9bd Add some more BigInt.prototype.toLocaleString tests. (#2136) 2019-05-01 13:05:25 -04:00
Ms2ger 8e5ab69e8c Initial tests for BigInt.prototype.toLocaleString(). (#2126)
Many of these tests are heavily based on the tests for
Number.prototype.toLocaleString().
2019-04-10 11:11:21 -04:00
Ms2ger c03e14263e Add tests for the datetime-style proposal. (#2125) 2019-04-10 11:09:40 -04:00
Frank Yung-Fong Tang 611919174f correct a test case for updated list patterns (#2123)
I somehow missed the last line last time I proposed https://github.com/tc39/test262/pull/2111
2019-04-03 16:02:22 -04:00
Leo Balter 324f2916d3
Merge pull request #2119 from FrankYFTang/patch-2
Update test to allow 'narrow' style for all types
2019-04-02 14:10:24 -04:00
Frank Yung-Fong Tang 183f6d9f95 Update list pattern to sync with CLDR 35 (#2111)
CLDR 35 change "and" to "&" for the list form pattern "short"
see https://unicode.org/cldr/trac/ticket/11520
Also compare
https://www.unicode.org/repos/cldr/tags/release-34/common/main/en.xml
against
https://www.unicode.org/repos/cldr/tags/release-35-beta/common/main/en.xml

Notice the addition of
<listPattern type="standard-short">
<listPatternPart type="start">{0}, {1}</listPatternPart>
<listPatternPart type="middle">{0}, {1}</listPatternPart>
<listPatternPart type="end">{0}, & {1}</listPatternPart>
<listPatternPart type="2">{0} & {1}</listPatternPart>
</listPattern>
2019-04-02 14:09:36 -04:00
Frank Yung-Fong Tang 03c605fe3c
obsoleted test 2019-04-02 10:00:52 -07:00
Frank Yung-Fong Tang b5d5241dbe
Update test to allow 'narrow' style for all types
Based on the changes in https://github.com/tc39/proposal-intl-list-format/pull/43
We now allow  'narrow' style for all types
2019-04-02 09:57:45 -07:00
Frank Yung-Fong Tang 565d7d5b7d Remove unreasonable expectation 2019-02-14 15:23:30 -05:00
Frank Yung-Fong Tang 642929b2a3 correct value that matches languageAlias in
Per  https://tc39.github.io/ecma402/#sec-canonicalizelanguagetag
6.2.3 CanonicalizeLanguageTag ( locale )
The CanonicalizeLanguageTag abstract operation returns the canonical and case-regularized form of the locale argument (which must be a String value that is a structurally valid Unicode BCP 47 Locale Identifier as verified by the IsStructurallyValidLanguageTag abstract operation). A conforming implementation shall take the steps specified in the “BCP 47 Language Tag to Unicode BCP 47 Locale Identifier” algorithm, from Unicode Technical Standard #35 LDML § 3.3.1 BCP 47 Language Tag Conversion.

And
http://unicode.org/reports/tr35/#BCP_47_Language_Tag_Conversion
"
2. If the BCP 47 primary language subtag matches the type attribute of a languageAlias element in Supplemental Data, replace the language subtag with the replacement value.
If there are additional subtags in the replacement value, add them to the result, but only if there is no corresponding subtag already in the tag.
"
and
https://www.unicode.org/repos/cldr/trunk/common/supplemental/supplementalMetadata.xml
...
<languageAlias type="aar" replacement="aa" reason="overlong"/>
 <!--  [Afar]  -->
...
<languageAlias type="ces" replacement="cs" reason="overlong"/>
 <!--  [Czech]  -->
...
<languageAlias type="heb" replacement="he" reason="overlong"/>
 <!--  [Hebrew]  -->
2019-02-14 15:07:54 -05:00
Frank Yung-Fong Tang ea31876c06 correct values matches type of languageAlias 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang ac45b6befe add back missed data
get all the test data from constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang f2bc5fd0a3 split from likely-subtags-grandfathered.js 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang 47efdac804 split
Split from intl402/Locale/constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang b30d3013dc Remove getCanonicalLocales 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang 8f713575e9 Move testing of getCanonicalLocales out of Locale
Remove all the assertion of result of getCanonicalLocales from Locale directory
and put them under Intl/getCanonicalLocales directory.
2019-02-14 15:07:31 -05:00
Ross Kirsling a066af90ea Remove errant tab character. (#2058) 2019-02-04 12:03:46 -07:00
Timothy Gu e39604fa41 Fix missing ) (#2059) 2019-01-31 10:49:27 -07:00
Frank Yung-Fong Tang c390306921 add check for "line" throws RangeError 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 619f7cdad1 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 806dc970c0 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 12a044b1d8 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 39b561c60c fix line number 2019-01-30 10:08:50 -05:00
Frank Tang 0460c52013 Remove "line" tests and ensure error under "line" 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang cc9c773c28 rm deprecated grandfather 'cel-gaulish' 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang b94ef8cbdc rm deprecated grandfather 'cel-gaulish' 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang 49c184eb0f Rm deprecated grandfather 'cel-gaulish' from tests 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang dde5d8e546 Fix invalidLanguageTags array 2019-01-30 10:05:07 -05:00
Frank Yung-Fong Tang 9345023d5f move more cases from valid to invalid (#2047)
This is based on UTS35 in the new spec.
2019-01-28 11:55:57 -05:00
Frank Yung-Fong Tang 9495886d18 Change expectation for x- private lang tag (#2046) 2019-01-28 11:55:20 -05:00
Frank Yung-Fong Tang 6da911b9f2 Fix the rounding issue (#2027) 2019-01-28 11:52:50 -05:00
Frank Yung-Fong Tang e0a07bc650 Correct the expectation for format-fraction-digits-precision (#2025) 2019-01-28 11:42:22 -05:00
Frank Yung-Fong Tang 5eab51827b Add "numberingSystem" to resolvedOptions() (#2011) 2019-01-28 10:59:54 -05:00
Frank Yung-Fong Tang b337eaf7c7 change irregular grandfather tag to it's canonical (#2048) 2019-01-28 10:59:07 -05:00
Frank Yung-Fong Tang 116c95d97c Change test for -kn (#1995)
Add test for case of -kn-true
Verify no -kn-true nor -kn-false in the returned locale.
Change expectation per https://github.com/tc39/ecma402/pull/302
2019-01-24 12:45:49 -05:00
Frank Yung-Fong Tang b7c9c6c78b Remove unsupported irregular grandfathered tags. (#2029) 2019-01-24 12:34:03 -05:00
Frank Yung-Fong Tang f39faeef87 Add test for 2.1 CanonicalizeLocaleList ( locales ) (#2040)
See https://tc39.github.io/proposal-intl-locale/#sec-canonicalizelocalelist
2019-01-24 12:28:25 -05:00
Frank Yung-Fong Tang 00d280d231 Remove test of extlang and 4 letter language (#2030)
This is due to the fact we now only accept Unicode Locale Identifier in
UTS 35.
2019-01-24 12:23:30 -05:00
Frank Yung-Fong Tang 4f1155c566 Change tests according to ecma402/pull/278 (#2031) 2019-01-18 14:15:37 -02:00
Frank Yung-Fong Tang 23cb23b852 Move localeMatcher before type and style (#2010)
Sync with https://github.com/tc39/proposal-intl-list-format/pull/36
2019-01-17 17:02:16 -02:00
Leo Balter e403eea331 Fix false positives 2018-12-21 10:50:23 -05:00
Frank Yung-Fong Tang dab8c8983a remove "TypeError: Cannot convert a Symbol value to a string" (#2009) 2018-12-19 22:36:10 -02:00
Leo Balter 46c557247e Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
Frank Yung-Fong Tang bf6b753dd7 Rename position to index (#1994)
https://github.com/tc39/proposal-intl-segmenter/pull/55
2018-12-15 05:52:31 -05:00
André Bargull b62dae4fff Fix various bugs in test cases (#1988) 2018-12-05 15:48:28 -05:00
Rick Waldron 3b09d0e2b5 Eliminate false positives: Intl.* 2018-11-30 11:47:57 -05:00
Ms2ger d857bd6f72 Unified Intl.NumberFormat: Add some initial tests for SetNumberFormatUnitOptions. 2018-11-28 10:25:18 -05:00
Ms2ger 1185b5287d Intl.Segmenter: Submit remaining V8 tests. 2018-11-26 15:04:19 -05:00
Ms2ger ba6a483c43 Intl.Segmenter: Fix copy/paste errors in tests for valid options. 2018-11-15 10:04:28 -05:00
Rick Waldron c4cca0b769
Merge pull request #1937 from ryzokuken/dtf-constructor-options-toobject
intl: increase coverage for DateTimeFormat
2018-11-08 09:25:28 -05:00
Ujjwal Sharma 0fc80cffc5
intl: increase coverage for DateTimeFormat
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that confirms that ToObject(...) is appropriately called inside the
implementation.
2018-11-08 11:55:52 +05:30
Ujjwal Sharma 46515dcb19
intl: increase coverage for DateTimeFormat
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that checks for the default values.
2018-11-08 11:37:02 +05:30
Frank Tang 72f1cfa2ab In en/ko/fr 'loose' may break more than normal in new CLDR version 2018-11-02 14:42:37 -04:00
Rick Waldron 314442498e Fix Intl.Segmenter branding.js
Based on: 44fc8165d5/implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:45:34 -04:00
Frank Tang d38e98d1f3 Fix formatToParts expectation @ RelativeTimeFormat
Fix wrong expectations of
Intl.RelativeTimeFormat.prototype.formatToParts
Add tests to cover "group", "decimal" and "fraction".
2018-10-31 12:38:29 -04:00
Rick Waldron 1fb8e8d22f Merge branch 'segmenter-v8' of git://github.com/Ms2ger/test262 into Ms2ger-segmenter-v8
* 'segmenter-v8' of git://github.com/Ms2ger/test262:
  Intl.Segmenter: Submit batch of V8 tests for the iterators.

# Conflicts:
#	implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:35:49 -04:00
Leo Balter 38be52c525 fix usage of assertFalse
Fixes #1904
2018-10-26 14:34:24 -04:00
Ms2ger 72ab472057 Intl.Segmenter: Submit batch of V8 tests for the iterators. 2018-10-26 12:00:39 +02:00
Ms2ger e847c6ebb0 Intl.Collator: Add a test for search and sort in German.
Ref: https://github.com/tc39/ecma402/issues/256.
2018-10-25 13:08:08 -04:00
Ms2ger 0d07ed06c0 Intl.Segmenter: Submit batch of V8 tests for segment(). 2018-10-25 10:15:11 -04:00
Ms2ger 0dcec72e34 Intl.ListFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:22:08 -04:00
Ms2ger b8b93ec421 Intl.RelativeTimeFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:21:25 -04:00
Ms2ger e1be2c8f8b Intl.Segmenter: Add some tests for the constructor. 2018-10-24 10:13:31 -04:00
Ms2ger 52dfda893d Intl.Segmenter: Test the order of properties in the result of resolvedOptions(). 2018-10-24 09:54:54 -04:00
Rick Waldron f247a5fe09 Revert "Improve assertion handling when comparison causes failure via coercion"
This reverts commit c49c356744.
2018-10-23 17:21:17 -04:00
Rick Waldron c49c356744 Improve assertion handling when comparison causes failure via coercion 2018-10-23 17:00:47 -04:00
Ms2ger 480f11f612 Intl.Segmenter: API tests for the segment method. 2018-10-23 16:18:05 -04:00
André Bargull 4d6e47bca9 Change RelativeTimeFormat -> ListFormat in ListFormat test 2018-10-17 13:35:58 -04:00
Ms2ger fa16d7df3f Intl: Add tests for table iteration order.
The order was defined in <https://github.com/tc39/ecma402/pull/279>.
2018-10-17 12:59:38 -04:00
André Bargull d3e5b818d9 Revert "remove "invalid" from invalid date of "cu" and "nu""
This reverts commit a1c3929c35.
2018-10-17 07:46:46 -07:00
André Bargull faed4fb089 Fix various test issues 2018-10-17 07:45:33 -07:00
Ms2ger 3113b90d55 Intl.RelativeTimeFormat: Add some basic tests for CanonicalizeLocaleList. 2018-10-15 13:41:46 -04:00
Ms2ger e1d80f75c7 Intl.ListFormat: Add some basic tests for CanonicalizeLocaleList. 2018-10-15 13:41:46 -04:00
Ms2ger a3d91b12e5 Intl.ListFormat: Add a test for unsupported options combinations.
This was changed in https://github.com/tc39/proposal-intl-list-format/pull/27.
2018-10-15 13:40:52 -04:00
Frank Tang e5ae99c6ca Change tests to reflect https://github.com/tc39/proposal-intl-list-format/pull/27 (#1860)
* Changes Intl.ListFormat tests reflecting spec

Reflect https://github.com/tc39/proposal-intl-list-format/pull/27
while style:"narrow" and type is not "unit".

* add cases for throws

* remove commetns which cause lint error
2018-10-15 13:40:25 -04:00
Ujjwal Sharma 9dc33cc5b4 intl: fix mistyped test for array-like objects 2018-10-15 12:54:05 -04:00
Ms2ger e527498bff Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
Ms2ger f6dcb4fc2b Intl.ListFormat: Add some tests for the localeMatcher constructor option. (#1855)
This was added in https://github.com/tc39/proposal-intl-list-format/pull/25.

I don't know how to test that the option has any effect, so this just checks
that it is read and verified.
2018-10-15 11:04:34 -04:00
Ms2ger f61c4beaaa Intl.RelativeTimeFormat: Fix copy/paste error in frontmatter. (#1851) 2018-10-09 11:30:01 -04:00
Adrian Heine né Lang 2234f0fc40 Fix syntax in test (#1841)
This was introduced in 6581e84949.
2018-10-09 11:29:32 -04:00
Frank Tang 0866789361 numeric should be a boolean not a string 2018-10-05 18:43:50 -07:00
Ujjwal Sharma f8e3a8ed11 Add let before variable declaration 2018-10-05 15:32:54 -04:00
Ujjwal Sharma ec35b59e88 intl: increase coverage for the NumberFormat constructor
Increase the coverage for the constructor for Intl.NumberFormat by
ensuring that HasProperty(O, Pk) is properly called.
2018-10-05 15:32:54 -04:00