Chromium Code Reviews| Index: tests/lib/async/stream_controller_async_test.dart |
| diff --git a/tests/lib/async/stream_controller_async_test.dart b/tests/lib/async/stream_controller_async_test.dart |
| index ecc647481b64b7939571cda8f06f9afdee317de5..3a2801642971261c3046dd971284fe006a693833 100644 |
| --- a/tests/lib/async/stream_controller_async_test.dart |
| +++ b/tests/lib/async/stream_controller_async_test.dart |
| @@ -664,15 +664,7 @@ void testSink({bool sync, bool broadcast, bool asBroadcast}) { |
| // the done event to the asBroadcastStream controller, which is |
|
floitsch
2013/10/16 11:02:04
comment doesn't seem relevant anymore.
Lasse Reichstein Nielsen
2013/10/16 11:27:47
It's still relevant, but I reworded it a little.
|
| // before the final listener gets the event. |
| // Wait for the pause to end before testing the events. |
| - dynamic executeWhenPauseIsDone(Function f) { |
| - if (!pauseIsDone) { |
| - return new Future.delayed(const Duration(milliseconds: 50), () { |
| - return executeWhenPauseIsDone(f); |
| - }); |
| - } |
| - return f(); |
| - } |
| - return executeWhenPauseIsDone(() { |
| + actual.onDone(() { |
| Expect.listEquals(expected.events, actual.events); |
| done(); |
| }); |