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

Unified Diff: tests/language/await_exceptions_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/language/await_exceptions_test.dart
diff --git a/tests/language/await_exceptions_test.dart b/tests/language/await_exceptions_test.dart
index 2b4223f11ca92f2e48ac91f1c32526780323ae32..8d597100811d68af2d626ff1e79c13089b9ef46e 100644
--- a/tests/language/await_exceptions_test.dart
+++ b/tests/language/await_exceptions_test.dart
@@ -34,7 +34,7 @@ test1_2() async {
try {
await test1_1();
} catch (e) {
- throw e+1;
+ throw e + 1;
}
}
@@ -92,8 +92,8 @@ awaitFoo() async {
main() {
asyncStart();
- test().then((_) => awaitFoo().then(
- (_) => Expect.fail("Should have thrown"),
+ test()
+ .then((_) => awaitFoo().then((_) => Expect.fail("Should have thrown"),
onError: (error) => Expect.equals("Error", error)))
.whenComplete(asyncEnd);
}

Powered by Google App Engine
This is Rietveld 408576698