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

Unified Diff: tests/isolate/multiple_timer_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/corelib/is_operator_basic_types_test.dart ('k') | tests/isolate/timer_isolate_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/multiple_timer_test.dart
diff --git a/tests/isolate/multiple_timer_test.dart b/tests/isolate/multiple_timer_test.dart
index 15e16edc92f66011f4ea28c332cbfa85d16e6c02..941c81e9e7ffaa51ae2fa0beda59f237f21a0b46 100644
--- a/tests/isolate/multiple_timer_test.dart
+++ b/tests/isolate/multiple_timer_test.dart
@@ -22,28 +22,28 @@ main() {
int _message;
void timeoutHandler1(Timer timer) {
- int endTime = (new Date.now()).millisecondsSinceEpoch;
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch;
expect(endTime - _startTime1, greaterThanOrEqualTo(TIMEOUT1));
expect(_order[_message], 0);
_message++;
}
void timeoutHandler2(Timer timer) {
- int endTime = (new Date.now()).millisecondsSinceEpoch;
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch;
expect(endTime - _startTime2, greaterThanOrEqualTo(TIMEOUT2));
expect(_order[_message], 1);
_message++;
}
void timeoutHandler3(Timer timer) {
- int endTime = (new Date.now()).millisecondsSinceEpoch;
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch;
expect(endTime - _startTime3, greaterThanOrEqualTo(TIMEOUT3));
expect(_order[_message], 2);
_message++;
}
void timeoutHandler4(Timer timer) {
- int endTime = (new Date.now()).millisecondsSinceEpoch;
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch;
expect(endTime - _startTime4, greaterThanOrEqualTo(TIMEOUT4));
expect(_order[_message], 3);
_message++;
@@ -56,13 +56,13 @@ main() {
_order[3] = 1;
_message = 0;
- _startTime1 = (new Date.now()).millisecondsSinceEpoch;
+ _startTime1 = (new DateTime.now()).millisecondsSinceEpoch;
new Timer(TIMEOUT1, expectAsync1(timeoutHandler1));
- _startTime2 = (new Date.now()).millisecondsSinceEpoch;
+ _startTime2 = (new DateTime.now()).millisecondsSinceEpoch;
new Timer(TIMEOUT2, expectAsync1(timeoutHandler2));
- _startTime3 = (new Date.now()).millisecondsSinceEpoch;
+ _startTime3 = (new DateTime.now()).millisecondsSinceEpoch;
new Timer(TIMEOUT3, expectAsync1(timeoutHandler3));
- _startTime4 = (new Date.now()).millisecondsSinceEpoch;
+ _startTime4 = (new DateTime.now()).millisecondsSinceEpoch;
new Timer(TIMEOUT4, expectAsync1(timeoutHandler4));
});
}
« no previous file with comments | « tests/corelib/is_operator_basic_types_test.dart ('k') | tests/isolate/timer_isolate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698