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

Unified Diff: runtime/tests/vm/dart/isolate_mirror_local_test.dart

Issue 11664006: Make Map.keys/values Iterables. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Add TODO that map.keys should return a Set. Created 7 years, 12 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 | « runtime/lib/immutable_map.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/isolate_mirror_local_test.dart
diff --git a/runtime/tests/vm/dart/isolate_mirror_local_test.dart b/runtime/tests/vm/dart/isolate_mirror_local_test.dart
index 65e4a2665c0e310c62f461ae8c1968c80f5b0a66..26bc3ddf50e590ed1c36a9e8c2a2a2b78632a7a0 100644
--- a/runtime/tests/vm/dart/isolate_mirror_local_test.dart
+++ b/runtime/tests/vm/dart/isolate_mirror_local_test.dart
@@ -126,7 +126,7 @@ void testRootLibraryMirror(LibraryMirror lib_mirror) {
});
// Check that the members map is complete.
- List keys = lib_mirror.members.keys;
+ List keys = lib_mirror.members.keys.toList();
sort(keys);
Expect.equals('['
'FuncType, '
@@ -163,7 +163,7 @@ void testRootLibraryMirror(LibraryMirror lib_mirror) {
'$keys');
// Check that the classes map is complete.
- keys = lib_mirror.classes.keys;
+ keys = lib_mirror.classes.keys.toList();
sort(keys);
Expect.equals('['
'FuncType, '
@@ -175,7 +175,7 @@ void testRootLibraryMirror(LibraryMirror lib_mirror) {
'$keys');
// Check that the functions map is complete.
- keys = lib_mirror.functions.keys;
+ keys = lib_mirror.functions.keys.toList();
sort(keys);
Expect.equals('['
'_stringCompare, '
@@ -201,17 +201,17 @@ void testRootLibraryMirror(LibraryMirror lib_mirror) {
'$keys');
// Check that the getters map is complete.
- keys = lib_mirror.getters.keys;
+ keys = lib_mirror.getters.keys.toList();
sort(keys);
Expect.equals('[myVar]', '$keys');
// Check that the setters map is complete.
- keys = lib_mirror.setters.keys;
+ keys = lib_mirror.setters.keys.toList();
sort(keys);
Expect.equals('[myVar=]', '$keys');
// Check that the variables map is complete.
- keys = lib_mirror.variables.keys;
+ keys = lib_mirror.variables.keys.toList();
sort(keys);
Expect.equals('['
'exit_port, '
« no previous file with comments | « runtime/lib/immutable_map.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698