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

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

Issue 23875032: Expose Zones. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 3 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 | « sdk/lib/async/zone.dart ('k') | tests/lib/async/catch_errors10_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/catch_errors.dart
diff --git a/tests/lib/async/catch_errors.dart b/tests/lib/async/catch_errors.dart
index c289690eb1741570891668144f9f222ab04e4b66..ec11859fd427758ea4ef141c6e135a0c855ff891 100644
--- a/tests/lib/async/catch_errors.dart
+++ b/tests/lib/async/catch_errors.dart
@@ -10,20 +10,10 @@ Stream catchErrors(void body()) {
return true;
}
- void onDone() {
- controller.close();
- }
-
void onListen() {
- runZonedExperimental(body, onError: onError, onDone: onDone);
+ runZoned(body, onError: onError);
}
controller = new StreamController(onListen: onListen);
return controller.stream;
}
-
-Future waitForCompletion(void body()) {
- Completer completer = new Completer.sync();
- runZonedExperimental(body, onDone: completer.complete);
- return completer.future;
-}
« no previous file with comments | « sdk/lib/async/zone.dart ('k') | tests/lib/async/catch_errors10_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698