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

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

Issue 26151002: Rename runAsync to scheduleMicrotask. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix 80 chars lines 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
Index: tests/lib/async/catch_errors24_test.dart
diff --git a/tests/lib/async/catch_errors24_test.dart b/tests/lib/async/catch_errors24_test.dart
index 57a16e546e0e7d7c076534b31a5f433a34f4547f..e3958aa4a3536f48f4aebc277d1852f522425ed1 100644
--- a/tests/lib/async/catch_errors24_test.dart
+++ b/tests/lib/async/catch_errors24_test.dart
@@ -28,7 +28,7 @@ main() {
.transform(new StreamTransformer.fromHandlers(
handleError: (e, st, sink) => sink.add("error $e")))
.asBroadcastStream();
- runAsync(() {
+ scheduleMicrotask(() {
stream.listen((x) {
events.add("stream $x");
if (x == "error 2") done.complete(true);
@@ -37,7 +37,7 @@ main() {
}).listen((x) { events.add(x); })
.asFuture().then((_) { Expect.fail("Unexpected callback"); });
stream.listen((x) { events.add("stream2 $x"); });
- runAsync(() {
+ scheduleMicrotask(() {
controller.add(1);
// Errors are not allowed to traverse boundaries, but in this case the
// first listener of the broadcast stream is in the same error-zone. So

Powered by Google App Engine
This is Rietveld 408576698