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

Unified Diff: tests/language/closure_cycles_test.dart

Issue 12213092: Rework Timer interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « tests/isolate/timer_test.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/closure_cycles_test.dart
diff --git a/tests/language/closure_cycles_test.dart b/tests/language/closure_cycles_test.dart
index 726599daa16615119b83827af16005b321b5500f..7aded11a32465a4a9bf6bb4e3e4ba11fcaeced42 100644
--- a/tests/language/closure_cycles_test.dart
+++ b/tests/language/closure_cycles_test.dart
@@ -10,7 +10,7 @@ import "dart:async";
class X {
Function onX;
- X() { new Timer(0, (_) => onX(new Y())); }
+ X() { Timer.run(() => onX(new Y())); }
}
class Y {
@@ -22,7 +22,7 @@ class Y {
heavyMemory = new List(10*1024*1024);
// Terminate the test if we allocated enough memory without running out.
if (count++ > 100) return;
- new Timer(0, (_) => onY());
+ Timer.run(() => onY());
}
}
« no previous file with comments | « tests/isolate/timer_test.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698