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 |
||
---|---|---|
.. | ||
basic.js | ||
branding.js | ||
length.js | ||
locales-empty.js | ||
locales-invalid.js | ||
locales-specific.js | ||
name.js | ||
options-localeMatcher-invalid.js | ||
options-null.js | ||
options-toobject.js | ||
options-undefined.js | ||
prop-desc.js | ||
result-type.js |