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

Unified Diff: tests/language_strong/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_strong/await_exceptions_test.dart
diff --git a/tests/language_strong/await_exceptions_test.dart b/tests/language_strong/await_exceptions_test.dart
index f1d39a199411fe5ab3001bc0f73b5e606d8a239c..c141edc5abc86ca95077ed3b42336af20d6885f2 100644
--- a/tests/language_strong/await_exceptions_test.dart
+++ b/tests/language_strong/await_exceptions_test.dart
@@ -33,7 +33,7 @@ test1_2() async {
try {
await test1_1();
} catch (e) {
- throw e+1;
+ throw e + 1;
}
}
@@ -91,8 +91,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