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

Unified Diff: tests/standalone/io/timer_repeat_test.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « tests/standalone/io/multiple_timer_test.dart ('k') | tests/standalone/io/timer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/timer_repeat_test.dart
diff --git a/tests/standalone/io/timer_repeat_test.dart b/tests/standalone/io/timer_repeat_test.dart
index fb2580931ee48f7a6f71c80c843b114f6fb0076f..29ba322c732bbe27e11125626d39486234500ca2 100644
--- a/tests/standalone/io/timer_repeat_test.dart
+++ b/tests/standalone/io/timer_repeat_test.dart
@@ -12,10 +12,10 @@ class TimerRepeatTest {
static void testRepeatTimer() {
void timeoutHandler(Timer timer) {
- int endTime = (new Date.now()).value;
+ int endTime = (new Date.now()).millisecondsSinceEpoch;
_iteration++;
if (_iteration < _ITERATIONS) {
- _startTime = (new Date.now()).value;
+ _startTime = (new Date.now()).millisecondsSinceEpoch;
} else {
Expect.equals(_iteration, _ITERATIONS);
timer.cancel();
@@ -23,7 +23,7 @@ class TimerRepeatTest {
}
_iteration = 0;
- _startTime = (new Date.now()).value;
+ _startTime = (new Date.now()).millisecondsSinceEpoch;
timer = new Timer.repeating(_TIMEOUT, timeoutHandler);
}
« no previous file with comments | « tests/standalone/io/multiple_timer_test.dart ('k') | tests/standalone/io/timer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698