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

Unified Diff: tests/standalone/src/TimerCancelTest.dart

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 9 years 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/src/TimerCancel2Test.dart ('k') | tests/standalone/src/TimerRepeatTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/TimerCancelTest.dart
diff --git a/tests/standalone/src/TimerCancelTest.dart b/tests/standalone/src/TimerCancelTest.dart
index 31ba336c6435cc90581c22e51b9f54064ac665f0..837f9c3463f4473433044e27a4cacb944202d15d 100644
--- a/tests/standalone/src/TimerCancelTest.dart
+++ b/tests/standalone/src/TimerCancelTest.dart
@@ -20,12 +20,12 @@ class TimerCancelTest {
Expect.equals(true, repeatTimer == 1);
}
- cancelTimer = new Timer(timeoutHandlerUnreachable, 1000, false);
+ cancelTimer = new Timer(timeoutHandlerUnreachable, 1000);
cancelTimer.cancel();
- new Timer(timeoutHandler, 1000, false);
- cancelTimer = new Timer(timeoutHandlerUnreachable, 2000, false);
+ new Timer(timeoutHandler, 1000);
+ cancelTimer = new Timer(timeoutHandlerUnreachable, 2000);
repeatTimer = 0;
- new Timer(timeoutHandlerRepeat, 1500, true);
+ new Timer.repeating(timeoutHandlerRepeat, 1500);
}
static void testMain() {
« no previous file with comments | « tests/standalone/src/TimerCancel2Test.dart ('k') | tests/standalone/src/TimerRepeatTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698