1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/Intl/Collator/supportedLocalesOf.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,355 @@ 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 +// collation 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 + "bs", 1.56 + "bs-Cyrl", 1.57 + "bs-Cyrl-BA", 1.58 + "bs-Latn", 1.59 + "bs-Latn-BA", 1.60 + "ca", 1.61 + "ca-AD", 1.62 + "ca-ES", 1.63 + "cs", 1.64 + "cs-CZ", 1.65 + "cy", 1.66 + "cy-GB", 1.67 + "da", 1.68 + "da-DK", 1.69 + "de", 1.70 + "de-AT", 1.71 + "de-BE", 1.72 + "de-CH", 1.73 + "de-DE", 1.74 + "de-LI", 1.75 + "de-LU", 1.76 + "el", 1.77 + "el-CY", 1.78 + "el-GR", 1.79 + "en", 1.80 + "en-150", 1.81 + "en-AG", 1.82 + "en-AS", 1.83 + "en-AU", 1.84 + "en-BB", 1.85 + "en-BE", 1.86 + "en-BM", 1.87 + "en-BS", 1.88 + "en-BW", 1.89 + "en-BZ", 1.90 + "en-CA", 1.91 + "en-CM", 1.92 + "en-DM", 1.93 + "en-FJ", 1.94 + "en-FM", 1.95 + "en-GB", 1.96 + "en-GD", 1.97 + "en-GG", 1.98 + "en-GH", 1.99 + "en-GI", 1.100 + "en-GM", 1.101 + "en-GU", 1.102 + "en-HK", 1.103 + "en-IE", 1.104 + "en-IM", 1.105 + "en-IN", 1.106 + "en-JE", 1.107 + "en-JM", 1.108 + "en-KE", 1.109 + "en-KI", 1.110 + "en-KN", 1.111 + "en-KY", 1.112 + "en-LC", 1.113 + "en-LR", 1.114 + "en-LS", 1.115 + "en-MG", 1.116 + "en-MH", 1.117 + "en-MP", 1.118 + "en-MT", 1.119 + "en-MU", 1.120 + "en-MW", 1.121 + "en-NA", 1.122 + "en-NG", 1.123 + "en-NZ", 1.124 + "en-PG", 1.125 + "en-PH", 1.126 + "en-PK", 1.127 + "en-PR", 1.128 + "en-PW", 1.129 + "en-SB", 1.130 + "en-SC", 1.131 + "en-SG", 1.132 + "en-SL", 1.133 + "en-SS", 1.134 + "en-TC", 1.135 + "en-TO", 1.136 + "en-TT", 1.137 + "en-TZ", 1.138 + "en-UG", 1.139 + "en-UM", 1.140 + "en-US", 1.141 + "en-US-POSIX", 1.142 + "en-VC", 1.143 + "en-VG", 1.144 + "en-VI", 1.145 + "en-VU", 1.146 + "en-WS", 1.147 + "en-ZA", 1.148 + "en-ZM", 1.149 + "en-ZW", 1.150 + "eo", 1.151 + "es", 1.152 + "es-419", 1.153 + "es-AR", 1.154 + "es-BO", 1.155 + "es-CL", 1.156 + "es-CO", 1.157 + "es-CR", 1.158 + "es-CU", 1.159 + "es-DO", 1.160 + "es-EA", 1.161 + "es-EC", 1.162 + "es-ES", 1.163 + "es-GQ", 1.164 + "es-GT", 1.165 + "es-HN", 1.166 + "es-IC", 1.167 + "es-MX", 1.168 + "es-NI", 1.169 + "es-PA", 1.170 + "es-PE", 1.171 + "es-PH", 1.172 + "es-PR", 1.173 + "es-PY", 1.174 + "es-SV", 1.175 + "es-US", 1.176 + "es-UY", 1.177 + "es-VE", 1.178 + "et", 1.179 + "et-EE", 1.180 + "fa", 1.181 + "fa-AF", 1.182 + "fa-IR", 1.183 + "fi", 1.184 + "fi-FI", 1.185 + "fr", 1.186 + "fr-BE", 1.187 + "fr-BF", 1.188 + "fr-BI", 1.189 + "fr-BJ", 1.190 + "fr-BL", 1.191 + "fr-CA", 1.192 + "fr-CD", 1.193 + "fr-CF", 1.194 + "fr-CG", 1.195 + "fr-CH", 1.196 + "fr-CI", 1.197 + "fr-CM", 1.198 + "fr-DJ", 1.199 + "fr-DZ", 1.200 + "fr-FR", 1.201 + "fr-GA", 1.202 + "fr-GN", 1.203 + "fr-GP", 1.204 + "fr-GQ", 1.205 + "fr-HT", 1.206 + "fr-KM", 1.207 + "fr-LU", 1.208 + "fr-MA", 1.209 + "fr-MC", 1.210 + "fr-MF", 1.211 + "fr-MG", 1.212 + "fr-ML", 1.213 + "fr-MQ", 1.214 + "fr-MR", 1.215 + "fr-MU", 1.216 + "fr-NC", 1.217 + "fr-NE", 1.218 + "fr-PF", 1.219 + "fr-RE", 1.220 + "fr-RW", 1.221 + "fr-SC", 1.222 + "fr-SN", 1.223 + "fr-SY", 1.224 + "fr-TD", 1.225 + "fr-TG", 1.226 + "fr-TN", 1.227 + "fr-VU", 1.228 + "ga", 1.229 + "ga-IE", 1.230 + "gu", 1.231 + "gu-IN", 1.232 + "he", 1.233 + "he-IL", 1.234 + "hi", 1.235 + "hi-IN", 1.236 + "hr", 1.237 + "hr-BA", 1.238 + "hr-HR", 1.239 + "hu", 1.240 + "hu-HU", 1.241 + "hy", 1.242 + "hy-AM", 1.243 + "id", 1.244 + "id-ID", 1.245 + "is", 1.246 + "is-IS", 1.247 + "it", 1.248 + "it-CH", 1.249 + "it-IT", 1.250 + "it-SM", 1.251 + "ja", 1.252 + "ja-JP", 1.253 + "kk", 1.254 + "kk-KZ", 1.255 + "km", 1.256 + "km-KH", 1.257 + "kn", 1.258 + "kn-IN", 1.259 + "ko", 1.260 + "ko-KP", 1.261 + "ko-KR", 1.262 + "lt", 1.263 + "lt-LT", 1.264 + "lv", 1.265 + "lv-LV", 1.266 + "mk", 1.267 + "mk-MK", 1.268 + "ml", 1.269 + "ml-IN", 1.270 + "mr", 1.271 + "mr-IN", 1.272 + "nb", 1.273 + "nb-NO", 1.274 + "nl", 1.275 + "nl-AW", 1.276 + "nl-BE", 1.277 + "nl-CW", 1.278 + "nl-NL", 1.279 + "nl-SR", 1.280 + "nl-SX", 1.281 + "nn", 1.282 + "nn-NO", 1.283 + "or", 1.284 + "or-IN", 1.285 + "pa", 1.286 + "pa-Arab", 1.287 + "pa-Arab-PK", 1.288 + "pa-Guru", 1.289 + "pa-Guru-IN", 1.290 + "pl", 1.291 + "pl-PL", 1.292 + "pt", 1.293 + "pt-AO", 1.294 + "pt-BR", 1.295 + "pt-CV", 1.296 + "pt-GW", 1.297 + "pt-MO", 1.298 + "pt-MZ", 1.299 + "pt-PT", 1.300 + "pt-ST", 1.301 + "pt-TL", 1.302 + "ro", 1.303 + "ro-MD", 1.304 + "ro-RO", 1.305 + "ru", 1.306 + "ru-BY", 1.307 + "ru-KG", 1.308 + "ru-KZ", 1.309 + "ru-MD", 1.310 + "ru-RU", 1.311 + "ru-UA", 1.312 + "si", 1.313 + "si-LK", 1.314 + "sk", 1.315 + "sk-SK", 1.316 + "sl", 1.317 + "sl-SI", 1.318 + "sq", 1.319 + "sq-AL", 1.320 + "sq-MK", 1.321 + "sr", 1.322 + "sr-Cyrl", 1.323 + "sr-Cyrl-BA", 1.324 + "sr-Cyrl-ME", 1.325 + "sr-Cyrl-RS", 1.326 + "sr-Latn", 1.327 + "sr-Latn-BA", 1.328 + "sr-Latn-ME", 1.329 + "sr-Latn-RS", 1.330 + "sv", 1.331 + "sv-AX", 1.332 + "sv-FI", 1.333 + "sv-SE", 1.334 + "te", 1.335 + "te-IN", 1.336 + "th", 1.337 + "th-TH", 1.338 + "tr", 1.339 + "tr-CY", 1.340 + "tr-TR", 1.341 + "uk", 1.342 + "uk-UA", 1.343 + "vi", 1.344 + "vi-VN", 1.345 + "zh", 1.346 + "zh-Hans", 1.347 + "zh-Hans-CN", 1.348 + "zh-Hans-SG", 1.349 + "zh-Hant", 1.350 + "zh-Hant-HK", 1.351 + "zh-Hant-MO", 1.352 + "zh-Hant-TW", 1.353 +]; 1.354 + 1.355 + 1.356 +var count = Intl.Collator.supportedLocalesOf(locales).length; 1.357 + 1.358 +reportCompare(locales.length, count, "Number of supported locales in Intl.Collator");