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

Unified Diff: test/intl/number-format/check-minimum-fraction-digits.js

Issue 1231613006: Make NumberFormat use the ICU currency data, fix bug in NumberFormat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use short form of license Created 5 years, 5 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
Index: test/intl/number-format/check-minimum-fraction-digits.js
diff --git a/test/intl/number-format/check-minimum-fraction-digits.js b/test/intl/number-format/check-minimum-fraction-digits.js
new file mode 100755
index 0000000000000000000000000000000000000000..57e65be55e22525322c457a45a4dfddc6ef373d1
--- /dev/null
+++ b/test/intl/number-format/check-minimum-fraction-digits.js
@@ -0,0 +1,9 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Make sure minimumFractionDigits is honored
+
+var nf = new Intl.NumberFormat("en-us",{ useGrouping: false, minimumFractionDigits: 4});
+
+assertEquals("12345.6789", nf.format(12345.6789));
« src/i18n.cc ('K') | « src/i18n.js ('k') | test/intl/number-format/format-currency.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698