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

Unified Diff: pkg/unittest/lib/src/test_case.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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/unittest/lib/mock.dart ('k') | pkg/unittest/test/mock_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/test_case.dart
diff --git a/pkg/unittest/lib/src/test_case.dart b/pkg/unittest/lib/src/test_case.dart
index 0b13cb1ef668a6d05e6cf27010b43d595acd2665..d791d37d0f63c7b3ada2faf5239e87ac475f9763 100644
--- a/pkg/unittest/lib/src/test_case.dart
+++ b/pkg/unittest/lib/src/test_case.dart
@@ -53,7 +53,7 @@ class TestCase {
/** The group (or groups) under which this test is running. */
final String currentGroup;
- Date startTime;
+ DateTime startTime;
Duration runningTime;
@@ -78,7 +78,7 @@ class TestCase {
_setUp();
}
_config.onTestStart(this);
- startTime = new Date.now();
+ startTime = new DateTime.now();
runningTime = null;
test();
}
@@ -88,7 +88,7 @@ class TestCase {
if (runningTime == null) {
// TODO(gram): currently the duration measurement code is blocked
// by issue 4437. When that is fixed replace the line below with:
- // runningTime = new Date.now().difference(startTime);
+ // runningTime = new DateTime.now().difference(startTime);
runningTime = new Duration(milliseconds: 0);
}
if (!_doneTeardown) {
« no previous file with comments | « pkg/unittest/lib/mock.dart ('k') | pkg/unittest/test/mock_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698