Debian Codegraph @

js/src/tests/non262/Intl/unicode-bcp47-locale-ids-region-and-subdivision.js

raw
1 // |reftest| skip-if(!this.hasOwnProperty("Intl"))
2
3 // <subdivisionAlias type="frg" replacement="frges" reason="deprecated"/>
4 assertEq(Intl.getCanonicalLocales("fr-u-rg-frg")[0], "fr-u-rg-frges");
5 assertEq(Intl.getCanonicalLocales("fr-u-sd-frg")[0], "fr-u-sd-frges");
6
7 // <subdivisionAlias type="frgf" replacement="GF" reason="overlong"/>
8 assertEq(Intl.getCanonicalLocales("fr-u-rg-frgf")[0], "fr-u-rg-gfzzzz");
9 assertEq(Intl.getCanonicalLocales("fr-u-sd-frgf")[0], "fr-u-sd-gfzzzz");
10
11 if (typeof reportCompare === "function")
12 reportCompare(true, true);