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

Unified Diff: tests/lib_strong/async/stack_trace19_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/lib_strong/async/stack_trace19_test.dart
diff --git a/tests/lib_strong/async/stack_trace19_test.dart b/tests/lib_strong/async/stack_trace19_test.dart
index 0e805ada7dd0d422787f86eba53cc4bbea417a82..74a6180890f9e7ca08a2306a0f2b55a8e915dd8a 100644
--- a/tests/lib_strong/async/stack_trace19_test.dart
+++ b/tests/lib_strong/async/stack_trace19_test.dart
@@ -19,21 +19,21 @@ main() {
StackTrace trace = captureStackTrace();
StackTrace whenCompleteStackTrace;
asyncStart();
- completer.future
- .whenComplete(() { throw "other_error"; })
- .then((_) { throw "should never be reached"; })
- .catchError((e, st) {
- Expect.equals("other_error", e);
- Expect.isNotNull(st);
- Expect.isFalse(identical(trace, st));
- whenCompleteStackTrace = st;
- // Test the rethrowing the same error keeps the stack trace.
- throw e;
- })
- .catchError((e, st) {
- Expect.equals("other_error", e);
- Expect.identical(whenCompleteStackTrace, st);
- asyncEnd();
- });
+ completer.future.whenComplete(() {
+ throw "other_error";
+ }).then((_) {
+ throw "should never be reached";
+ }).catchError((e, st) {
+ Expect.equals("other_error", e);
+ Expect.isNotNull(st);
+ Expect.isFalse(identical(trace, st));
+ whenCompleteStackTrace = st;
+ // Test the rethrowing the same error keeps the stack trace.
+ throw e;
+ }).catchError((e, st) {
+ Expect.equals("other_error", e);
+ Expect.identical(whenCompleteStackTrace, st);
+ asyncEnd();
+ });
completer.completeError("c-error", trace);
}

Powered by Google App Engine
This is Rietveld 408576698