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

Unified Diff: test/typed_wrapper/stream_test.dart

Issue 3002443002: dart-lang/async: Fix types in typed_wrapper/stream_test.dart
Patch Set: Created 3 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/typed_wrapper/stream_test.dart
diff --git a/test/typed_wrapper/stream_test.dart b/test/typed_wrapper/stream_test.dart
index 88fbee65cfc884d51476c5749fdaa80d6d49e03c..d6bb96ee84dd157cb6ccca30b1ac278645e23068 100644
--- a/test/typed_wrapper/stream_test.dart
+++ b/test/typed_wrapper/stream_test.dart
@@ -17,7 +17,7 @@ void main() {
var singleWrapper;
var errorWrapper;
setUp(() {
- controller = new StreamController<Object>()
+ controller = new StreamController<int>()
..add(1)
..add(2)
..add(3)
@@ -32,7 +32,7 @@ void main() {
singleWrapper =
new TypeSafeStream<int>(new Stream<Object>.fromIterable([1]));
errorWrapper = new TypeSafeStream<int>(
- new Stream<Object>.fromFuture(new Future.error("oh no")));
+ new Stream<int>.fromFuture(new Future.error("oh no")));
});
test("first", () {
@@ -115,7 +115,7 @@ void main() {
expect(
new TypeSafeStream<int>(
- new Stream<Object>.fromIterable([1, 1, 2, 2, 3, 3]))
+ new Stream<int>.fromIterable([1, 1, 2, 2, 3, 3]))
.distinct()
.toList(),
completion(equals([1, 2, 3])));
@@ -279,7 +279,7 @@ void main() {
expect(wrapper.toSet(), completion(unorderedEquals([1, 2, 3, 4, 5])));
expect(
new TypeSafeStream<int>(
- new Stream<Object>.fromIterable([1, 1, 2, 2, 3, 3])).toSet(),
+ new Stream<int>.fromIterable([1, 1, 2, 2, 3, 3])).toSet(),
completion(unorderedEquals([1, 2, 3])));
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698