Index: tests/language/map_test.dart |
diff --git a/tests/language/map_test.dart b/tests/language/map_test.dart |
index 70de2c4b7b0084a8d0ccab71ac20a415720ef9da..3968cf8a0efde68a371bf8ff4d9fb1174029b841 100644 |
--- a/tests/language/map_test.dart |
+++ b/tests/language/map_test.dart |
@@ -154,11 +154,11 @@ class MapTest { |
other_map.clear(); |
Expect.equals(0, other_map.length); |
- // Test Collection.getKeys. |
+ // Test Collection.keys. |
void testForEachCollection(value) { |
other_map[value] = value; |
} |
- Collection keys = map.getKeys(); |
+ Collection keys = map.keys; |
keys.forEach(testForEachCollection); |
Expect.equals(true, other_map.containsKey(key1)); |
Expect.equals(true, other_map.containsKey(key2)); |
@@ -172,8 +172,8 @@ class MapTest { |
other_map.clear(); |
Expect.equals(0, other_map.length); |
- // Test Collection.getValues. |
- Collection values = map.getValues(); |
+ // Test Collection.values. |
+ Collection values = map.values; |
values.forEach(testForEachCollection); |
Expect.equals(true, !other_map.containsKey(key1)); |
Expect.equals(true, !other_map.containsKey(key2)); |
@@ -200,9 +200,9 @@ class MapTest { |
static testKeys(Map map) { |
map[1] = 101; |
map[2] = 102; |
- Collection k = map.getKeys(); |
+ Collection k = map.keys; |
Expect.equals(2, k.length); |
- Collection v = map.getValues(); |
+ Collection v = map.values; |
Expect.equals(2, v.length); |
Expect.equals(true, map.containsValue(101)); |
Expect.equals(true, map.containsValue(102)); |