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

Unified Diff: tests/corelib/map_from_test.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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/linked_hash_map_test.dart ('k') | tests/corelib/map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/map_from_test.dart
diff --git a/tests/corelib/map_from_test.dart b/tests/corelib/map_from_test.dart
index 457021413be42f8804d4c4dff6183f606e6f6b0f..00d1a606fac37435e68edcf635e873b51eb75443 100644
--- a/tests/corelib/map_from_test.dart
+++ b/tests/corelib/map_from_test.dart
@@ -16,8 +16,8 @@ testWithConstMap() {
Expect.isTrue(otherMap is !LinkedHashMap);
Expect.equals(2, otherMap.length);
- Expect.equals(2, otherMap.getKeys().length);
- Expect.equals(2, otherMap.getValues().length);
+ Expect.equals(2, otherMap.keys.length);
+ Expect.equals(2, otherMap.values.length);
var count = (map) {
int count = 0;
@@ -37,8 +37,8 @@ testWithNonConstMap() {
Expect.isTrue(otherMap is !LinkedHashMap);
Expect.equals(2, otherMap.length);
- Expect.equals(2, otherMap.getKeys().length);
- Expect.equals(2, otherMap.getValues().length);
+ Expect.equals(2, otherMap.keys.length);
+ Expect.equals(2, otherMap.values.length);
int count(map) {
int count = 0;
@@ -53,15 +53,15 @@ testWithNonConstMap() {
map['c'] = 44;
Expect.equals(3, map.length);
Expect.equals(2, otherMap.length);
- Expect.equals(2, otherMap.getKeys().length);
- Expect.equals(2, otherMap.getValues().length);
+ Expect.equals(2, otherMap.keys.length);
+ Expect.equals(2, otherMap.values.length);
// Test that adding to otherMap does not change the original map.
otherMap['c'] = 44;
Expect.equals(3, map.length);
Expect.equals(3, otherMap.length);
- Expect.equals(3, otherMap.getKeys().length);
- Expect.equals(3, otherMap.getValues().length);
+ Expect.equals(3, otherMap.keys.length);
+ Expect.equals(3, otherMap.values.length);
}
testWithLinkedMap() {
@@ -71,7 +71,7 @@ testWithLinkedMap() {
Expect.isTrue(otherMap is HashMap);
Expect.isTrue(otherMap is LinkedHashMap);
var i = 1;
- for (var val in map.getValues()) {
+ for (var val in map.values) {
Expect.equals(i++, val);
}
}
« no previous file with comments | « tests/corelib/linked_hash_map_test.dart ('k') | tests/corelib/map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698