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

Unified Diff: lib/core/expect.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 | « lib/compiler/implementation/types/concrete_types_inferrer.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/expect.dart
diff --git a/lib/core/expect.dart b/lib/core/expect.dart
index bdd24eb1f29ef28588d43bc4caff3f72b131a821..adf0604666f3101ab70c40f497ce1671d2d7be1d 100644
--- a/lib/core/expect.dart
+++ b/lib/core/expect.dart
@@ -131,7 +131,7 @@ class Expect {
String msg = _getMessage(reason);
// Make sure all of the values are present in both and match.
- for (final key in expected.getKeys()) {
+ for (final key in expected.keys) {
if (!actual.containsKey(key)) {
_fail('Expect.mapEquals(missing expected key: <$key>$msg) fails');
}
@@ -140,7 +140,7 @@ class Expect {
}
// Make sure the actual map doesn't have any extra keys.
- for (final key in actual.getKeys()) {
+ for (final key in actual.keys) {
if (!expected.containsKey(key)) {
_fail('Expect.mapEquals(unexpected key: <$key>$msg) fails');
}
« no previous file with comments | « lib/compiler/implementation/types/concrete_types_inferrer.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698