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

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

Issue 12391059: Another test that cancels a timer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | 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 63a9e9d9c3d16ee96d1573bd4340eef29a4112ff..d05f9fa970eecd7968d672103f92b3f4a7d8c5f9 100644
--- a/tests/lib/async/stream_state_nonzero_timer_test.dart
+++ b/tests/lib/async/stream_state_nonzero_timer_test.dart
@@ -80,4 +80,24 @@ mainTest(bool broadcast) {
..expectSubscription(false, false);
t..subscribe()..add(42);
});
+
+ test("$p-pause-during-callback", () {
+ var t = new StreamProtocolTest(broadcast);
+ t..expectSubscription(true, false)
+ ..expectData(42, () {
+ t.pause();
+ })
+ ..expectPause(true, () {
+ t.resume();
+ })
+ ..expectPause(false, () {
+ t.pause();
+ t.resume();
+ t.close();
+ })
+ ..expectDone()
+ ..expectSubscription(false, false);
+ t..subscribe()
+ ..add(42);
+ });
}
« no previous file with comments | « no previous file | tests/lib/async/stream_state_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698