Index: tests/compiler/dart2js/metadata_test.dart |
diff --git a/tests/compiler/dart2js/metadata_test.dart b/tests/compiler/dart2js/metadata_test.dart |
index 3f8426330fdac0fde7447e782a6d4b656c4887eb..f1bc8dadbb9ac080d9ebdc31ef5c6c0cc9cecf01 100644 |
--- a/tests/compiler/dart2js/metadata_test.dart |
+++ b/tests/compiler/dart2js/metadata_test.dart |
@@ -82,7 +82,7 @@ void checkAnnotation(String name, String declaration, |
Expect.equals(0, length(element.metadata)); |
element.ensureResolved(compiler); |
Expect.equals(0, length(element.metadata)); |
- element = element.lookupLocalMember(buildSourceString(name)); |
+ element = element.lookupLocalMember(name); |
Expect.equals(1, length(element.metadata)); |
PartialMetadataAnnotation annotation = element.metadata.head; |
annotation.ensureResolved(compiler); |
@@ -106,7 +106,7 @@ void checkAnnotation(String name, String declaration, |
Expect.equals(0, length(element.metadata)); |
element.ensureResolved(compiler); |
Expect.equals(0, length(element.metadata)); |
- element = element.lookupLocalMember(buildSourceString(name)); |
+ element = element.lookupLocalMember(name); |
Expect.equals(2, length(element.metadata)); |
PartialMetadataAnnotation annotation1 = element.metadata.head; |
PartialMetadataAnnotation annotation2 = element.metadata.tail.head; |