intl: increase coverage for NumberFormat constructor

Increase coverage for the Intl.NumberFormat constructor by adding tests
checking if appropriate default values are used.
This commit is contained in:
Ujjwal Sharma 2018-09-29 19:12:26 +05:30 committed by Rick Waldron
parent 5de1831c48
commit bba2429cad
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializenumberformat
description: >
Tests that the constructor for Intl.NumberFormat uses appropriate default
values for its arguments (locales and options).
---*/
const actual = new Intl.NumberFormat();
const expected = new Intl.NumberFormat([], { __proto__: null });
assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());