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

Unified Diff: tests/language/await_for_cancel_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/await_for_cancel_test.dart
diff --git a/tests/language/await_for_cancel_test.dart b/tests/language/await_for_cancel_test.dart
index 1374f4b22357d7d73177db63864a0b33f5600352..c308b4f5e23fe8e5f839978691ab30f13e9baf44 100644
--- a/tests/language/await_for_cancel_test.dart
+++ b/tests/language/await_for_cancel_test.dart
@@ -12,7 +12,8 @@ test1() async {
canceled = false;
try {
StreamController controller = infiniteStreamController();
- outer: while(true) {
+ outer:
+ while (true) {
await for (var x in controller.stream) {
for (int j = 0; j < 10; j++) {
if (j == 5) break outer;
@@ -29,7 +30,8 @@ test2() async {
try {
StreamController controller = infiniteStreamController();
bool first = true;
- outer: while(true) {
+ outer:
+ while (true) {
if (first) {
first = false;
} else {
@@ -58,7 +60,6 @@ main() {
});
}
-
// Create a stream that produces numbers [1, 2, ... ]
StreamController infiniteStreamController() {
StreamController controller;

Powered by Google App Engine
This is Rietveld 408576698