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

Unified Diff: tests/lib/async/catch_errors6_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/async/catch_errors6_test.dart
diff --git a/tests/lib/async/catch_errors6_test.dart b/tests/lib/async/catch_errors6_test.dart
index 58c4f742a4a3b3f4c787493fbff03a4dab0eddf3..48f6c305d21d6a4a69e47599f50afb324d3bd40b 100644
--- a/tests/lib/async/catch_errors6_test.dart
+++ b/tests/lib/async/catch_errors6_test.dart
@@ -13,15 +13,16 @@ main() {
var errorHandlerOrDoneHasBeenExecuted = false;
// Test that `catchErrors` doesn't shut down if a future is never completed.
catchErrors(() {
- completer.future.then((x) { Expect.fail("should not be executed"); });
- }).listen((x) {
- errorHandlerOrDoneHasBeenExecuted = true;
- Expect.fail("should not be executed (listen)");
- },
- onDone: () {
- errorHandlerOrDoneHasBeenExecuted = true;
- Expect.fail("should not be executed (onDone)");
+ completer.future.then((x) {
+ Expect.fail("should not be executed");
});
+ }).listen((x) {
+ errorHandlerOrDoneHasBeenExecuted = true;
+ Expect.fail("should not be executed (listen)");
+ }, onDone: () {
+ errorHandlerOrDoneHasBeenExecuted = true;
+ Expect.fail("should not be executed (onDone)");
+ });
Timer.run(() {
Expect.isFalse(errorHandlerOrDoneHasBeenExecuted);
asyncEnd();

Powered by Google App Engine
This is Rietveld 408576698