From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- .../unicode-bcp47-locale-ids-variants-legacy-mappings.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-legacy-mappings.js (limited to 'js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-legacy-mappings.js') diff --git a/js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-legacy-mappings.js b/js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-legacy-mappings.js new file mode 100644 index 0000000000..49e31c6786 --- /dev/null +++ b/js/src/tests/non262/Intl/unicode-bcp47-locale-ids-variants-legacy-mappings.js @@ -0,0 +1,15 @@ +// |reftest| skip-if(!this.hasOwnProperty("Intl")) + +// ECMA-402 includes mapping of legacy variants, as long as they're also present +// in in CLDR's supplementalMetadata.xml +// + +assertEq(Intl.getCanonicalLocales("sv-AALAND")[0], "sv-AX"); +assertEq(Intl.getCanonicalLocales("no-BOKMAL")[0], "nb-bokmal"); +assertEq(Intl.getCanonicalLocales("no-NYNORSK")[0], "nb-nynorsk"); +assertEq(Intl.getCanonicalLocales("en-POSIX")[0], "en-posix"); +assertEq(Intl.getCanonicalLocales("el-POLYTONI")[0], "el-polyton"); +assertEq(Intl.getCanonicalLocales("aa-SAAHO")[0], "aa-saaho"); + +if (typeof reportCompare === "function") + reportCompare(true, true); -- cgit v1.2.3