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

Unified Diff: test/observe_test_utils.dart

Issue 1838473002: fix observe package to be strong mode clean (Closed) Base URL: git@github.com:dart-lang/observe.git@master
Patch Set: Created 4 years, 9 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/observe_test.dart ('k') | test/path_observer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/observe_test_utils.dart
diff --git a/test/observe_test_utils.dart b/test/observe_test_utils.dart
index 46d1b4646492e921e9947f60e41935df9f9e6384..31f2e9d515ed7b921606061ed377e770f73839ba 100644
--- a/test/observe_test_utils.dart
+++ b/test/observe_test_utils.dart
@@ -42,8 +42,10 @@ newMicrotask(_) => new Future.value();
expectChanges(actual, expected, {reason}) =>
expect('$actual', '$expected', reason: reason);
-List getListChangeRecords(List changes, int index) => changes
- .where((c) => c.indexChanged(index)).toList();
+List<ListChangeRecord> getListChangeRecords(List changes, int index) =>
+ new List.from(changes.where((c) => c.indexChanged(index)));
-List getPropertyChangeRecords(List changes, Symbol property) => changes
- .where((c) => c is PropertyChangeRecord && c.name == property).toList();
+List<PropertyChangeRecord> getPropertyChangeRecords(
+ List changes, Symbol property) =>
+ new List.from(
+ changes.where((c) => c is PropertyChangeRecord && c.name == property));
« no previous file with comments | « test/observe_test.dart ('k') | test/path_observer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698