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

This commit is contained in:
Ms2ger 2018-10-24 15:40:16 +02:00 committed by Rick Waldron
parent 757491d4f8
commit b8b93ec421
1 changed files with 19 additions and 0 deletions

View 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.relativetimeformat.prototype.resolvedoptions
description: Verifies the property order for the object returned by resolvedOptions().
includes: [compareArray.js]
features: [Intl.RelativeTimeFormat]
---*/
const options = new Intl.RelativeTimeFormat().resolvedOptions();
const expected = [
"locale",
"style",
"numeric",
];
assert.compareArray(Object.getOwnPropertyNames(options), expected);