test262/harness
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
..
arrayContains.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
assert.js Revert "Improve assert.throws output" 2020-08-21 15:58:21 -04:00
assertRelativeDateMs.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
async-gc.js Add feature tag for cleanupSome 2020-07-21 16:57:50 -04:00
atomicsHelper.js atomicsHelper.js: Add $262.agent.setTimeout to defines 2020-10-19 17:48:00 -04:00
byteConversionValues.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
compareArray.js Gracefully handle nullish arguments in harness/compareArray 2020-08-31 15:17:24 -04:00
compareIterator.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
dateConstants.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
decimalToHexString.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
deepEqual.js Cleanup compareArray and deepEqual assertions, remove assert._formatValue 2019-10-09 17:57:10 -04:00
detachArrayBuffer.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
doneprintHandle.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
features.yml Make Atomics tests more resilient against intermittent failures (#1617) 2018-07-03 12:34:54 -04:00
fnGlobalObject.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
hidden-constructors.js Remove erroneous ArrowFunction 2020-10-07 16:43:48 -04:00
isConstructor.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
nans.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
nativeFunctionMatcher.js native function validator for your consideration 2020-08-04 19:44:31 -04:00
promiseHelper.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
propertyHelper.js Avoid using Array.isArray directly 2020-03-25 11:59:43 -04:00
proxyTrapsHelper.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
regExpUtils.js Don't use function argument destructuring in regExpUtils.js (#3000) 2021-05-28 19:47:36 -04:00
sta.js Create "Test262Error.thrower" as replacement for "$ERROR". Define $ERROR as Test262Error.thrower 2020-09-16 17:36:54 -04:00
tcoHelper.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
testAtomics.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
testBigIntTypedArray.js Atomics: corrections 2020-06-24 12:26:41 -04:00
testIntl.js Fix tests on {localeMatcher: "lookup"} (#3008) 2021-06-24 13:37:33 -04:00
testTypedArray.js Atomics: corrections 2020-06-24 12:26:41 -04:00
timer.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
typeCoercion.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
wellKnownIntrinsicObjects.js native function validator for your consideration 2020-08-04 19:44:31 -04:00