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.
This commit is contained in:
Frank Yung-Fong Tang 2019-02-07 15:46:11 -08:00 committed by Rick Waldron
parent 6e4b434586
commit 8f713575e9
1 changed files with 0 additions and 6 deletions

View File

@ -75,12 +75,6 @@ var testData = [
];
for (const {tag, canonical = tag, maximized = canonical, minimized = canonical} of testData) {
assert.sameValue(
Intl.getCanonicalLocales(tag)[0],
canonical,
'The value of Intl.getCanonicalLocales(tag)[0] equals the value of `canonical`'
);
const loc = new Intl.Locale(tag);
assert.sameValue(
new Intl.Locale(tag).toString(),