Index: tests/lib/async/intercept_run_async5_test.dart |
diff --git a/tests/lib/async/intercept_run_async5_test.dart b/tests/lib/async/intercept_run_async5_test.dart |
index 8c1882f68bfd3530e196f796148fcaac4332c7cd..c13bb04e4ae3a518ec3e7fd8dc6c733429b5022e 100644 |
--- a/tests/lib/async/intercept_run_async5_test.dart |
+++ b/tests/lib/async/intercept_run_async5_test.dart |
@@ -10,9 +10,9 @@ var events = []; |
body() { |
events.add("body entry"); |
- runAsync(() { |
+ scheduleMicrotask(() { |
events.add("run async body"); |
- runAsync(() { |
+ scheduleMicrotask(() { |
events.add("run nested body"); |
}); |
}); |
@@ -21,13 +21,13 @@ body() { |
handler(fun) { |
events.add("handler"); |
- runAsync(fun); |
+ scheduleMicrotask(fun); |
events.add("handler done"); |
} |
handler2(fun) { |
events.add("handler2"); |
- runAsync(fun); |
+ scheduleMicrotask(fun); |
events.add("handler2 done"); |
} |
@@ -36,7 +36,7 @@ main() { |
// Test that nested runZonedExperimental go to the next outer zone. |
var result = runZonedExperimental( |
- () => runZonedExperimental(body, onRunAsync: handler2), |
+ () => runZonedExperimental(body, onScheduleMicrotask: handler2), |
onRunAsync: handler); |
events.add("after"); |
Timer.run(() { |