Index: tests/compiler/dart2js/patch_test.dart |
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart |
index c065efe5bfb4ad662be79e4a0b0b87e41c63e24d..05dca8926ddca4d466060bf797875f630f09c6b8 100644 |
--- a/tests/compiler/dart2js/patch_test.dart |
+++ b/tests/compiler/dart2js/patch_test.dart |
@@ -53,7 +53,7 @@ Element ensure(compiler, |
bool expectIsGetter: false, |
bool expectIsFound: true, |
bool expectIsRegular: false}) { |
- var element = lookup(buildSourceString(name)); |
+ var element = lookup(name); |
if (!expectIsFound) { |
Expect.isNull(element); |
return element; |
@@ -737,19 +737,19 @@ testPatchAndSelector() { |
// Check that a method just in the patch class is a target for a |
// typed selector. |
var selector = new Selector.call( |
- buildSourceString('method'), compiler.coreLibrary, 0); |
+ 'method', compiler.coreLibrary, 0); |
ngeoffray
2013/10/18 10:19:37
One line?
lukas
2013/10/24 16:48:36
Done.
|
var typedSelector = new TypedSelector.exact(cls, selector); |
Element method = |
- cls.implementation.lookupLocalMember(buildSourceString('method')); |
+ cls.implementation.lookupLocalMember('method'); |
ngeoffray
2013/10/18 10:19:37
ditto
lukas
2013/10/24 16:48:36
Done.
|
Expect.isTrue(selector.applies(method, compiler)); |
Expect.isTrue(typedSelector.applies(method, compiler)); |
// Check that the declaration method in the declaration class is a target |
// for a typed selector. |
selector = new Selector.call( |
- buildSourceString('clear'), compiler.coreLibrary, 0); |
+ 'clear', compiler.coreLibrary, 0); |
ngeoffray
2013/10/18 10:19:37
ditto
lukas
2013/10/24 16:48:36
Done.
|
typedSelector = new TypedSelector.exact(cls, selector); |
- method = cls.lookupLocalMember(buildSourceString('clear')); |
+ method = cls.lookupLocalMember('clear'); |
Expect.isTrue(selector.applies(method, compiler)); |
Expect.isTrue(typedSelector.applies(method, compiler)); |