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

Unified Diff: test/stream_completer_test.dart

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 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 | « test/result_test.dart ('k') | test/stream_queue_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/stream_completer_test.dart
diff --git a/test/stream_completer_test.dart b/test/stream_completer_test.dart
index 76d81d1c3146dcc0d983cb9ab3ac5d6177df8d86..6eb5138cefb5f620206a70400b5cd365cd03580b 100644
--- a/test/stream_completer_test.dart
+++ b/test/stream_completer_test.dart
@@ -130,7 +130,7 @@ main() {
test("source stream isn't listened to until completer stream is", () async {
var completer = new StreamCompleter();
- var controller;
+ StreamController controller;
controller = new StreamController(onListen: () {
scheduleMicrotask(controller.close);
});
@@ -281,7 +281,7 @@ main() {
var completer = new StreamCompleter();
var controller = new StreamController();
var subscription = completer.stream.listen(null);
- var lastEvent = 0;
+ Object lastEvent = 0;
subscription.onData((value) => lastEvent = value);
subscription.onError((value) => lastEvent = "$value");
subscription.onDone(() => lastEvent = -1);
« no previous file with comments | « test/result_test.dart ('k') | test/stream_queue_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698