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

Unified Diff: tests/isolate/timer_cancel_test.dart

Issue 12316103: Introduce optimized Timer.run queue for immediate runs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « sdk/lib/async/timer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/timer_cancel_test.dart
diff --git a/tests/isolate/timer_cancel_test.dart b/tests/isolate/timer_cancel_test.dart
index bc4376b211437d7018d2483178c37ce49924a936..a159abcf3600b404b668437542309831e9b765db 100644
--- a/tests/isolate/timer_cancel_test.dart
+++ b/tests/isolate/timer_cancel_test.dart
@@ -35,10 +35,10 @@ main() {
repeatTimer = 0;
new Timer.repeating(ms * 1500, expectAsync1(repeatHandler));
});
-
+
test("cancel timer with same time", () {
var t2;
- var t1 = Timer.run(expectAsync0(() => t2.cancel()));
- t2 = Timer.run(expectAsync0(t1.cancel, count: 0));
+ var t1 = new Timer(ms * 0, expectAsync0(() => t2.cancel()));
+ t2 = new Timer(ms * 0, expectAsync0(t1.cancel, count: 0));
});
}
« no previous file with comments | « sdk/lib/async/timer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698