test262/test/intl402/Segmenter/constructor/supportedLocalesOf
Frank Yung-Fong Tang 9997a26c7d
Fix tests on {localeMatcher: "lookup"} (#3008)
* 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
2021-06-24 13:37:33 -04:00
..
basic.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
branding.js Eliminate false positives: Intl.* 2018-11-30 11:47:57 -05:00
length.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
locales-empty.js Intl.Segmenter: Submit remaining V8 tests. 2018-11-26 15:04:19 -05:00
locales-invalid.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
locales-specific.js Fix tests on {localeMatcher: "lookup"} (#3008) 2021-06-24 13:37:33 -04:00
name.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
options-localeMatcher-invalid.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
options-null.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
options-toobject.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
options-undefined.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
prop-desc.js Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
result-type.js Change tests according to ecma402/pull/278 (#2031) 2019-01-18 14:15:37 -02:00