Index: tests/lib/async/intercept_run_async6_test.dart |
diff --git a/tests/lib/async/intercept_run_async6_test.dart b/tests/lib/async/intercept_run_async6_test.dart |
index ae42ed5120f5fc321cee3b924e33605c2df1a892..255c90b339b2efb0d1d95c42b6e2df2c7fcd1bdd 100644 |
--- a/tests/lib/async/intercept_run_async6_test.dart |
+++ b/tests/lib/async/intercept_run_async6_test.dart |
@@ -13,7 +13,7 @@ var events = []; |
body() { |
events.add("body entry"); |
- runAsync(() { |
+ scheduleMicrotask(() { |
events.add("run async body"); |
throw "foo"; |
}); |
@@ -22,7 +22,7 @@ body() { |
onAsyncHandler(fun) { |
events.add("async handler"); |
- runAsync(fun); |
+ scheduleMicrotask(fun); |
events.add("async handler done"); |
} |
@@ -40,7 +40,7 @@ main() { |
// Test that runZonedExperimental works when async, error and done are used. |
var result = runZonedExperimental( |
body, |
- onRunAsync: onAsyncHandler, |
+ onScheduleMicrotask: onAsyncHandler, |
onError: onErrorHandler, |
onDone: onDoneHandler); |
events.add("after"); |