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

Unified Diff: tests/corelib/src/DateTimeTest.dart

Issue 9595013: parseInt fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 8 years, 10 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 | « tests/corelib/corelib-leg.status ('k') | tests/corelib/src/MathParseDoubleTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/src/DateTimeTest.dart
diff --git a/tests/corelib/src/DateTimeTest.dart b/tests/corelib/src/DateTimeTest.dart
index 67f1de1b501b89a3e974a81d52123fc7e0c051c6..b81201a8b6290df0e8448e5cf8ffdf4acc6cd12f 100644
--- a/tests/corelib/src/DateTimeTest.dart
+++ b/tests/corelib/src/DateTimeTest.dart
@@ -488,6 +488,15 @@ class DateTest {
Expect.equals(0, dt1.seconds);
Expect.equals(0, dt1.milliseconds);
Expect.equals(true, dt1.isUtc());
+ dt1 = new Date.fromString("0009-09-09 09:09:09.009Z");
+ Expect.equals(9, dt1.year);
+ Expect.equals(9, dt1.month);
+ Expect.equals(9, dt1.day);
+ Expect.equals(9, dt1.hours);
+ Expect.equals(9, dt1.minutes);
+ Expect.equals(9, dt1.seconds);
+ Expect.equals(9, dt1.milliseconds);
+ Expect.equals(true, dt1.isUtc());
}
static void testWeekday() {
« no previous file with comments | « tests/corelib/corelib-leg.status ('k') | tests/corelib/src/MathParseDoubleTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698