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

Unified Diff: tests/compiler/dart2js/resolver_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/compiler/dart2js/mock_compiler.dart ('k') | tests/corelib/core_runtime_types_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 7e9a5ed98791a9f351d57dbced25af6c6493ea0d..7393f584a5b3279d74c0eeab20210700c9aa0e6b 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -174,7 +174,7 @@ testThis() {
FunctionExpression function = funElement.parseNode(compiler);
visitor.visit(function.body);
Map mapping = map(visitor);
- List<Element> values = mapping.getValues();
+ List<Element> values = mapping.values;
Expect.equals(0, mapping.length);
Expect.equals(0, compiler.warnings.length);
@@ -232,7 +232,7 @@ testLocalsTwo() {
Expect.equals(0, scope.elements.length);
Expect.equals(2, map(visitor).length);
- List<Element> elements = map(visitor).getValues();
+ List<Element> elements = map(visitor).values;
Expect.notEquals(elements[0], elements[1]);
}
@@ -245,7 +245,7 @@ testLocalsThree() {
MethodScope scope = visitor.scope;
Expect.equals(0, scope.elements.length);
Expect.equals(3, map(visitor).length);
- List<Element> elements = map(visitor).getValues();
+ List<Element> elements = map(visitor).values;
Expect.equals(elements[0], elements[1]);
}
@@ -258,7 +258,7 @@ testLocalsFour() {
MethodScope scope = visitor.scope;
Expect.equals(0, scope.elements.length);
Expect.equals(2, map(visitor).length);
- List<Element> elements = map(visitor).getValues();
+ List<Element> elements = map(visitor).values;
Expect.notEquals(elements[0], elements[1]);
}
@@ -325,8 +325,8 @@ testFor() {
// Check that we have the expected nodes. This test relies on the mapping
// field to be a linked hash map (preserving insertion order).
Expect.isTrue(map(visitor) is LinkedHashMap);
- List<Node> nodes = map(visitor).getKeys();
- List<Element> elements = map(visitor).getValues();
+ List<Node> nodes = map(visitor).keys;
+ List<Element> elements = map(visitor).values;
// for (int i = 0; i < 10; i = i + 1) { i = 5; };
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/corelib/core_runtime_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698