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

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

Issue 218493011: partly fix date format dartbug.com/15811. this 0 pads. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/src/date_format_field.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/date_time_format_test_core.dart
diff --git a/pkg/intl/test/date_time_format_test_core.dart b/pkg/intl/test/date_time_format_test_core.dart
index 989b264f84095ee649762cd36c21f3f2155795d1..ea7cfca8f9b883bd1d356d2ca29484929889fffc 100644
--- a/pkg/intl/test/date_time_format_test_core.dart
+++ b/pkg/intl/test/date_time_format_test_core.dart
@@ -372,6 +372,12 @@ void runDateTests(Function subsetFunc) {
expect(local.hour, equals(parsed.hour));
});
+ test('Test 0-padding', () {
+ var someDate = new DateTime(123, 1, 2, 3, 4, 5);
+ var format = new DateFormat('yyyy-MM-dd HH:mm:ss');
+ expect(format.format(someDate), '0123-01-02 03:04:05');
+ });
+
test('Test default format', () {
var someDate = new DateTime(2012, 1, 27, 20, 58, 59, 1);
var emptyFormat = new DateFormat(null, "en_US");
@@ -446,4 +452,4 @@ void runDateTests(Function subsetFunc) {
expect(basic, basicAgain);
expect(first.month, 7);
});
-}
+}
« no previous file with comments | « pkg/intl/lib/src/date_format_field.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698