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

Unified Diff: tests/corelib/map_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tests/corelib/map_keys_test.dart ('k') | tests/corelib/map_values2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/map_test.dart
diff --git a/tests/corelib/map_test.dart b/tests/corelib/map_test.dart
index c7735e376850f04ea7a7a95ff2a15e3b436aba02..40cfab554bdbbe021d2c915b80b84b9426438159 100644
--- a/tests/corelib/map_test.dart
+++ b/tests/corelib/map_test.dart
@@ -152,7 +152,7 @@ class MapTest {
void testForEachCollection(value) {
other_map[value] = value;
}
- Collection keys = map.keys;
+ Iterable keys = map.keys;
keys.forEach(testForEachCollection);
Expect.equals(true, other_map.containsKey(key1));
Expect.equals(true, other_map.containsKey(key2));
@@ -167,7 +167,7 @@ class MapTest {
Expect.equals(0, other_map.length);
// Test Collection.values.
- Collection values = map.values;
+ Iterable values = map.values;
values.forEach(testForEachCollection);
Expect.equals(true, !other_map.containsKey(key1));
Expect.equals(true, !other_map.containsKey(key2));
@@ -211,7 +211,7 @@ class MapTest {
});
Expect.equals(6, sum);
- List values = m.keys;
+ List values = m.keys.toList();
Expect.equals(3, values.length);
String first = values[0];
String second = values[1];
« no previous file with comments | « tests/corelib/map_keys_test.dart ('k') | tests/corelib/map_values2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698