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

Unified Diff: tests/standalone/io/timer_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/timer_repeat_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/timer_test.dart
diff --git a/tests/standalone/io/timer_test.dart b/tests/standalone/io/timer_test.dart
index 44f9673ae3e79ce2fe7292b9e5b4c1abadf8864c..8fd776aa78b46b9a9c5df2f1638bf7ccb55cee53 100644
--- a/tests/standalone/io/timer_test.dart
+++ b/tests/standalone/io/timer_test.dart
@@ -13,19 +13,19 @@ class TimerTest {
static void testSimpleTimer() {
void timeoutHandler(Timer timer) {
- int endTime = (new Date.now()).value;
+ int endTime = (new Date.now()).millisecondsSinceEpoch;
Expect.equals(true, (endTime - _startTime) >= _timeout);
if (_iteration < _ITERATIONS) {
_iteration++;
_timeout = _timeout - _DECREASE;
- _startTime = (new Date.now()).value;
+ _startTime = (new Date.now()).millisecondsSinceEpoch;
new Timer(_timeout, timeoutHandler);
}
}
_iteration = 0;
_timeout = _STARTTIMEOUT;
- _startTime = (new Date.now()).value;
+ _startTime = (new Date.now()).millisecondsSinceEpoch;
new Timer(_timeout, timeoutHandler);
}
« no previous file with comments | « tests/standalone/io/timer_repeat_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698