Re-enable variant subtag canonicalisation in tests

UTS 35 canonicalisation requires to (again) canonicalise variant subtags.
This commit is contained in:
André Bargull 2020-03-30 04:55:22 -07:00 committed by Rick Waldron
parent a52517464f
commit de02cf4dd5
3 changed files with 8 additions and 19 deletions

View File

@ -61,16 +61,12 @@ var testData = [
canonical: "cs",
},
{
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
tag: "hy-arevela",
canonical: "hy-arevela",
canonical: "hy",
},
{
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
tag: "hy-arevmda",
canonical: "hy-arevmda",
canonical: "hyw",
},
];

View File

@ -36,12 +36,10 @@ info: |
includes: [testIntl.js]
---*/
// Generated from http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
// File-Date: 2017-08-15
// Generated from https://github.com/unicode-org/cldr/blob/master/common/supplemental/supplementalMetadata.xml
// File-Date: 2020-03-30
var canonicalizedTags = {
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
"ja-latn-hepburn-heploc": "ja-Latn-hepburn-heploc",
"ja-latn-hepburn-heploc": "ja-Latn-alalc97-hepburn",
};
// make sure the data above is correct

View File

@ -79,18 +79,13 @@ var testData = [
maximized: "cs-Latn-CZ",
},
{
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
tag: "hy-arevela",
canonical: "hy-arevela",
maximized: "hy-Armn-AM-arevela",
canonical: "hy",
maximized: "hy-Armn-AM",
},
{
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
tag: "hy-arevmda",
canonical: "hy-arevmda",
maximized: "hy-Armn-AM-arevmda",
canonical: "hyw",
},
];