test262/test/intl402/Segmenter
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
..
constructor Fix tests on {localeMatcher: "lookup"} (#3008) 2021-06-24 13:37:33 -04:00
instance Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
prototype Improve Intl.Segmenter coverage 2021-05-11 17:40:05 -04:00
ctor-custom-get-prototype-poison-throws.js Update test/intl402/Segmenter/ctor-custom-get-prototype-poison-throws.js 2020-09-10 16:08:39 -04:00
ctor-custom-prototype.js Add more tests for Intl.Segmenter 2020-09-10 16:08:39 -04:00
ctor-default-prototype.js Add more tests for Intl.Segmenter 2020-09-10 16:08:39 -04:00
proto-from-ctor-realm.js Address review comments 2020-09-10 16:08:39 -04:00