Index: tests/compiler/dart2js/patch_test.dart |
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart |
index 01d606c414b91bf03198e9fad2166dfc7fa09923..64f7f5858745e9c8ec2a104b86cc68c106593081 100644 |
--- a/tests/compiler/dart2js/patch_test.dart |
+++ b/tests/compiler/dart2js/patch_test.dart |
@@ -872,7 +872,7 @@ testPatchAndSelector() { |
// Check that a method just in the patch class is a target for a |
// typed selector. |
- Selector selector = new Selector.call('method', compiler.coreLibrary, 0); |
+ Selector selector = new Selector.call(const PublicName('method'), 0); |
TypeMask typeMask = new TypeMask.exact(cls, world); |
FunctionElement method = cls.implementation.lookupLocalMember('method'); |
method.computeType(compiler); |
@@ -881,7 +881,7 @@ testPatchAndSelector() { |
// Check that the declaration method in the declaration class is a target |
// for a typed selector. |
- selector = new Selector.call('clear', compiler.coreLibrary, 0); |
+ selector = new Selector.call(const PublicName('clear'), 0); |
typeMask = new TypeMask.exact(cls, world); |
method = cls.lookupLocalMember('clear'); |
method.computeType(compiler); |