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

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

Issue 11068011: If no pattern is specified for date formatting, use a default (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/date_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/date_time_format_test_core.dart
===================================================================
--- pkg/intl/test/date_time_format_test_core.dart (revision 13269)
+++ pkg/intl/test/date_time_format_test_core.dart (working copy)
@@ -335,4 +335,13 @@
expect(utc.hour, equals(parsedUTC.hour));
expect(local.hour, equals(parsed.hour));
});
+
+ test('Test default format', () {
+ var someDate = new Date(2012, 1, 27, 20, 58, 59, 1, false);
+ var emptyFormat = new DateFormat(locale: "en_US");
+ var knownDefault = new DateFormat.yMMMMd("en_US").add_jms();
+ var result = emptyFormat.format(someDate);
+ var knownResult = knownDefault.format(someDate);
+ expect(result, knownResult);
+ });
}
« no previous file with comments | « pkg/intl/lib/date_format.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698