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

Unified Diff: tests/lib_strong/async/stream_periodic5_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_periodic5_test.dart
diff --git a/tests/lib_strong/async/stream_periodic5_test.dart b/tests/lib_strong/async/stream_periodic5_test.dart
index 46b685c53bc7cb356b21c3476fc4141c34e88e11..f961bd41e5c1e4d1e00256bf74343f13d62f1df2 100644
--- a/tests/lib_strong/async/stream_periodic5_test.dart
+++ b/tests/lib_strong/async/stream_periodic5_test.dart
@@ -18,8 +18,8 @@ watchMs(Stopwatch watch) {
main() {
test("stream-periodic4", () {
- Stream stream = new Stream.periodic(const Duration(milliseconds: 5),
- (x) => x);
+ Stream stream =
+ new Stream.periodic(const Duration(milliseconds: 5), (x) => x);
Stopwatch watch = new Stopwatch()..start();
var subscription;
subscription = stream.take(10).listen((i) {
@@ -28,7 +28,7 @@ main() {
if (i == 2) {
Stopwatch watch2 = new Stopwatch()..start();
// Busy wait.
- while (watch2.elapsedMilliseconds < 15) { }
+ while (watch2.elapsedMilliseconds < 15) {}
// Make sure the stream can be paused when it has overdue events.
// We just busy waited for 15ms, even though the stream is supposed to
// emit events every 5ms.
@@ -38,7 +38,7 @@ main() {
watch.start();
subscription.resume();
});
- }
- }, onDone: expectAsync(() { }));
+ }
+ }, onDone: expectAsync(() {}));
});
}

Powered by Google App Engine
This is Rietveld 408576698