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

Unified Diff: tests/lib_strong/async/catch_errors12_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/catch_errors12_test.dart
diff --git a/tests/lib_strong/async/catch_errors12_test.dart b/tests/lib_strong/async/catch_errors12_test.dart
index 89528600a8addd2c95a24b7f8ae51a693e0fec15..fc42696db780e299deeb8275f4d3e1a297aab108 100644
--- a/tests/lib_strong/async/catch_errors12_test.dart
+++ b/tests/lib_strong/async/catch_errors12_test.dart
@@ -16,8 +16,12 @@ main() {
// Timers are still caught by `catchErrors`.
catchErrors(() {
events.add("catch error entry");
- Timer.run(() { throw "timer error"; });
- new Timer(const Duration(milliseconds: 100), () { throw "timer2 error"; });
+ Timer.run(() {
+ throw "timer error";
+ });
+ new Timer(const Duration(milliseconds: 100), () {
+ throw "timer2 error";
+ });
new Future.value(499).then((x) {
new Timer(const Duration(milliseconds: 200), () {
done.complete(499);
@@ -26,21 +30,21 @@ main() {
});
throw "catch error";
}).listen((x) {
- events.add(x);
- },
- onDone: () { Expect.fail("Unexpected callback"); });
+ events.add(x);
+ }, onDone: () {
+ Expect.fail("Unexpected callback");
+ });
done.future.whenComplete(() {
// Give time to execute the callbacks.
Timer.run(() {
Expect.listEquals([
- "catch error entry",
- "main exit",
- "catch error",
- "timer error",
- "timer2 error",
- 499,
- ],
- events);
+ "catch error entry",
+ "main exit",
+ "catch error",
+ "timer error",
+ "timer2 error",
+ 499,
+ ], events);
asyncEnd();
});
});

Powered by Google App Engine
This is Rietveld 408576698