mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Re-enable variant subtag canonicalisation in tests
UTS 35 canonicalisation requires to (again) canonicalise variant subtags.
This commit is contained in:
parent
a52517464f
commit
de02cf4dd5
@ -61,16 +61,12 @@ var testData = [
|
|||||||
canonical: "cs",
|
canonical: "cs",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// ECMA-402 currently requires that variant subtags are not canonicalized.
|
|
||||||
// https://github.com/tc39/ecma402/issues/330
|
|
||||||
tag: "hy-arevela",
|
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",
|
tag: "hy-arevmda",
|
||||||
canonical: "hy-arevmda",
|
canonical: "hyw",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,12 +36,10 @@ info: |
|
|||||||
includes: [testIntl.js]
|
includes: [testIntl.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// Generated from http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
|
// Generated from https://github.com/unicode-org/cldr/blob/master/common/supplemental/supplementalMetadata.xml
|
||||||
// File-Date: 2017-08-15
|
// File-Date: 2020-03-30
|
||||||
var canonicalizedTags = {
|
var canonicalizedTags = {
|
||||||
// ECMA-402 currently requires that variant subtags are not canonicalized.
|
"ja-latn-hepburn-heploc": "ja-Latn-alalc97-hepburn",
|
||||||
// https://github.com/tc39/ecma402/issues/330
|
|
||||||
"ja-latn-hepburn-heploc": "ja-Latn-hepburn-heploc",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// make sure the data above is correct
|
// make sure the data above is correct
|
||||||
|
@ -79,18 +79,13 @@ var testData = [
|
|||||||
maximized: "cs-Latn-CZ",
|
maximized: "cs-Latn-CZ",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// ECMA-402 currently requires that variant subtags are not canonicalized.
|
|
||||||
// https://github.com/tc39/ecma402/issues/330
|
|
||||||
tag: "hy-arevela",
|
tag: "hy-arevela",
|
||||||
canonical: "hy-arevela",
|
canonical: "hy",
|
||||||
maximized: "hy-Armn-AM-arevela",
|
maximized: "hy-Armn-AM",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// ECMA-402 currently requires that variant subtags are not canonicalized.
|
|
||||||
// https://github.com/tc39/ecma402/issues/330
|
|
||||||
tag: "hy-arevmda",
|
tag: "hy-arevmda",
|
||||||
canonical: "hy-arevmda",
|
canonical: "hyw",
|
||||||
maximized: "hy-Armn-AM-arevmda",
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user