Index: tests/compiler/dart2js/compiler_test.dart |
diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart |
index 83902ad4f8e77e53c92a77d70247a8620c0ccbfd..0b2631c7420babdd3111662ccf441b958a7a6fa2 100644 |
--- a/tests/compiler/dart2js/compiler_test.dart |
+++ b/tests/compiler/dart2js/compiler_test.dart |
@@ -39,7 +39,7 @@ testErrorHandling() { |
CallbackMockCompiler compiler = new CallbackMockCompiler(); |
ResolverVisitor visitor = compiler.resolverVisitor(); |
compiler.parseScript('NoSuchPrefix.NoSuchType foo() {}'); |
- FunctionElement foo = compiler.mainApp.find(buildSourceString('foo')); |
+ FunctionElement foo = compiler.mainApp.find('foo'); |
compiler.setOnWarning( |
(c, n, m) => Expect.equals(foo, compiler.currentElement)); |
foo.computeType(compiler); |