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

Unified Diff: tests/lib_strong/async/stream_iterator_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/stream_iterator_test.dart
diff --git a/tests/lib_strong/async/stream_iterator_test.dart b/tests/lib_strong/async/stream_iterator_test.dart
index bbd7f719ed5b8d2eacb051a4293592918ae06a2b..5a35d8de2e0b789c315a25ce69c4c8ffa481caec 100644
--- a/tests/lib_strong/async/stream_iterator_test.dart
+++ b/tests/lib_strong/async/stream_iterator_test.dart
@@ -39,8 +39,8 @@ main() {
expect(await iterator.moveNext(), isTrue);
expect(iterator.current, 42);
var hasNext = iterator.moveNext();
- expect(hasNext, throwsA("BAD")); // This is an async expectation,
- await hasNext.catchError((_){}); // so we have to wait for the future too.
+ expect(hasNext, throwsA("BAD")); // This is an async expectation,
+ await hasNext.catchError((_) {}); // so we have to wait for the future too.
expect(iterator.current, isNull);
expect(await iterator.moveNext(), isFalse);
expect(iterator.current, isNull);
@@ -63,13 +63,12 @@ main() {
expect(await iterator.moveNext(), isTrue);
expect(iterator.current, i);
}
- var hasNext = iterator.moveNext(); // active moveNext will be completed.
+ var hasNext = iterator.moveNext(); // active moveNext will be completed.
var cancel = iterator.cancel();
expect(cancel, throwsA("BAD"));
expect(await hasNext, isFalse);
- expect(await iterator.moveNext(), isFalse);
+ expect(await iterator.moveNext(), isFalse);
});
-
}
Stream createStream() async* {

Powered by Google App Engine
This is Rietveld 408576698