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

Unified Diff: tests/language/async_rethrow_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/async_rethrow_test.dart
diff --git a/tests/language/async_rethrow_test.dart b/tests/language/async_rethrow_test.dart
index 07120056adec8ae173bd4d24fe0b9dc9125c8ce9..9ed117c6ead847ad3aaeb23bb334072b2b9c96a6 100644
--- a/tests/language/async_rethrow_test.dart
+++ b/tests/language/async_rethrow_test.dart
@@ -27,18 +27,23 @@ rethrowString() async {
testThrow() {
Future f = throwString();
- f.then((v) { Expect.fail("Exception not thrown"); },
- onError: (e) { Expect.equals(exceptionString, e);});
+ f.then((v) {
+ Expect.fail("Exception not thrown");
+ }, onError: (e) {
+ Expect.equals(exceptionString, e);
+ });
}
-
testRethrow() {
Future f = rethrowString();
- f.then((v) { Expect.fail("Exception not thrown"); },
- onError: (e) { Expect.equals(exceptionString, e);});
+ f.then((v) {
+ Expect.fail("Exception not thrown");
+ }, onError: (e) {
+ Expect.equals(exceptionString, e);
+ });
}
main() {
testThrow();
testRethrow();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698