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

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

Issue 23450011: Fix run_zoned6 and run_zoned9 test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 years, 4 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/run_zoned6_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/run_zoned9_test.dart
diff --git a/tests/lib/async/run_zoned9_test.dart b/tests/lib/async/run_zoned9_test.dart
index 5ba8de2d6fb0b6c66c4241146e4f693b64f31f6c..ab0f5ab17c0712fb6400aff5062e0cf7b653518d 100644
--- a/tests/lib/async/run_zoned9_test.dart
+++ b/tests/lib/async/run_zoned9_test.dart
@@ -22,12 +22,14 @@ main() {
}, onError: (e) {
Expect.equals(0, e);
Expect.isTrue(sawInnerHandler);
- asyncEnd();
+ // If we are waiting for an error, don't asyncEnd, but let it time out.
+ if (false) /// 01: runtime error
+ asyncEnd();
throw e; /// 01: runtime error
});
} catch (e) {
// We should never see an error here.
- if (true) /// 01: continued
+ if (false) /// 01: continued
rethrow;
}
}
« no previous file with comments | « tests/lib/async/run_zoned6_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698