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

Unified Diff: tests/compiler/dart2js/compiler_helper.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/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index 3e76675778fe8a8b0938e5f0536cc9f8f0adc06f..64ef7278d1fc243c307b89b5ce34774fc9c066e7 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -62,7 +62,7 @@ String compile(String code, {String entry: 'main',
interceptorsSource: interceptorsSource,
enableMinification: minify);
compiler.parseScript(code);
- lego.Element element = compiler.mainApp.find(buildSourceString(entry));
+ lego.Element element = compiler.mainApp.find(entry);
if (element == null) return null;
compiler.phase = Compiler.PHASE_RESOLVING;
compiler.backend.enqueueHelpers(compiler.enqueuer.resolution,
@@ -89,7 +89,8 @@ MockCompiler compilerFor(String code, Uri uri,
analyzeAll: analyzeAll,
analyzeOnly: analyzeOnly,
coreSource: coreSource);
- compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code);
+ compiler.sourceFiles[uri.toString()] =
+ new StringSourceFile(uri.toString(), code);
return compiler;
}
@@ -132,14 +133,14 @@ Future compileSources(Map<String, String> sources,
}
lego.Element findElement(compiler, String name) {
- var element = compiler.mainApp.find(buildSourceString(name));
+ var element = compiler.mainApp.find(name);
Expect.isNotNull(element, 'Could not locate $name.');
return element;
}
types.TypeMask findTypeMask(compiler, String name,
[String how = 'nonNullExact']) {
- var sourceName = buildSourceString(name);
+ var sourceName = name;
var element = compiler.mainApp.find(sourceName);
if (element == null) {
element = compiler.interceptorsLibrary.find(sourceName);

Powered by Google App Engine
This is Rietveld 408576698