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

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

Issue 26151002: Rename runAsync to scheduleMicrotask. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 7 years, 2 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/lib/async/intercept_run_async5_test.dart ('k') | tests/lib/async/run_async2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « tests/lib/async/intercept_run_async5_test.dart ('k') | tests/lib/async/run_async2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698