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

Unified Diff: tests/lib/i18n/date_time_format_test.dart

Issue 10505005: Polish Date formatting API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
« lib/i18n/date_format.dart ('K') | « lib/i18n/date_time_format.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/i18n/date_time_format_test.dart
===================================================================
--- tests/lib/i18n/date_time_format_test.dart (revision 8268)
+++ tests/lib/i18n/date_time_format_test.dart (working copy)
@@ -6,7 +6,7 @@
#library('date_time_format_test');
-#import('../../../lib/i18n/date_time_format.dart');
+#import('../../../lib/i18n/date_format.dart');
#import('../../../lib/unittest/unittest.dart');
/**
@@ -15,18 +15,18 @@
main() {
test('Date formatting', () {
- var date_format = new DateTimeFormat.fullDate();
+ var date_format = new DateFormat.fullDate();
Date date = new Date.now();
// TODO(efortuna): Change the expectation once we have a functioning date
// formatting class.
Expect.stringEquals(date.toString(), date_format.format(date));
- date_format = new DateTimeFormat("hh:mm:ss");
+ date_format = new DateFormat("hh:mm:ss");
Expect.stringEquals(date.toString(), date_format.format(date));
});
test('Date parsing', () {
- var date_format = new DateTimeFormat.fullDate();
+ var date_format = new DateFormat.fullDate();
Date date = new Date.now();
// TODO(efortuna): Change the expectation once we have a functioning date
// formatting class.
« lib/i18n/date_format.dart ('K') | « lib/i18n/date_time_format.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698