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

Unified Diff: tests/compiler/dart2js/patch_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/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));

Powered by Google App Engine
This is Rietveld 408576698