michael@0: // |reftest| skip-if(!this.hasOwnProperty("Intl")||xulRuntime.shell) michael@0: // -- test in browser only that ICU has locale data for all Mozilla languages michael@0: michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // This array contains the locales that ICU supports in michael@0: // number formatting whose languages Mozilla localizes Firefox into. michael@0: // Current as of ICU 50.1.2 and Firefox March 2013. michael@0: var locales = [ michael@0: "af", michael@0: "af-NA", michael@0: "af-ZA", michael@0: "ar", michael@0: "ar-001", michael@0: "ar-AE", michael@0: "ar-BH", michael@0: "ar-DJ", michael@0: "ar-DZ", michael@0: "ar-EG", michael@0: "ar-EH", michael@0: "ar-ER", michael@0: "ar-IL", michael@0: "ar-IQ", michael@0: "ar-JO", michael@0: "ar-KM", michael@0: "ar-KW", michael@0: "ar-LB", michael@0: "ar-LY", michael@0: "ar-MA", michael@0: "ar-MR", michael@0: "ar-OM", michael@0: "ar-PS", michael@0: "ar-QA", michael@0: "ar-SA", michael@0: "ar-SD", michael@0: "ar-SO", michael@0: "ar-SY", michael@0: "ar-TD", michael@0: "ar-TN", michael@0: "ar-YE", michael@0: "as", michael@0: "as-IN", michael@0: "be", michael@0: "be-BY", michael@0: "bg", michael@0: "bg-BG", michael@0: "bn", michael@0: "bn-BD", michael@0: "bn-IN", michael@0: "br", michael@0: "br-FR", michael@0: "bs", michael@0: "bs-Cyrl", michael@0: "bs-Cyrl-BA", michael@0: "bs-Latn", michael@0: "bs-Latn-BA", michael@0: "ca", michael@0: "ca-AD", michael@0: "ca-ES", michael@0: "cs", michael@0: "cs-CZ", michael@0: "cy", michael@0: "cy-GB", michael@0: "da", michael@0: "da-DK", michael@0: "de", michael@0: "de-AT", michael@0: "de-BE", michael@0: "de-CH", michael@0: "de-DE", michael@0: "de-LI", michael@0: "de-LU", michael@0: "el", michael@0: "el-CY", michael@0: "el-GR", michael@0: "en", michael@0: "en-150", michael@0: "en-AG", michael@0: "en-AS", michael@0: "en-AU", michael@0: "en-BB", michael@0: "en-BE", michael@0: "en-BM", michael@0: "en-BS", michael@0: "en-BW", michael@0: "en-BZ", michael@0: "en-CA", michael@0: "en-CM", michael@0: "en-DM", michael@0: "en-FJ", michael@0: "en-FM", michael@0: "en-GB", michael@0: "en-GD", michael@0: "en-GG", michael@0: "en-GH", michael@0: "en-GI", michael@0: "en-GM", michael@0: "en-GU", michael@0: "en-GY", michael@0: "en-HK", michael@0: "en-IE", michael@0: "en-IM", michael@0: "en-IN", michael@0: "en-JE", michael@0: "en-JM", michael@0: "en-KE", michael@0: "en-KI", michael@0: "en-KN", michael@0: "en-KY", michael@0: "en-LC", michael@0: "en-LR", michael@0: "en-LS", michael@0: "en-MG", michael@0: "en-MH", michael@0: "en-MP", michael@0: "en-MT", michael@0: "en-MU", michael@0: "en-MW", michael@0: "en-NA", michael@0: "en-NG", michael@0: "en-NZ", michael@0: "en-PG", michael@0: "en-PH", michael@0: "en-PK", michael@0: "en-PR", michael@0: "en-PW", michael@0: "en-SB", michael@0: "en-SC", michael@0: "en-SG", michael@0: "en-SL", michael@0: "en-SS", michael@0: "en-SZ", michael@0: "en-TC", michael@0: "en-TO", michael@0: "en-TT", michael@0: "en-TZ", michael@0: "en-UG", michael@0: "en-UM", michael@0: "en-US", michael@0: "en-US-POSIX", michael@0: "en-VC", michael@0: "en-VG", michael@0: "en-VI", michael@0: "en-VU", michael@0: "en-WS", michael@0: "en-ZA", michael@0: "en-ZM", michael@0: "en-ZW", michael@0: "eo", michael@0: "es", michael@0: "es-419", michael@0: "es-AR", michael@0: "es-BO", michael@0: "es-CL", michael@0: "es-CO", michael@0: "es-CR", michael@0: "es-CU", michael@0: "es-DO", michael@0: "es-EA", michael@0: "es-EC", michael@0: "es-ES", michael@0: "es-GQ", michael@0: "es-GT", michael@0: "es-HN", michael@0: "es-IC", michael@0: "es-MX", michael@0: "es-NI", michael@0: "es-PA", michael@0: "es-PE", michael@0: "es-PH", michael@0: "es-PR", michael@0: "es-PY", michael@0: "es-SV", michael@0: "es-US", michael@0: "es-UY", michael@0: "es-VE", michael@0: "et", michael@0: "et-EE", michael@0: "eu", michael@0: "eu-ES", michael@0: "fa", michael@0: "fa-AF", michael@0: "fa-IR", michael@0: "ff", michael@0: "ff-SN", michael@0: "fi", michael@0: "fi-FI", michael@0: "fr", michael@0: "fr-BE", michael@0: "fr-BF", michael@0: "fr-BI", michael@0: "fr-BJ", michael@0: "fr-BL", michael@0: "fr-CA", michael@0: "fr-CD", michael@0: "fr-CF", michael@0: "fr-CG", michael@0: "fr-CH", michael@0: "fr-CI", michael@0: "fr-CM", michael@0: "fr-DJ", michael@0: "fr-DZ", michael@0: "fr-FR", michael@0: "fr-GA", michael@0: "fr-GF", michael@0: "fr-GN", michael@0: "fr-GP", michael@0: "fr-GQ", michael@0: "fr-HT", michael@0: "fr-KM", michael@0: "fr-LU", michael@0: "fr-MA", michael@0: "fr-MC", michael@0: "fr-MF", michael@0: "fr-MG", michael@0: "fr-ML", michael@0: "fr-MQ", michael@0: "fr-MR", michael@0: "fr-MU", michael@0: "fr-NC", michael@0: "fr-NE", michael@0: "fr-PF", michael@0: "fr-RE", michael@0: "fr-RW", michael@0: "fr-SC", michael@0: "fr-SN", michael@0: "fr-SY", michael@0: "fr-TD", michael@0: "fr-TG", michael@0: "fr-TN", michael@0: "fr-VU", michael@0: "fr-YT", michael@0: "ga", michael@0: "ga-IE", michael@0: "gl", michael@0: "gl-ES", michael@0: "gu", michael@0: "gu-IN", michael@0: "he", michael@0: "he-IL", michael@0: "hi", michael@0: "hi-IN", michael@0: "hr", michael@0: "hr-BA", michael@0: "hr-HR", michael@0: "hu", michael@0: "hu-HU", michael@0: "hy", michael@0: "hy-AM", michael@0: "id", michael@0: "id-ID", michael@0: "is", michael@0: "is-IS", michael@0: "it", michael@0: "it-CH", michael@0: "it-IT", michael@0: "it-SM", michael@0: "ja", michael@0: "ja-JP", michael@0: "kk", michael@0: "kk-Cyrl", michael@0: "kk-Cyrl-KZ", michael@0: "km", michael@0: "km-KH", michael@0: "kn", michael@0: "kn-IN", michael@0: "ko", michael@0: "ko-KP", michael@0: "ko-KR", michael@0: "lt", michael@0: "lt-LT", michael@0: "lv", michael@0: "lv-LV", michael@0: "mk", michael@0: "mk-MK", michael@0: "ml", michael@0: "ml-IN", michael@0: "mr", michael@0: "mr-IN", michael@0: "nb", michael@0: "nb-NO", michael@0: "nl", michael@0: "nl-AW", michael@0: "nl-BE", michael@0: "nl-CW", michael@0: "nl-NL", michael@0: "nl-SR", michael@0: "nl-SX", michael@0: "nn", michael@0: "nn-NO", michael@0: "or", michael@0: "or-IN", michael@0: "pa", michael@0: "pa-Arab", michael@0: "pa-Arab-PK", michael@0: "pa-Guru", michael@0: "pa-Guru-IN", michael@0: "pl", michael@0: "pl-PL", michael@0: "pt", michael@0: "pt-AO", michael@0: "pt-BR", michael@0: "pt-CV", michael@0: "pt-GW", michael@0: "pt-MO", michael@0: "pt-MZ", michael@0: "pt-PT", michael@0: "pt-ST", michael@0: "pt-TL", michael@0: "rm", michael@0: "rm-CH", michael@0: "ro", michael@0: "ro-MD", michael@0: "ro-RO", michael@0: "ru", michael@0: "ru-BY", michael@0: "ru-KG", michael@0: "ru-KZ", michael@0: "ru-MD", michael@0: "ru-RU", michael@0: "ru-UA", michael@0: "si", michael@0: "si-LK", michael@0: "sk", michael@0: "sk-SK", michael@0: "sl", michael@0: "sl-SI", michael@0: "sq", michael@0: "sq-AL", michael@0: "sq-MK", michael@0: "sr", michael@0: "sr-Cyrl", michael@0: "sr-Cyrl-BA", michael@0: "sr-Cyrl-ME", michael@0: "sr-Cyrl-RS", michael@0: "sr-Latn", michael@0: "sr-Latn-BA", michael@0: "sr-Latn-ME", michael@0: "sr-Latn-RS", michael@0: "sv", michael@0: "sv-AX", michael@0: "sv-FI", michael@0: "sv-SE", michael@0: "te", michael@0: "te-IN", michael@0: "th", michael@0: "th-TH", michael@0: "tr", michael@0: "tr-CY", michael@0: "tr-TR", michael@0: "uk", michael@0: "uk-UA", michael@0: "vi", michael@0: "vi-VN", michael@0: "zh", michael@0: "zh-Hans", michael@0: "zh-Hans-CN", michael@0: "zh-Hans-HK", michael@0: "zh-Hans-MO", michael@0: "zh-Hans-SG", michael@0: "zh-Hant", michael@0: "zh-Hant-HK", michael@0: "zh-Hant-MO", michael@0: "zh-Hant-TW", michael@0: ]; michael@0: michael@0: var count = Intl.NumberFormat.supportedLocalesOf(locales).length; michael@0: michael@0: reportCompare(locales.length, count, "Number of supported locales in Intl.NumberFormat");