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

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

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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/print_test.dart ('k') | tests/lib/async/run_zoned9_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/run_zoned6_test.dart
diff --git a/tests/lib/async/run_zoned6_test.dart b/tests/lib/async/run_zoned6_test.dart
index 35f4d9b3657c73490c768b1ecf5464ca40b09a0f..491a9391166b6d736d876637a785e5765db0fe54 100644
--- a/tests/lib/async/run_zoned6_test.dart
+++ b/tests/lib/async/run_zoned6_test.dart
@@ -11,16 +11,17 @@ main() {
// Ensure that `runZoned`'s onError handles synchronous errors but delegates
// to the top-level when the handler returns false.
try {
- runZoned(() { throw 0; },
- onError: (e) {
- Expect.equals(0, e);
+ runZoned(() {
+ throw 0;
+ }, onError: (e) {
+ Expect.equals(0, e);
if (false) //# 01: runtime error
- asyncEnd();
+ asyncEnd();
throw e; //# 01: runtime error
- });
+ });
} catch (e) {
// We should never see an error here.
if (false) //# 01: continued
- rethrow;
+ rethrow;
}
}
« no previous file with comments | « tests/lib/async/print_test.dart ('k') | tests/lib/async/run_zoned9_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698