mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Intl.ListFormat: Test the order of properties in the result of resolvedOptions().
This commit is contained in:
parent
b8b93ec421
commit
0dcec72e34
19
test/intl402/ListFormat/prototype/resolvedOptions/order.js
vendored
Normal file
19
test/intl402/ListFormat/prototype/resolvedOptions/order.js
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-Intl.ListFormat.prototype.resolvedOptions
|
||||||
|
description: Verifies the property order for the object returned by resolvedOptions().
|
||||||
|
includes: [compareArray.js]
|
||||||
|
features: [Intl.ListFormat]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
const options = new Intl.ListFormat().resolvedOptions();
|
||||||
|
|
||||||
|
const expected = [
|
||||||
|
"locale",
|
||||||
|
"type",
|
||||||
|
"style",
|
||||||
|
];
|
||||||
|
|
||||||
|
assert.compareArray(Object.getOwnPropertyNames(options), expected);
|
Loading…
x
Reference in New Issue
Block a user