js/src/tests/Intl/DateTimeFormat/supportedLocalesOf.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/Intl/DateTimeFormat/supportedLocalesOf.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,371 @@
     1.4 +// |reftest| skip-if(!this.hasOwnProperty("Intl")||xulRuntime.shell)
     1.5 +// -- test in browser only that ICU has locale data for all Mozilla languages
     1.6 +
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +// This array contains the locales that ICU supports in
    1.12 +// date and time formatting whose languages Mozilla localizes Firefox into.
    1.13 +// Current as of ICU 50.1.2 and Firefox March 2013.
    1.14 +var locales = [
    1.15 +    "af",
    1.16 +    "af-NA",
    1.17 +    "af-ZA",
    1.18 +    "ar",
    1.19 +    "ar-001",
    1.20 +    "ar-AE",
    1.21 +    "ar-BH",
    1.22 +    "ar-DJ",
    1.23 +    "ar-DZ",
    1.24 +    "ar-EG",
    1.25 +    "ar-EH",
    1.26 +    "ar-ER",
    1.27 +    "ar-IL",
    1.28 +    "ar-IQ",
    1.29 +    "ar-JO",
    1.30 +    "ar-KM",
    1.31 +    "ar-KW",
    1.32 +    "ar-LB",
    1.33 +    "ar-LY",
    1.34 +    "ar-MA",
    1.35 +    "ar-MR",
    1.36 +    "ar-OM",
    1.37 +    "ar-PS",
    1.38 +    "ar-QA",
    1.39 +    "ar-SA",
    1.40 +    "ar-SD",
    1.41 +    "ar-SO",
    1.42 +    "ar-SY",
    1.43 +    "ar-TD",
    1.44 +    "ar-TN",
    1.45 +    "ar-YE",
    1.46 +    "as",
    1.47 +    "as-IN",
    1.48 +    "be",
    1.49 +    "be-BY",
    1.50 +    "bg",
    1.51 +    "bg-BG",
    1.52 +    "bn",
    1.53 +    "bn-BD",
    1.54 +    "bn-IN",
    1.55 +    "br",
    1.56 +    "br-FR",
    1.57 +    "bs",
    1.58 +    "bs-Cyrl",
    1.59 +    "bs-Cyrl-BA",
    1.60 +    "bs-Latn",
    1.61 +    "bs-Latn-BA",
    1.62 +    "ca",
    1.63 +    "ca-AD",
    1.64 +    "ca-ES",
    1.65 +    "cs",
    1.66 +    "cs-CZ",
    1.67 +    "cy",
    1.68 +    "cy-GB",
    1.69 +    "da",
    1.70 +    "da-DK",
    1.71 +    "de",
    1.72 +    "de-AT",
    1.73 +    "de-BE",
    1.74 +    "de-CH",
    1.75 +    "de-DE",
    1.76 +    "de-LI",
    1.77 +    "de-LU",
    1.78 +    "el",
    1.79 +    "el-CY",
    1.80 +    "el-GR",
    1.81 +    "en",
    1.82 +    "en-150",
    1.83 +    "en-AG",
    1.84 +    "en-AS",
    1.85 +    "en-AU",
    1.86 +    "en-BB",
    1.87 +    "en-BE",
    1.88 +    "en-BM",
    1.89 +    "en-BS",
    1.90 +    "en-BW",
    1.91 +    "en-BZ",
    1.92 +    "en-CA",
    1.93 +    "en-CM",
    1.94 +    "en-DM",
    1.95 +    "en-FJ",
    1.96 +    "en-FM",
    1.97 +    "en-GB",
    1.98 +    "en-GD",
    1.99 +    "en-GG",
   1.100 +    "en-GH",
   1.101 +    "en-GI",
   1.102 +    "en-GM",
   1.103 +    "en-GU",
   1.104 +    "en-GY",
   1.105 +    "en-HK",
   1.106 +    "en-IE",
   1.107 +    "en-IM",
   1.108 +    "en-IN",
   1.109 +    "en-JE",
   1.110 +    "en-JM",
   1.111 +    "en-KE",
   1.112 +    "en-KI",
   1.113 +    "en-KN",
   1.114 +    "en-KY",
   1.115 +    "en-LC",
   1.116 +    "en-LR",
   1.117 +    "en-LS",
   1.118 +    "en-MG",
   1.119 +    "en-MH",
   1.120 +    "en-MP",
   1.121 +    "en-MT",
   1.122 +    "en-MU",
   1.123 +    "en-MW",
   1.124 +    "en-NA",
   1.125 +    "en-NG",
   1.126 +    "en-NZ",
   1.127 +    "en-PG",
   1.128 +    "en-PH",
   1.129 +    "en-PK",
   1.130 +    "en-PR",
   1.131 +    "en-PW",
   1.132 +    "en-SB",
   1.133 +    "en-SC",
   1.134 +    "en-SG",
   1.135 +    "en-SL",
   1.136 +    "en-SS",
   1.137 +    "en-SZ",
   1.138 +    "en-TC",
   1.139 +    "en-TO",
   1.140 +    "en-TT",
   1.141 +    "en-TZ",
   1.142 +    "en-UG",
   1.143 +    "en-UM",
   1.144 +    "en-US",
   1.145 +    "en-US-POSIX",
   1.146 +    "en-VC",
   1.147 +    "en-VG",
   1.148 +    "en-VI",
   1.149 +    "en-VU",
   1.150 +    "en-WS",
   1.151 +    "en-ZA",
   1.152 +    "en-ZM",
   1.153 +    "en-ZW",
   1.154 +    "eo",
   1.155 +    "es",
   1.156 +    "es-419",
   1.157 +    "es-AR",
   1.158 +    "es-BO",
   1.159 +    "es-CL",
   1.160 +    "es-CO",
   1.161 +    "es-CR",
   1.162 +    "es-CU",
   1.163 +    "es-DO",
   1.164 +    "es-EA",
   1.165 +    "es-EC",
   1.166 +    "es-ES",
   1.167 +    "es-GQ",
   1.168 +    "es-GT",
   1.169 +    "es-HN",
   1.170 +    "es-IC",
   1.171 +    "es-MX",
   1.172 +    "es-NI",
   1.173 +    "es-PA",
   1.174 +    "es-PE",
   1.175 +    "es-PH",
   1.176 +    "es-PR",
   1.177 +    "es-PY",
   1.178 +    "es-SV",
   1.179 +    "es-US",
   1.180 +    "es-UY",
   1.181 +    "es-VE",
   1.182 +    "et",
   1.183 +    "et-EE",
   1.184 +    "eu",
   1.185 +    "eu-ES",
   1.186 +    "fa",
   1.187 +    "fa-AF",
   1.188 +    "fa-IR",
   1.189 +    "ff",
   1.190 +    "ff-SN",
   1.191 +    "fi",
   1.192 +    "fi-FI",
   1.193 +    "fr",
   1.194 +    "fr-BE",
   1.195 +    "fr-BF",
   1.196 +    "fr-BI",
   1.197 +    "fr-BJ",
   1.198 +    "fr-BL",
   1.199 +    "fr-CA",
   1.200 +    "fr-CD",
   1.201 +    "fr-CF",
   1.202 +    "fr-CG",
   1.203 +    "fr-CH",
   1.204 +    "fr-CI",
   1.205 +    "fr-CM",
   1.206 +    "fr-DJ",
   1.207 +    "fr-DZ",
   1.208 +    "fr-FR",
   1.209 +    "fr-GA",
   1.210 +    "fr-GF",
   1.211 +    "fr-GN",
   1.212 +    "fr-GP",
   1.213 +    "fr-GQ",
   1.214 +    "fr-HT",
   1.215 +    "fr-KM",
   1.216 +    "fr-LU",
   1.217 +    "fr-MA",
   1.218 +    "fr-MC",
   1.219 +    "fr-MF",
   1.220 +    "fr-MG",
   1.221 +    "fr-ML",
   1.222 +    "fr-MQ",
   1.223 +    "fr-MR",
   1.224 +    "fr-MU",
   1.225 +    "fr-NC",
   1.226 +    "fr-NE",
   1.227 +    "fr-PF",
   1.228 +    "fr-RE",
   1.229 +    "fr-RW",
   1.230 +    "fr-SC",
   1.231 +    "fr-SN",
   1.232 +    "fr-SY",
   1.233 +    "fr-TD",
   1.234 +    "fr-TG",
   1.235 +    "fr-TN",
   1.236 +    "fr-VU",
   1.237 +    "fr-YT",
   1.238 +    "ga",
   1.239 +    "ga-IE",
   1.240 +    "gl",
   1.241 +    "gl-ES",
   1.242 +    "gu",
   1.243 +    "gu-IN",
   1.244 +    "he",
   1.245 +    "he-IL",
   1.246 +    "hi",
   1.247 +    "hi-IN",
   1.248 +    "hr",
   1.249 +    "hr-BA",
   1.250 +    "hr-HR",
   1.251 +    "hu",
   1.252 +    "hu-HU",
   1.253 +    "hy",
   1.254 +    "hy-AM",
   1.255 +    "id",
   1.256 +    "id-ID",
   1.257 +    "is",
   1.258 +    "is-IS",
   1.259 +    "it",
   1.260 +    "it-CH",
   1.261 +    "it-IT",
   1.262 +    "it-SM",
   1.263 +    "ja",
   1.264 +    "ja-JP",
   1.265 +    "kk",
   1.266 +    "kk-Cyrl",
   1.267 +    "kk-Cyrl-KZ",
   1.268 +    "km",
   1.269 +    "km-KH",
   1.270 +    "kn",
   1.271 +    "kn-IN",
   1.272 +    "ko",
   1.273 +    "ko-KP",
   1.274 +    "ko-KR",
   1.275 +    "lt",
   1.276 +    "lt-LT",
   1.277 +    "lv",
   1.278 +    "lv-LV",
   1.279 +    "mk",
   1.280 +    "mk-MK",
   1.281 +    "ml",
   1.282 +    "ml-IN",
   1.283 +    "mr",
   1.284 +    "mr-IN",
   1.285 +    "nb",
   1.286 +    "nb-NO",
   1.287 +    "nl",
   1.288 +    "nl-AW",
   1.289 +    "nl-BE",
   1.290 +    "nl-CW",
   1.291 +    "nl-NL",
   1.292 +    "nl-SR",
   1.293 +    "nl-SX",
   1.294 +    "nn",
   1.295 +    "nn-NO",
   1.296 +    "or",
   1.297 +    "or-IN",
   1.298 +    "pa",
   1.299 +    "pa-Arab",
   1.300 +    "pa-Arab-PK",
   1.301 +    "pa-Guru",
   1.302 +    "pa-Guru-IN",
   1.303 +    "pl",
   1.304 +    "pl-PL",
   1.305 +    "pt",
   1.306 +    "pt-AO",
   1.307 +    "pt-BR",
   1.308 +    "pt-CV",
   1.309 +    "pt-GW",
   1.310 +    "pt-MO",
   1.311 +    "pt-MZ",
   1.312 +    "pt-PT",
   1.313 +    "pt-ST",
   1.314 +    "pt-TL",
   1.315 +    "rm",
   1.316 +    "rm-CH",
   1.317 +    "ro",
   1.318 +    "ro-MD",
   1.319 +    "ro-RO",
   1.320 +    "ru",
   1.321 +    "ru-BY",
   1.322 +    "ru-KG",
   1.323 +    "ru-KZ",
   1.324 +    "ru-MD",
   1.325 +    "ru-RU",
   1.326 +    "ru-UA",
   1.327 +    "si",
   1.328 +    "si-LK",
   1.329 +    "sk",
   1.330 +    "sk-SK",
   1.331 +    "sl",
   1.332 +    "sl-SI",
   1.333 +    "sq",
   1.334 +    "sq-AL",
   1.335 +    "sq-MK",
   1.336 +    "sr",
   1.337 +    "sr-Cyrl",
   1.338 +    "sr-Cyrl-BA",
   1.339 +    "sr-Cyrl-ME",
   1.340 +    "sr-Cyrl-RS",
   1.341 +    "sr-Latn",
   1.342 +    "sr-Latn-BA",
   1.343 +    "sr-Latn-ME",
   1.344 +    "sr-Latn-RS",
   1.345 +    "sv",
   1.346 +    "sv-AX",
   1.347 +    "sv-FI",
   1.348 +    "sv-SE",
   1.349 +    "te",
   1.350 +    "te-IN",
   1.351 +    "th",
   1.352 +    "th-TH",
   1.353 +    "tr",
   1.354 +    "tr-CY",
   1.355 +    "tr-TR",
   1.356 +    "uk",
   1.357 +    "uk-UA",
   1.358 +    "vi",
   1.359 +    "vi-VN",
   1.360 +    "zh",
   1.361 +    "zh-Hans",
   1.362 +    "zh-Hans-CN",
   1.363 +    "zh-Hans-HK",
   1.364 +    "zh-Hans-MO",
   1.365 +    "zh-Hans-SG",
   1.366 +    "zh-Hant",
   1.367 +    "zh-Hant-HK",
   1.368 +    "zh-Hant-MO",
   1.369 +    "zh-Hant-TW",
   1.370 +];
   1.371 +
   1.372 +var count = Intl.DateTimeFormat.supportedLocalesOf(locales).length;
   1.373 +
   1.374 +reportCompare(locales.length, count, "Number of supported locales in Intl.DateTimeFormat");

mercurial