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

Unified Diff: tests/lib/async/zone_run_test.dart

Issue 87283003: Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed tests. Created 7 years, 1 month 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
Index: tests/lib/async/zone_run_test.dart
diff --git a/tests/lib/async/zone_run_test.dart b/tests/lib/async/zone_run_test.dart
index 2af32dfe9226d86cfb93faa906334c3ad49867d2..3c13c469f082de94000e2b5b1fc4e82eb922232a 100644
--- a/tests/lib/async/zone_run_test.dart
+++ b/tests/lib/async/zone_run_test.dart
@@ -44,7 +44,7 @@ main() {
result = forked.run(() {
Expect.identical(forked, Zone.current);
events.add("run closure 2");
- scheduleMicrotask(() {
+ forked.scheduleMicrotask(() {
events.add("run closure 3");
Expect.identical(forked, Zone.current);
done.complete(true);
@@ -62,4 +62,4 @@ main() {
events);
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698