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

Unified Diff: tests/language/ordered_maps_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/language/optimized_lists_test.dart ('k') | tests/language/string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/ordered_maps_test.dart
diff --git a/tests/language/ordered_maps_test.dart b/tests/language/ordered_maps_test.dart
index ef0e8d923f1907e85cce99fd36fe81a2c1436bdd..e375877e85b9ae32ccb6b3442b0cf81c1a72a20c 100644
--- a/tests/language/ordered_maps_test.dart
+++ b/tests/language/ordered_maps_test.dart
@@ -13,22 +13,22 @@ class OrderedMapsTest {
static void testMaps(map1, map2, bool isConst) {
Expect.isFalse(identical(map1, map2));
- var keys = map1.keys;
+ var keys = map1.keys.toList();
Expect.equals(2, keys.length);
Expect.equals("a", keys[0]);
Expect.equals("c", keys[1]);
- keys = map2.keys;
+ keys = map2.keys.toList();
Expect.equals(2, keys.length);
Expect.equals("c", keys[0]);
Expect.equals("a", keys[1]);
- var values = map1.values;
+ var values = map1.values.toList();
Expect.equals(2, values.length);
Expect.equals(1, values[0]);
Expect.equals(2, values[1]);
- values = map2.values;
+ values = map2.values.toList();
Expect.equals(2, values.length);
Expect.equals(2, values[0]);
Expect.equals(1, values[1]);
@@ -38,36 +38,36 @@ class OrderedMapsTest {
map1["b"] = 3;
map2["b"] = 3;
- keys = map1.keys;
+ keys = map1.keys.toList();
Expect.equals(3, keys.length);
Expect.equals("a", keys[0]);
Expect.equals("c", keys[1]);
Expect.equals("b", keys[2]);
- keys = map2.keys;
+ keys = map2.keys.toList();
Expect.equals(3, keys.length);
Expect.equals("c", keys[0]);
Expect.equals("a", keys[1]);
Expect.equals("b", keys[2]);
- values = map1.values;
+ values = map1.values.toList();
Expect.equals(3, values.length);
Expect.equals(1, values[0]);
Expect.equals(2, values[1]);
Expect.equals(3, values[2]);
- values = map2.values;
+ values = map2.values.toList();
Expect.equals(3, values.length);
Expect.equals(2, values[0]);
Expect.equals(1, values[1]);
Expect.equals(3, values[2]);
map1["a"] = 4;
- keys = map1.keys;
+ keys = map1.keys.toList();
Expect.equals(3, keys.length);
Expect.equals("a", keys[0]);
- values = map1.values;
+ values = map1.values.toList();
Expect.equals(3, values.length);
Expect.equals(4, values[0]);
}
« no previous file with comments | « tests/language/optimized_lists_test.dart ('k') | tests/language/string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698