Index: tests/compiler/dart2js/simple_inferrer_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_test.dart b/tests/compiler/dart2js/simple_inferrer_test.dart |
index 879f8194d65a2756a65504151ac2d988b4c42953..93d2737eb33c52e32b954ee7a6328430025bed91 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_test.dart |
@@ -793,7 +793,7 @@ void main() { |
checkReturnInClass(String className, String methodName, type) { |
var cls = findElement(compiler, className); |
- var element = cls.lookupLocalMember(buildSourceString(methodName)); |
+ var element = cls.lookupLocalMember(methodName); |
Expect.equals(type, |
typesInferrer.getReturnTypeOfElement(element).simplify(compiler)); |
} |
@@ -818,7 +818,7 @@ void main() { |
checkFactoryConstructor(String className, String factoryName) { |
var cls = findElement(compiler, className); |
- var element = cls.localLookup(buildSourceString(factoryName)); |
+ var element = cls.localLookup(factoryName); |
Expect.equals(new TypeMask.nonNullExact(cls), |
typesInferrer.getReturnTypeOfElement(element)); |
} |