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); |