js/src/tests/Intl/NumberFormat/supportedLocalesOf.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 // |reftest| skip-if(!this.hasOwnProperty("Intl")||xulRuntime.shell)
michael@0 2 // -- test in browser only that ICU has locale data for all Mozilla languages
michael@0 3
michael@0 4 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 7
michael@0 8 // This array contains the locales that ICU supports in
michael@0 9 // number formatting whose languages Mozilla localizes Firefox into.
michael@0 10 // Current as of ICU 50.1.2 and Firefox March 2013.
michael@0 11 var locales = [
michael@0 12 "af",
michael@0 13 "af-NA",
michael@0 14 "af-ZA",
michael@0 15 "ar",
michael@0 16 "ar-001",
michael@0 17 "ar-AE",
michael@0 18 "ar-BH",
michael@0 19 "ar-DJ",
michael@0 20 "ar-DZ",
michael@0 21 "ar-EG",
michael@0 22 "ar-EH",
michael@0 23 "ar-ER",
michael@0 24 "ar-IL",
michael@0 25 "ar-IQ",
michael@0 26 "ar-JO",
michael@0 27 "ar-KM",
michael@0 28 "ar-KW",
michael@0 29 "ar-LB",
michael@0 30 "ar-LY",
michael@0 31 "ar-MA",
michael@0 32 "ar-MR",
michael@0 33 "ar-OM",
michael@0 34 "ar-PS",
michael@0 35 "ar-QA",
michael@0 36 "ar-SA",
michael@0 37 "ar-SD",
michael@0 38 "ar-SO",
michael@0 39 "ar-SY",
michael@0 40 "ar-TD",
michael@0 41 "ar-TN",
michael@0 42 "ar-YE",
michael@0 43 "as",
michael@0 44 "as-IN",
michael@0 45 "be",
michael@0 46 "be-BY",
michael@0 47 "bg",
michael@0 48 "bg-BG",
michael@0 49 "bn",
michael@0 50 "bn-BD",
michael@0 51 "bn-IN",
michael@0 52 "br",
michael@0 53 "br-FR",
michael@0 54 "bs",
michael@0 55 "bs-Cyrl",
michael@0 56 "bs-Cyrl-BA",
michael@0 57 "bs-Latn",
michael@0 58 "bs-Latn-BA",
michael@0 59 "ca",
michael@0 60 "ca-AD",
michael@0 61 "ca-ES",
michael@0 62 "cs",
michael@0 63 "cs-CZ",
michael@0 64 "cy",
michael@0 65 "cy-GB",
michael@0 66 "da",
michael@0 67 "da-DK",
michael@0 68 "de",
michael@0 69 "de-AT",
michael@0 70 "de-BE",
michael@0 71 "de-CH",
michael@0 72 "de-DE",
michael@0 73 "de-LI",
michael@0 74 "de-LU",
michael@0 75 "el",
michael@0 76 "el-CY",
michael@0 77 "el-GR",
michael@0 78 "en",
michael@0 79 "en-150",
michael@0 80 "en-AG",
michael@0 81 "en-AS",
michael@0 82 "en-AU",
michael@0 83 "en-BB",
michael@0 84 "en-BE",
michael@0 85 "en-BM",
michael@0 86 "en-BS",
michael@0 87 "en-BW",
michael@0 88 "en-BZ",
michael@0 89 "en-CA",
michael@0 90 "en-CM",
michael@0 91 "en-DM",
michael@0 92 "en-FJ",
michael@0 93 "en-FM",
michael@0 94 "en-GB",
michael@0 95 "en-GD",
michael@0 96 "en-GG",
michael@0 97 "en-GH",
michael@0 98 "en-GI",
michael@0 99 "en-GM",
michael@0 100 "en-GU",
michael@0 101 "en-GY",
michael@0 102 "en-HK",
michael@0 103 "en-IE",
michael@0 104 "en-IM",
michael@0 105 "en-IN",
michael@0 106 "en-JE",
michael@0 107 "en-JM",
michael@0 108 "en-KE",
michael@0 109 "en-KI",
michael@0 110 "en-KN",
michael@0 111 "en-KY",
michael@0 112 "en-LC",
michael@0 113 "en-LR",
michael@0 114 "en-LS",
michael@0 115 "en-MG",
michael@0 116 "en-MH",
michael@0 117 "en-MP",
michael@0 118 "en-MT",
michael@0 119 "en-MU",
michael@0 120 "en-MW",
michael@0 121 "en-NA",
michael@0 122 "en-NG",
michael@0 123 "en-NZ",
michael@0 124 "en-PG",
michael@0 125 "en-PH",
michael@0 126 "en-PK",
michael@0 127 "en-PR",
michael@0 128 "en-PW",
michael@0 129 "en-SB",
michael@0 130 "en-SC",
michael@0 131 "en-SG",
michael@0 132 "en-SL",
michael@0 133 "en-SS",
michael@0 134 "en-SZ",
michael@0 135 "en-TC",
michael@0 136 "en-TO",
michael@0 137 "en-TT",
michael@0 138 "en-TZ",
michael@0 139 "en-UG",
michael@0 140 "en-UM",
michael@0 141 "en-US",
michael@0 142 "en-US-POSIX",
michael@0 143 "en-VC",
michael@0 144 "en-VG",
michael@0 145 "en-VI",
michael@0 146 "en-VU",
michael@0 147 "en-WS",
michael@0 148 "en-ZA",
michael@0 149 "en-ZM",
michael@0 150 "en-ZW",
michael@0 151 "eo",
michael@0 152 "es",
michael@0 153 "es-419",
michael@0 154 "es-AR",
michael@0 155 "es-BO",
michael@0 156 "es-CL",
michael@0 157 "es-CO",
michael@0 158 "es-CR",
michael@0 159 "es-CU",
michael@0 160 "es-DO",
michael@0 161 "es-EA",
michael@0 162 "es-EC",
michael@0 163 "es-ES",
michael@0 164 "es-GQ",
michael@0 165 "es-GT",
michael@0 166 "es-HN",
michael@0 167 "es-IC",
michael@0 168 "es-MX",
michael@0 169 "es-NI",
michael@0 170 "es-PA",
michael@0 171 "es-PE",
michael@0 172 "es-PH",
michael@0 173 "es-PR",
michael@0 174 "es-PY",
michael@0 175 "es-SV",
michael@0 176 "es-US",
michael@0 177 "es-UY",
michael@0 178 "es-VE",
michael@0 179 "et",
michael@0 180 "et-EE",
michael@0 181 "eu",
michael@0 182 "eu-ES",
michael@0 183 "fa",
michael@0 184 "fa-AF",
michael@0 185 "fa-IR",
michael@0 186 "ff",
michael@0 187 "ff-SN",
michael@0 188 "fi",
michael@0 189 "fi-FI",
michael@0 190 "fr",
michael@0 191 "fr-BE",
michael@0 192 "fr-BF",
michael@0 193 "fr-BI",
michael@0 194 "fr-BJ",
michael@0 195 "fr-BL",
michael@0 196 "fr-CA",
michael@0 197 "fr-CD",
michael@0 198 "fr-CF",
michael@0 199 "fr-CG",
michael@0 200 "fr-CH",
michael@0 201 "fr-CI",
michael@0 202 "fr-CM",
michael@0 203 "fr-DJ",
michael@0 204 "fr-DZ",
michael@0 205 "fr-FR",
michael@0 206 "fr-GA",
michael@0 207 "fr-GF",
michael@0 208 "fr-GN",
michael@0 209 "fr-GP",
michael@0 210 "fr-GQ",
michael@0 211 "fr-HT",
michael@0 212 "fr-KM",
michael@0 213 "fr-LU",
michael@0 214 "fr-MA",
michael@0 215 "fr-MC",
michael@0 216 "fr-MF",
michael@0 217 "fr-MG",
michael@0 218 "fr-ML",
michael@0 219 "fr-MQ",
michael@0 220 "fr-MR",
michael@0 221 "fr-MU",
michael@0 222 "fr-NC",
michael@0 223 "fr-NE",
michael@0 224 "fr-PF",
michael@0 225 "fr-RE",
michael@0 226 "fr-RW",
michael@0 227 "fr-SC",
michael@0 228 "fr-SN",
michael@0 229 "fr-SY",
michael@0 230 "fr-TD",
michael@0 231 "fr-TG",
michael@0 232 "fr-TN",
michael@0 233 "fr-VU",
michael@0 234 "fr-YT",
michael@0 235 "ga",
michael@0 236 "ga-IE",
michael@0 237 "gl",
michael@0 238 "gl-ES",
michael@0 239 "gu",
michael@0 240 "gu-IN",
michael@0 241 "he",
michael@0 242 "he-IL",
michael@0 243 "hi",
michael@0 244 "hi-IN",
michael@0 245 "hr",
michael@0 246 "hr-BA",
michael@0 247 "hr-HR",
michael@0 248 "hu",
michael@0 249 "hu-HU",
michael@0 250 "hy",
michael@0 251 "hy-AM",
michael@0 252 "id",
michael@0 253 "id-ID",
michael@0 254 "is",
michael@0 255 "is-IS",
michael@0 256 "it",
michael@0 257 "it-CH",
michael@0 258 "it-IT",
michael@0 259 "it-SM",
michael@0 260 "ja",
michael@0 261 "ja-JP",
michael@0 262 "kk",
michael@0 263 "kk-Cyrl",
michael@0 264 "kk-Cyrl-KZ",
michael@0 265 "km",
michael@0 266 "km-KH",
michael@0 267 "kn",
michael@0 268 "kn-IN",
michael@0 269 "ko",
michael@0 270 "ko-KP",
michael@0 271 "ko-KR",
michael@0 272 "lt",
michael@0 273 "lt-LT",
michael@0 274 "lv",
michael@0 275 "lv-LV",
michael@0 276 "mk",
michael@0 277 "mk-MK",
michael@0 278 "ml",
michael@0 279 "ml-IN",
michael@0 280 "mr",
michael@0 281 "mr-IN",
michael@0 282 "nb",
michael@0 283 "nb-NO",
michael@0 284 "nl",
michael@0 285 "nl-AW",
michael@0 286 "nl-BE",
michael@0 287 "nl-CW",
michael@0 288 "nl-NL",
michael@0 289 "nl-SR",
michael@0 290 "nl-SX",
michael@0 291 "nn",
michael@0 292 "nn-NO",
michael@0 293 "or",
michael@0 294 "or-IN",
michael@0 295 "pa",
michael@0 296 "pa-Arab",
michael@0 297 "pa-Arab-PK",
michael@0 298 "pa-Guru",
michael@0 299 "pa-Guru-IN",
michael@0 300 "pl",
michael@0 301 "pl-PL",
michael@0 302 "pt",
michael@0 303 "pt-AO",
michael@0 304 "pt-BR",
michael@0 305 "pt-CV",
michael@0 306 "pt-GW",
michael@0 307 "pt-MO",
michael@0 308 "pt-MZ",
michael@0 309 "pt-PT",
michael@0 310 "pt-ST",
michael@0 311 "pt-TL",
michael@0 312 "rm",
michael@0 313 "rm-CH",
michael@0 314 "ro",
michael@0 315 "ro-MD",
michael@0 316 "ro-RO",
michael@0 317 "ru",
michael@0 318 "ru-BY",
michael@0 319 "ru-KG",
michael@0 320 "ru-KZ",
michael@0 321 "ru-MD",
michael@0 322 "ru-RU",
michael@0 323 "ru-UA",
michael@0 324 "si",
michael@0 325 "si-LK",
michael@0 326 "sk",
michael@0 327 "sk-SK",
michael@0 328 "sl",
michael@0 329 "sl-SI",
michael@0 330 "sq",
michael@0 331 "sq-AL",
michael@0 332 "sq-MK",
michael@0 333 "sr",
michael@0 334 "sr-Cyrl",
michael@0 335 "sr-Cyrl-BA",
michael@0 336 "sr-Cyrl-ME",
michael@0 337 "sr-Cyrl-RS",
michael@0 338 "sr-Latn",
michael@0 339 "sr-Latn-BA",
michael@0 340 "sr-Latn-ME",
michael@0 341 "sr-Latn-RS",
michael@0 342 "sv",
michael@0 343 "sv-AX",
michael@0 344 "sv-FI",
michael@0 345 "sv-SE",
michael@0 346 "te",
michael@0 347 "te-IN",
michael@0 348 "th",
michael@0 349 "th-TH",
michael@0 350 "tr",
michael@0 351 "tr-CY",
michael@0 352 "tr-TR",
michael@0 353 "uk",
michael@0 354 "uk-UA",
michael@0 355 "vi",
michael@0 356 "vi-VN",
michael@0 357 "zh",
michael@0 358 "zh-Hans",
michael@0 359 "zh-Hans-CN",
michael@0 360 "zh-Hans-HK",
michael@0 361 "zh-Hans-MO",
michael@0 362 "zh-Hans-SG",
michael@0 363 "zh-Hant",
michael@0 364 "zh-Hant-HK",
michael@0 365 "zh-Hant-MO",
michael@0 366 "zh-Hant-TW",
michael@0 367 ];
michael@0 368
michael@0 369 var count = Intl.NumberFormat.supportedLocalesOf(locales).length;
michael@0 370
michael@0 371 reportCompare(locales.length, count, "Number of supported locales in Intl.NumberFormat");

mercurial