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

Unified Diff: tests/lib/async/stream_state_nonzero_timer_test.dart

Issue 18915008: Let StreamSubscription.cancel return a Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mark failing tests. Created 7 years, 2 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
« no previous file with comments | « tests/lib/async/stream_controller_async_test.dart ('k') | tests/lib/async/stream_state_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_state_nonzero_timer_test.dart
diff --git a/tests/lib/async/stream_state_nonzero_timer_test.dart b/tests/lib/async/stream_state_nonzero_timer_test.dart
index af459b02e89481ed1144494f5ea1b96ead744f5d..34175dea8aa0de1ea32e432524a482e5d9f13b76 100644
--- a/tests/lib/async/stream_state_nonzero_timer_test.dart
+++ b/tests/lib/async/stream_state_nonzero_timer_test.dart
@@ -30,8 +30,8 @@ main() {
..expectResume(() { t.pause(); })
..expectPause(() { t.resume(); })
..expectResume(() { t.close(); })
- ..expectDone()
- ..expectCancel(t.terminate);
+ ..expectCancel()
+ ..expectDone(t.terminate);
t..listen()..add(42);
});
@@ -42,8 +42,8 @@ main() {
t.pause(new Future.delayed(ms5, () => null));
})
..expectPause()
- ..expectDone()
- ..expectCancel(t.terminate);
+ ..expectCancel()
+ ..expectDone(t.terminate);
// We are calling "close" while the controller is actually paused,
// and it will stay paused until the pending events are sent.
t..listen()..add(42)..close();
@@ -57,8 +57,8 @@ main() {
})
..expectPause()
..expectResume(t.close)
- ..expectDone()
- ..expectCancel(t.terminate);
+ ..expectCancel()
+ ..expectDone(t.terminate);
t..listen()..add(42);
});
@@ -75,8 +75,8 @@ main() {
..expectPause()
..expectData(43)
..expectResume(t.close)
- ..expectDone()
- ..expectCancel(t.terminate);
+ ..expectCancel()
+ ..expectDone(t.terminate);
t..listen()..add(42);
});
@@ -94,8 +94,8 @@ main() {
t.resume();
t.close();
})
- ..expectDone()
- ..expectCancel(t.terminate);
+ ..expectCancel()
+ ..expectDone(t.terminate);
t..listen()
..add(42);
});
« no previous file with comments | « tests/lib/async/stream_controller_async_test.dart ('k') | tests/lib/async/stream_state_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698