| Index: tests/lib/async/stream_periodic5_test.dart
|
| diff --git a/tests/lib/async/stream_periodic5_test.dart b/tests/lib/async/stream_periodic5_test.dart
|
| index 46b685c53bc7cb356b21c3476fc4141c34e88e11..f961bd41e5c1e4d1e00256bf74343f13d62f1df2 100644
|
| --- a/tests/lib/async/stream_periodic5_test.dart
|
| +++ b/tests/lib/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(() {}));
|
| });
|
| }
|
|
|