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

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

Issue 11111017: Re-land r13557 on behalf of Alexander. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/co19/co19-dart2js.status ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('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 01cd9124cd654b594b40f216b1a175b10f7442aa..fe4db71c5a6168489e11a351f36e1a5291dfda5e 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -8,6 +8,7 @@
#import("../../../lib/compiler/implementation/elements/elements.dart");
#import("../../../lib/compiler/implementation/tree/tree.dart");
#import("../../../lib/compiler/implementation/scanner/scannerlib.dart");
+#import("../../../lib/compiler/implementation/universe/universe.dart");
#import("../../../lib/compiler/implementation/util/util.dart");
#import("compiler_helper.dart");
#import("mock_compiler.dart");
@@ -563,7 +564,9 @@ resolveConstructor(String script, String statement, String className,
ClassElement classElement =
compiler.mainApp.find(buildSourceString(className));
Element element =
- classElement.lookupConstructor(buildSourceString(constructor));
+ classElement.lookupConstructor(
+ new Selector.callConstructor(buildSourceString(constructor),
+ classElement.getLibrary()));
FunctionExpression tree = element.parseNode(compiler);
ResolverVisitor visitor = new ResolverVisitor(compiler, element);
new InitializerResolver(visitor).resolveInitializers(element, tree);
@@ -663,7 +666,7 @@ testInitializers() {
A.a() : this.b(0);
A.b(int i);
}""";
- resolveConstructor(script, "A a = new A.a();", "A", r"A$a", 1,
+ resolveConstructor(script, "A a = new A.a();", "A", "a", 1,
[], []);
script = """class A {
@@ -671,7 +674,7 @@ testInitializers() {
A.a() : i = 42, this(0);
A(int i);
}""";
- resolveConstructor(script, "A a = new A.a();", "A", r"A$a", 2,
+ resolveConstructor(script, "A a = new A.a();", "A", "a", 2,
[], [MessageKind.REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER]);
script = """class A {
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698