Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: tests/compiler/dart2js/metadata_test.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698