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

Unified Diff: tests/compiler/dart2js/resolver_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
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index f6f87c5afd49da3538982ae50d1c8603bfb7f4ad..b3457a8e428d73fe78bae220c3554156e654f8ea 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.values;
+ List<Element> values = mapping.values.toList();
Expect.equals(0, mapping.length);
Expect.equals(0, compiler.warnings.length);
@@ -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).values;
+ List<Element> elements = map(visitor).values.toList();
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).values;
+ List<Element> elements = map(visitor).values.toList();
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).keys;
- List<Element> elements = map(visitor).values;
+ List<Node> nodes = map(visitor).keys.toList();
+ List<Element> elements = map(visitor).values.toList();
// for (int i = 0; i < 10; i = i + 1) { i = 5; };
« no previous file with comments | « tests/compiler/dart2js/pretty_parameter_test.dart ('k') | tests/compiler/dart2js/rewrite_better_user_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698