Skip to content
Snippets Groups Projects
Commit 52dfda89 authored by Ms2ger's avatar Ms2ger Committed by Rick Waldron
Browse files

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

parent ee3715ee
No related branches found
No related tags found
No related merge requests found
// 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment