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

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

Issue 19775015: Fixed bug in _ControllerStream.operator==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « sdk/lib/async/stream_controller.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_controller_test.dart
diff --git a/tests/lib/async/stream_controller_test.dart b/tests/lib/async/stream_controller_test.dart
index 3f2a48b1a18041ab5fd5b8fdf2224fc4d36379d3..8f1d26aa0da74db3b6a638ce0992892a4daee67a 100644
--- a/tests/lib/async/stream_controller_test.dart
+++ b/tests/lib/async/stream_controller_test.dart
@@ -416,9 +416,30 @@ void testClosed() {
Expect.isTrue(c.isClosed);
}
+void testStreamEquals() {
+ StreamController c;
+ c = new StreamController(sync: false);
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController(sync: true);
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController(sync: false, onListen:(){});
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController(sync: true, onListen:(){});
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController.broadcast(sync: false);
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController.broadcast(sync: true);
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController.broadcast(sync: false, onListen:(){});
+ Expect.equals(c.stream, c.stream);
+ c = new StreamController.broadcast(sync: true, onListen:(){});
floitsch 2013/07/19 11:47:40 maybe add test where it doesn't return true?
+ Expect.equals(c.stream, c.stream);
+}
+
main() {
testMultiController();
testSingleController();
testExtraMethods();
testClosed();
+ testStreamEquals();
}
« no previous file with comments | « sdk/lib/async/stream_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698