test262/test/intl402/Locale
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
..
prototype Eliminate false positives: Intl.* 2018-11-30 11:47:57 -05:00
canonicalize-locale-list-take-locale.js Add test for 2.1 CanonicalizeLocaleList ( locales ) (#2040) 2019-01-24 12:28:25 -05:00
constructor-getter-order.js Add some more Locale tests. 2018-05-15 17:27:57 +02:00
constructor-locale-object.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-newtarget-undefined.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
constructor-non-iana-canon.js correct value that matches languageAlias in 2019-02-14 15:07:54 -05:00
constructor-options-calendar-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-calendar-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-casefirst-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-casefirst-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-collation-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-collation-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-hourcycle-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-hourcycle-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-language-grandfathered.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-language-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-language-valid-undefined.js Remove test of extlang and 4 letter language (#2030) 2019-01-24 12:23:30 -05:00
constructor-options-language-valid.js move more cases from valid to invalid (#2047) 2019-01-28 11:55:57 -05:00
constructor-options-numberingsystem-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-numberingsystem-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-numeric-undefined.js Fix various test issues 2018-10-17 07:45:33 -07:00
constructor-options-numeric-valid.js Fix various test issues 2018-10-17 07:45:33 -07:00
constructor-options-region-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-region-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-script-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-script-valid-undefined.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-script-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-options-throwing-getters.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-parse-twice.js Remove unsupported irregular grandfathered tags. (#2029) 2019-01-24 12:34:03 -05:00
constructor-tag-tostring.js Fix various test issues 2018-10-17 07:45:33 -07:00
constructor-tag.js Remove errant tab character. (#2058) 2019-02-04 12:03:46 -07:00
constructor-unicode-ext-invalid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
constructor-unicode-ext-valid.js Intl.Locale: constructor-options-*.js fixups (#1798) 2018-10-03 10:24:38 -04:00
extensions-grandfathered.js Rm deprecated grandfather 'cel-gaulish' from tests 2019-01-30 10:08:13 -05:00
extensions-private.js Change expectation for x- private lang tag (#2046) 2019-01-28 11:55:20 -05:00
function-prototype.js Intl.Locale: follow up tasks, set 1. Ref gh-1538 (#1540) 2018-05-04 14:49:37 -03:00
getters-grandfathered.js rm deprecated grandfather 'cel-gaulish' 2019-01-30 10:08:13 -05:00
getters-missing.js Add some more Locale tests. 2018-05-15 17:27:57 +02:00
getters.js Fix various test issues 2018-10-17 07:45:33 -07:00
instance-extensibility.js Intl.Locale: follow up tasks, set 1. Ref gh-1538 (#1540) 2018-05-04 14:49:37 -03:00
instance.js Intl.Locale: follow up tasks, set 1. Ref gh-1538 (#1540) 2018-05-04 14:49:37 -03:00
invalid-tag-throws-boolean.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
invalid-tag-throws-null.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
invalid-tag-throws-number.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
invalid-tag-throws-symbol.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
invalid-tag-throws-undefined.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
invalid-tag-throws.js Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
length.js Intl.Locale: follow up tasks, set 1. Ref gh-1538 (#1540) 2018-05-04 14:49:37 -03:00
likely-subtags-grandfathered.js Remove getCanonicalLocales 2019-02-14 15:07:31 -05:00
likely-subtags.js Change expectation for x- private lang tag (#2046) 2019-01-28 11:55:20 -05:00
name.js Intl.Locale: follow up tasks, set 1. Ref gh-1538 (#1540) 2018-05-04 14:49:37 -03:00
prop-desc.js Intl.Locale: minor fixups (#1554) 2018-05-11 16:37:52 -03:00
subclassing.js Intl: Add tests for subclassing Locale, ListFormat and RelativeTimeFormat. 2018-09-07 15:53:10 +02:00