Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1027)

Unified Diff: test/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js

Issue 2717773002: [test262] skip two Intl.NumberFormat tests (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js
diff --git a/test/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js b/test/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ca6ffe2b97049658add4ff78fe7fc149d037c4d
--- /dev/null
+++ b/test/test262/local-tests/test/intl402/NumberFormat/default-currency-maximum-fraction-digits.js
@@ -0,0 +1,17 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+esid: ECMA-402 #sec-setnfdigitoptions
+description: >
+ When a currency is used in Intl.NumberFormat and minimumFractionDigits is
+ not provided, maximumFractionDigits should be range-checked against it.
+include: [assert.js]
+---*/
+
+assert.throws(RangeError,
+ () => new Intl.NumberFormat('en', {
+ style: 'currency',
+ currency: 'USD',
+ maximumFractionDigits: 1
+ }));
« no previous file with comments | « no previous file | test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698