mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
fixup! Add tests for proposal, "Intl.DisplayNames v2"
This commit is contained in:
parent
d93e7b08e7
commit
247085f9d8
@ -25,6 +25,7 @@ info: |
|
|||||||
[[Style]]: "style"
|
[[Style]]: "style"
|
||||||
[[Type]]: "type"
|
[[Type]]: "type"
|
||||||
[[Fallback]]: "fallback"
|
[[Fallback]]: "fallback"
|
||||||
|
[[LanguageDisplay]]: "languageDisplay"
|
||||||
|
|
||||||
Intl.DisplayNames ( locales , options )
|
Intl.DisplayNames ( locales , options )
|
||||||
|
|
||||||
@ -50,7 +51,7 @@ info: |
|
|||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
...
|
...
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
features: [Intl.DisplayNames, Reflect]
|
features: [Intl.DisplayNames-v2, Reflect]
|
||||||
includes: [propertyHelper.js, compareArray.js]
|
includes: [propertyHelper.js, compareArray.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ assert.sameValue(Object.getPrototypeOf(other), Object.prototype, 'ordinary objec
|
|||||||
|
|
||||||
assert.compareArray(
|
assert.compareArray(
|
||||||
Reflect.ownKeys(options),
|
Reflect.ownKeys(options),
|
||||||
['locale', 'style', 'type', 'fallback'],
|
['locale', 'style', 'type', 'fallback', 'languageDisplay'],
|
||||||
'all the data properties set to this object, in order of creation'
|
'all the data properties set to this object, in order of creation'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -91,7 +92,7 @@ const extra = new Intl.DisplayNames(
|
|||||||
|
|
||||||
assert.compareArray(
|
assert.compareArray(
|
||||||
Reflect.ownKeys(extra),
|
Reflect.ownKeys(extra),
|
||||||
['locale', 'style', 'type', 'fallback'],
|
['locale', 'style', 'type', 'fallback', 'languageDisplay'],
|
||||||
'extra properties are not reflected in the resolvedOptions'
|
'extra properties are not reflected in the resolvedOptions'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user