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

Unified Diff: tests/lib/async/zone_run_guarded_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_guarded_test.dart
diff --git a/tests/lib/async/zone_run_guarded_test.dart b/tests/lib/async/zone_run_guarded_test.dart
index 60ffe5a3eccf11b6b1c648607855ea70407dfb81..4145443a947652f51a963a23e9c31e3868fb6acf 100644
--- a/tests/lib/async/zone_run_guarded_test.dart
+++ b/tests/lib/async/zone_run_guarded_test.dart
@@ -57,7 +57,7 @@ main() {
result = forked.runGuarded(() {
Expect.identical(forked, Zone.current);
events.add("run closure");
- scheduleMicrotask(() {
+ forked.scheduleMicrotask(() {
events.add("run closure 2");
Expect.identical(forked, Zone.current);
done.complete(true);
@@ -76,4 +76,4 @@ main() {
events);
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698