mirror of https://github.com/tc39/test262.git
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:
parent
6e4b434586
commit
8f713575e9
|
@ -75,12 +75,6 @@ var testData = [
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const {tag, canonical = tag, maximized = canonical, minimized = canonical} of 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);
|
const loc = new Intl.Locale(tag);
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
new Intl.Locale(tag).toString(),
|
new Intl.Locale(tag).toString(),
|
||||||
|
|
Loading…
Reference in New Issue