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

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

Issue 14604009: Add a dateSymbols getter to DateFormat, useful to get e.g. the list of weekday names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
diff --git a/pkg/intl/test/date_time_format_test_core.dart b/pkg/intl/test/date_time_format_test_core.dart
index 7e007e45bd3824ff4b21225eb434e45cee7a8cf6..d4a03c1d0dcffc5743f2623599896be413f62ec4 100644
--- a/pkg/intl/test/date_time_format_test_core.dart
+++ b/pkg/intl/test/date_time_format_test_core.dart
@@ -349,4 +349,10 @@ void runDateTests(Function subsetFunc) {
var knownResult = knownDefault.format(someDate);
expect(result, knownResult);
});
+
+ test('Get symbols', () {
+ var emptyFormat = new DateFormat(null, "en_US");
+ var symbols = emptyFormat.dateSymbols;
+ expect(symbols.NARROWWEEKDAYS, ['S', 'M', 'T', 'W', 'T', 'F', 'S']);
+ });
}
« 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