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

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

Issue 23875032: Expose Zones. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mark stack trace test as failing. 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
Index: tests/lib/async/catch_errors_test.dart
diff --git a/tests/lib/async/catch_errors_test.dart b/tests/lib/async/catch_errors_test.dart
index f4e0eef4ad4edd8ea78700c3cd684d0188495bc1..adbe5ae0679b4d55609b27c715e4aed0b9e0ddc6 100644
--- a/tests/lib/async/catch_errors_test.dart
+++ b/tests/lib/async/catch_errors_test.dart
@@ -9,14 +9,12 @@ import 'catch_errors.dart';
main() {
asyncStart();
- // Make sure `catchErrors` shuts down the error stream when the synchronous
- // operation is done and there isn't any asynchronous pending callback.
+
+ // Make sure `catchErrors` does not execute the error callback.
catchErrors(() {
Lasse Reichstein Nielsen 2013/09/23 14:24:12 catchErrors uses runZonedExperimental. Could it b
floitsch 2013/09/23 17:12:07 Done.
return 'allDone';
- }).listen((x) {
- Expect.fail("Unexpected callback");
- },
- onDone: () {
- asyncEnd();
- });
+ }).listen((x) { Expect.fail("Unexpected callback"); });
+
+ // Wait one cycle before shutting down the test.
+ Timer.run(asyncEnd);
}

Powered by Google App Engine
This is Rietveld 408576698