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

Unified Diff: tests/lib/async/catch_errors2_test.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 | « tests/lib/async/catch_errors28_test.dart ('k') | tests/lib/async/catch_errors3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/catch_errors2_test.dart
diff --git a/tests/lib/async/catch_errors2_test.dart b/tests/lib/async/catch_errors2_test.dart
index 4c0d77c88de50e33022bc5b37bc65bbc42bed39b..bdc0c32d03301f97271be4848983b3c90a6934cd 100644
--- a/tests/lib/async/catch_errors2_test.dart
+++ b/tests/lib/async/catch_errors2_test.dart
@@ -10,10 +10,11 @@ import 'catch_errors.dart';
main() {
asyncStart();
bool futureWasExecuted = false;
- // Make sure that `catchErrors` only closes the error stream when the inner
- // futures are done.
+ Future done;
+
+ // Error streams never close.
catchErrors(() {
- new Future(() {
+ done = new Future(() {
futureWasExecuted = true;
});
return 'allDone';
@@ -21,7 +22,8 @@ main() {
Expect.fail("Unexpected callback");
},
onDone: () {
- Expect.isTrue(futureWasExecuted);
- asyncEnd();
+ Expect.fail("Unexpected callback");
});
+
+ done.whenComplete(asyncEnd);
}
« no previous file with comments | « tests/lib/async/catch_errors28_test.dart ('k') | tests/lib/async/catch_errors3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698