mirror of https://github.com/tc39/test262.git
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
|
||||
description: Verifies the property order for the object returned by resolvedOptions().
|
||||
includes: [compareArray.js]
|
||||
features: [Intl.NumberFormat-unified]
|
||||
---*/
|
||||
|
||||
const options = new Intl.NumberFormat([], {
|
||||
|
@ -21,10 +22,13 @@ const expected = [
|
|||
"style",
|
||||
"currency",
|
||||
"currencyDisplay",
|
||||
"currencySign",
|
||||
"minimumIntegerDigits",
|
||||
"minimumSignificantDigits",
|
||||
"maximumSignificantDigits",
|
||||
"useGrouping",
|
||||
"notation",
|
||||
"signDisplay",
|
||||
];
|
||||
|
||||
assert.compareArray(Object.getOwnPropertyNames(options), expected);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-intl.numberformat.prototype.resolvedoptions
|
||||
description: Verifies the property order for the object returned by resolvedOptions().
|
||||
includes: [compareArray.js]
|
||||
features: [Intl.NumberFormat-unified]
|
||||
---*/
|
||||
|
||||
const options = new Intl.PluralRules([], {
|
||||
|
@ -16,8 +17,6 @@ const expected = [
|
|||
"locale",
|
||||
"type",
|
||||
"minimumIntegerDigits",
|
||||
"minimumFractionDigits",
|
||||
"maximumFractionDigits",
|
||||
"minimumSignificantDigits",
|
||||
"maximumSignificantDigits",
|
||||
"pluralCategories",
|
||||
|
|
Loading…
Reference in New Issue