Intl.Segmenter: Test the order of properties in the result of resolvedOptions().

This commit is contained in:
Ms2ger 2018-10-24 10:57:26 +02:00 committed by Rick Waldron
parent ee3715ee56
commit 52dfda893d
1 changed files with 21 additions and 0 deletions

View File

@ -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);