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

Unified Diff: tests/language/await_for_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_test.dart
diff --git a/tests/language/await_for_test.dart b/tests/language/await_for_test.dart
index 2fff1bc140a7ccfe86d37eaa4c7d3043dab72c5a..9e97e98b4e6942b68b97ac81d2440295ec3e767e 100644
--- a/tests/language/await_for_test.dart
+++ b/tests/language/await_for_test.dart
@@ -12,15 +12,14 @@ class Trace {
void record(x) {
trace += x.toString();
}
+
String toString() => trace;
}
-
Stream makeMeAStream() {
return timedCounter(5);
}
-
consumeOne(trace) async {
// Equivalent to await for (x in makeMeAStream()) { ... }
var s = makeMeAStream();
@@ -32,7 +31,6 @@ consumeOne(trace) async {
trace.record("X");
}
-
consumeTwo(trace) async {
await for (var x in makeMeAStream()) {
trace.record(x);
@@ -40,7 +38,6 @@ consumeTwo(trace) async {
trace.record("Y");
}
-
consumeNested(trace) async {
await for (var x in makeMeAStream()) {
trace.record(x);
@@ -76,7 +73,6 @@ Stream<int> errorOnCancelStream(int n) async* {
}
}
-
// Sanity-check that the errorOnCancelStream behaves as expected.
testErrorOnCancel() {
var stream = errorOnCancelStream(0);

Powered by Google App Engine
This is Rietveld 408576698