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.
This commit is contained in:
André Bargull 2019-07-30 07:53:44 -07:00 committed by Leo Balter
parent 2ee3864136
commit 99f75984db
2 changed files with 7 additions and 3 deletions

View File

@ -61,12 +61,16 @@ 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", canonical: "hy-arevela",
}, },
{ {
// ECMA-402 currently requires that variant subtags are not canonicalized.
// https://github.com/tc39/ecma402/issues/330
tag: "hy-arevmda", tag: "hy-arevmda",
canonical: "hyw", canonical: "hy-arevmda",
}, },
]; ];

View File

@ -114,7 +114,7 @@ assert.sameValue(loc.calendar, "gregory");
assert.sameValue(loc.collation, "standard"); assert.sameValue(loc.collation, "standard");
assert.sameValue(loc.hourCycle, "h11"); assert.sameValue(loc.hourCycle, "h11");
if ("caseFirst" in loc) { if ("caseFirst" in loc) {
assert.sameValue(loc.caseFirst, "true"); assert.sameValue(loc.caseFirst, "");
} }
if ("numeric" in loc) { if ("numeric" in loc) {
assert.sameValue(loc.numeric, false); assert.sameValue(loc.numeric, false);