mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Updates test for Intl.NumberFormat Unified API Proposal changes.
This commit is contained in:
parent
d8c20b423b
commit
8b725e3957
@ -5,6 +5,7 @@
|
|||||||
esid: sec-intl.numberformat.prototype.resolvedoptions
|
esid: sec-intl.numberformat.prototype.resolvedoptions
|
||||||
description: Verifies the property order for the object returned by resolvedOptions().
|
description: Verifies the property order for the object returned by resolvedOptions().
|
||||||
includes: [compareArray.js]
|
includes: [compareArray.js]
|
||||||
|
features: [Intl.NumberFormat-unified]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const options = new Intl.NumberFormat([], {
|
const options = new Intl.NumberFormat([], {
|
||||||
@ -21,10 +22,13 @@ const expected = [
|
|||||||
"style",
|
"style",
|
||||||
"currency",
|
"currency",
|
||||||
"currencyDisplay",
|
"currencyDisplay",
|
||||||
|
"currencySign",
|
||||||
"minimumIntegerDigits",
|
"minimumIntegerDigits",
|
||||||
"minimumSignificantDigits",
|
"minimumSignificantDigits",
|
||||||
"maximumSignificantDigits",
|
"maximumSignificantDigits",
|
||||||
"useGrouping",
|
"useGrouping",
|
||||||
|
"notation",
|
||||||
|
"signDisplay",
|
||||||
];
|
];
|
||||||
|
|
||||||
assert.compareArray(Object.getOwnPropertyNames(options), expected);
|
assert.compareArray(Object.getOwnPropertyNames(options), expected);
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
esid: sec-intl.numberformat.prototype.resolvedoptions
|
esid: sec-intl.numberformat.prototype.resolvedoptions
|
||||||
description: Verifies the property order for the object returned by resolvedOptions().
|
description: Verifies the property order for the object returned by resolvedOptions().
|
||||||
includes: [compareArray.js]
|
includes: [compareArray.js]
|
||||||
|
features: [Intl.NumberFormat-unified]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const options = new Intl.PluralRules([], {
|
const options = new Intl.PluralRules([], {
|
||||||
@ -16,8 +17,6 @@ const expected = [
|
|||||||
"locale",
|
"locale",
|
||||||
"type",
|
"type",
|
||||||
"minimumIntegerDigits",
|
"minimumIntegerDigits",
|
||||||
"minimumFractionDigits",
|
|
||||||
"maximumFractionDigits",
|
|
||||||
"minimumSignificantDigits",
|
"minimumSignificantDigits",
|
||||||
"maximumSignificantDigits",
|
"maximumSignificantDigits",
|
||||||
"pluralCategories",
|
"pluralCategories",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user