mirror of https://github.com/tc39/test262.git
9997a26c7d
* Fix test for only {localeMatcher: "lookup"} The expectation that "sr-Thai-RS" would be returned is only true with the 9.2.2 BestAvailableLocale ( availableLocales, locale ) https://tc39.es/ecma402/#sec-bestavailablelocale algorithm used by 9.2.3 LookupMatcher ( availableLocales, requestedLocales ) https://tc39.es/ecma402/#sec-lookupmatcher The default for localeMatcher is "best fit" but not "lookup" for all Intl objects. And for 9.2.4 BestFitMatcher ( availableLocales, requestedLocales ) https://tc39.es/ecma402/#sec-bestfitmatcher It may not match "sr-Thai-RS" for "sr" and return ["de", "zh-CN"] instead. Therefore, we need to change this test to only test on {localeMatcher: "lookup"} * Add option to getLocaleSupportInfo Needed to test different localeMatcher * only test for "lookup" localeMatcher * Get the info based on the localeMatcher * pass in localeMatcher to getLocaleSupportInfo |
||
---|---|---|
.. | ||
Array/prototype/toLocaleString | ||
BigInt/prototype/toLocaleString | ||
Collator | ||
Date/prototype | ||
DateTimeFormat | ||
DisplayNames | ||
Intl | ||
ListFormat | ||
Locale | ||
Number/prototype/toLocaleString | ||
NumberFormat | ||
PluralRules | ||
RelativeTimeFormat | ||
Segmenter | ||
String/prototype | ||
TypedArray/prototype/toLocaleString | ||
constructors-string-and-single-element-array.js | ||
constructors-taint-Object-prototype-2.js | ||
constructors-taint-Object-prototype.js | ||
default-locale-is-canonicalized.js | ||
default-locale-is-supported.js | ||
fallback-locales-are-supported.js | ||
language-tags-canonicalized.js | ||
language-tags-invalid.js | ||
language-tags-valid.js | ||
language-tags-with-underscore.js | ||
supportedLocalesOf-consistent-with-resolvedOptions.js | ||
supportedLocalesOf-default-locale-and-zxx-locale.js | ||
supportedLocalesOf-duplicate-elements-removed.js | ||
supportedLocalesOf-empty-and-undefined.js | ||
supportedLocalesOf-locales-arg-coered-to-object.js | ||
supportedLocalesOf-locales-arg-empty-array.js | ||
supportedLocalesOf-returned-array-elements-are-not-frozen.js | ||
supportedLocalesOf-taint-Array-2.js | ||
supportedLocalesOf-taint-Array.js | ||
supportedLocalesOf-test-option-localeMatcher.js | ||
supportedLocalesOf-throws-if-element-not-string-or-object.js | ||
supportedLocalesOf-unicode-extensions-ignored.js |