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

Unified Diff: dart/tests/compiler/dart2js/resolver_test.dart

Issue 11788016: Update dart2js unit tests to new library API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: No need to implement Iterable 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
« no previous file with comments | « dart/tests/compiler/dart2js/mirrors_test.dart ('k') | dart/tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/resolver_test.dart
diff --git a/dart/tests/compiler/dart2js/resolver_test.dart b/dart/tests/compiler/dart2js/resolver_test.dart
index b3457a8e428d73fe78bae220c3554156e654f8ea..610775d051a98edb843c5ef51130225d4d336784 100644
--- a/dart/tests/compiler/dart2js/resolver_test.dart
+++ b/dart/tests/compiler/dart2js/resolver_test.dart
@@ -84,7 +84,7 @@ testTypeVariables() {
VariableDefinitions definition = parseStatement(text);
visitor.visit(definition.type);
InterfaceType type = visitor.mapping.getType(definition.type);
- Expect.equals(definition.type.typeArguments.length(),
+ Expect.equals(definition.type.typeArguments.slowLength(),
length(type.typeArguments));
int index = 0;
Link<DartType> arguments = type.typeArguments;
@@ -232,7 +232,7 @@ testLocalsTwo() {
Expect.equals(0, scope.elements.length);
Expect.equals(2, map(visitor).length);
- List<Element> elements = map(visitor).values;
+ List<Element> elements = new List<Element>.from(map(visitor).values);
Expect.notEquals(elements[0], elements[1]);
}
« no previous file with comments | « dart/tests/compiler/dart2js/mirrors_test.dart ('k') | dart/tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698