mirror of https://github.com/tc39/test262.git
Intl.Segmenter: Test the order of properties in the result of resolvedOptions().
This commit is contained in:
parent
ee3715ee56
commit
52dfda893d
|
@ -0,0 +1,21 @@
|
||||||
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-Intl.Segmenter.prototype.resolvedOptions
|
||||||
|
description: Verifies the property order for the object returned by resolvedOptions().
|
||||||
|
includes: [compareArray.js]
|
||||||
|
features: [Intl.Segmenter]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
const options = new Intl.Segmenter([], {
|
||||||
|
"granularity": "line",
|
||||||
|
}).resolvedOptions();
|
||||||
|
|
||||||
|
const expected = [
|
||||||
|
"locale",
|
||||||
|
"granularity",
|
||||||
|
"lineBreakStyle",
|
||||||
|
];
|
||||||
|
|
||||||
|
assert.compareArray(Object.getOwnPropertyNames(options), expected);
|
Loading…
Reference in New Issue