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

Unified Diff: pkg/intl/test/number_closure_test.dart

Issue 14544009: Fix some doc formatting problems, stop using "set" methods for NumberFormat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « pkg/intl/lib/number_format.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/number_closure_test.dart
diff --git a/pkg/intl/test/number_closure_test.dart b/pkg/intl/test/number_closure_test.dart
index 8574e08dd6f2c663b0604fb383e1e08fc18e4f23..5037b0eb15782f04ba7a686ddb0275b7afc60e85 100644
--- a/pkg/intl/test/number_closure_test.dart
+++ b/pkg/intl/test/number_closure_test.dart
@@ -90,20 +90,20 @@ void testNegativePercentage() {
void testCustomPercentage() {
var fmt = new NumberFormat.percentPattern();
- fmt.setMaximumFractionDigits(1);
- fmt.setMinimumFractionDigits(1);
+ fmt.maximumFractionDigits = 1;
+ fmt.minimumFractionDigits = 1;
var str = fmt.format(0.1291);
expect('12.9%', str);
- fmt.setMaximumFractionDigits(2);
- fmt.setMinimumFractionDigits(1);
+ fmt.maximumFractionDigits = 2;
+ fmt.minimumFractionDigits = 1;
str = fmt.format(0.129);
expect('12.9%', str);
- fmt.setMaximumFractionDigits(2);
- fmt.setMinimumFractionDigits(1);
+ fmt.maximumFractionDigits = 2;
+ fmt.minimumFractionDigits = 1;
str = fmt.format(0.12);
expect('12.0%', str);
- fmt.setMaximumFractionDigits(2);
- fmt.setMinimumFractionDigits(1);
+ fmt.maximumFractionDigits = 2;
+ fmt.minimumFractionDigits = 1;
str = fmt.format(0.12911);
expect('12.91%', str);
}
« no previous file with comments | « pkg/intl/lib/number_format.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698