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

Unified Diff: tests/language/compile_time_constant_a_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/html/utils.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_a_test.dart
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart
index 30dd6785ab4650609947c68d91fc5a5d026c9e50..1d32b374abb7d410496f5d7e1787d169ab7d7584 100644
--- a/tests/language/compile_time_constant_a_test.dart
+++ b/tests/language/compile_time_constant_a_test.dart
@@ -15,8 +15,8 @@ bool isUnsupportedError(o) => o is UnsupportedError;
main() {
Expect.equals(499, m1['a']);
Expect.equals(null, m1['b']);
- Expect.listEquals(['a'], m1.getKeys());
- Expect.listEquals([499], m1.getValues());
+ Expect.listEquals(['a'], m1.keys);
+ Expect.listEquals([499], m1.values);
Expect.isTrue(m1.containsKey('a'));
Expect.isFalse(m1.containsKey('toString'));
Expect.isTrue(m1.containsValue(499));
@@ -43,8 +43,8 @@ main() {
Expect.equals(499, m2['a']);
Expect.equals(42, m2['b']);
Expect.equals(null, m2['c']);
- Expect.listEquals(['a', 'b'], m2.getKeys());
- Expect.listEquals([499, 42], m2.getValues());
+ Expect.listEquals(['a', 'b'], m2.keys);
+ Expect.listEquals([499, 42], m2.values);
Expect.isTrue(m2.containsKey('a'));
Expect.isTrue(m2.containsKey('b'));
Expect.isFalse(m2.containsKey('toString'));
@@ -76,8 +76,8 @@ main() {
Expect.isTrue(m3['m1'] === m1);
Expect.isTrue(m3['m2'] === m2);
- Expect.listEquals(['z', 'a', 'm'], m4.getKeys());
- Expect.listEquals([9, 8, 7], m4.getValues());
+ Expect.listEquals(['z', 'a', 'm'], m4.keys);
+ Expect.listEquals([9, 8, 7], m4.values);
seenKeys = [];
seenValues = [];
m4.forEach((key, value) {
@@ -96,8 +96,8 @@ main() {
Expect.isTrue(m7.isEmpty);
Expect.equals(0, m7.length);
Expect.equals(null, m7['b']);
- Expect.listEquals([], m7.getKeys());
- Expect.listEquals([], m7.getValues());
+ Expect.listEquals([], m7.keys);
+ Expect.listEquals([], m7.values);
Expect.isFalse(m7.containsKey('a'));
Expect.isFalse(m7.containsKey('toString'));
Expect.isFalse(m7.containsValue(499));
« no previous file with comments | « tests/html/utils.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698