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

Unified Diff: tests/isolate/timer_repeat_test.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 | « tests/isolate/timer_isolate_test.dart ('k') | tests/isolate/timer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/timer_repeat_test.dart
diff --git a/tests/isolate/timer_repeat_test.dart b/tests/isolate/timer_repeat_test.dart
index d13e9884f5745e84026b6e12e556c958f4b5949e..48b962b208bab1703b873b17cddc0bd89e90a62c 100644
--- a/tests/isolate/timer_repeat_test.dart
+++ b/tests/isolate/timer_repeat_test.dart
@@ -15,10 +15,10 @@ int startTime;
int iteration;
void timeoutHandler(Timer timer) {
- int endTime = (new Date.now()).millisecondsSinceEpoch;
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch;
iteration++;
if (iteration < ITERATIONS) {
- startTime = (new Date.now()).millisecondsSinceEpoch;
+ startTime = (new DateTime.now()).millisecondsSinceEpoch;
} else {
expect(iteration, ITERATIONS);
timer.cancel();
@@ -28,7 +28,7 @@ void timeoutHandler(Timer timer) {
main() {
test("timer_repeat", () {
iteration = 0;
- startTime = new Date.now().millisecondsSinceEpoch;
+ startTime = new DateTime.now().millisecondsSinceEpoch;
timer = new Timer.repeating(TIMEOUT,
expectAsync1(timeoutHandler, count: ITERATIONS));
});
« no previous file with comments | « tests/isolate/timer_isolate_test.dart ('k') | tests/isolate/timer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698