mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
Change RelativeTimeFormat -> ListFormat in ListFormat test
This commit is contained in:
parent
fa16d7df3f
commit
4d6e47bca9
@ -2,18 +2,18 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-Intl.RelativeTimeFormat.supportedLocalesOf
|
esid: sec-Intl.ListFormat.supportedLocalesOf
|
||||||
description: Checks handling of an undefined options argument to the supportedLocalesOf function.
|
description: Checks handling of an undefined options argument to the supportedLocalesOf function.
|
||||||
info: |
|
info: |
|
||||||
SupportedLocales ( availableLocales, requestedLocales, options )
|
SupportedLocales ( availableLocales, requestedLocales, options )
|
||||||
|
|
||||||
1. If options is not undefined, then
|
1. If options is not undefined, then
|
||||||
b. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
|
b. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
|
||||||
features: [Intl.RelativeTimeFormat]
|
features: [Intl.ListFormat]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof Intl.RelativeTimeFormat.supportedLocalesOf, "function",
|
assert.sameValue(typeof Intl.ListFormat.supportedLocalesOf, "function",
|
||||||
"Should support Intl.RelativeTimeFormat.supportedLocalesOf.");
|
"Should support Intl.ListFormat.supportedLocalesOf.");
|
||||||
|
|
||||||
Object.defineProperties(Object.prototype, {
|
Object.defineProperties(Object.prototype, {
|
||||||
"localeMatcher": {
|
"localeMatcher": {
|
||||||
@ -21,6 +21,6 @@ Object.defineProperties(Object.prototype, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.sameValue(Array.isArray(Intl.RelativeTimeFormat.supportedLocalesOf()), true, "No arguments");
|
assert.sameValue(Array.isArray(Intl.ListFormat.supportedLocalesOf()), true, "No arguments");
|
||||||
assert.sameValue(Array.isArray(Intl.RelativeTimeFormat.supportedLocalesOf([])), true, "One argument");
|
assert.sameValue(Array.isArray(Intl.ListFormat.supportedLocalesOf([])), true, "One argument");
|
||||||
assert.sameValue(Array.isArray(Intl.RelativeTimeFormat.supportedLocalesOf([], undefined)), true, "Two arguments");
|
assert.sameValue(Array.isArray(Intl.ListFormat.supportedLocalesOf([], undefined)), true, "Two arguments");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user