Commit Graph

270 Commits

Author SHA1 Message Date
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