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

Unified Diff: tests/compiler/dart2js/mock_compiler.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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 3b99f1365f005262b084179ed598544923b9dc04..0437bfbfd57fd9c3fc39f5d4d198bef2cbfa6427 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -256,8 +256,8 @@ class MockCompiler extends Compiler {
libraryLoader.importLibrary(interceptorsLibrary, coreLibrary, null);
libraryLoader.importLibrary(isolateHelperLibrary, coreLibrary, null);
- assertMethod = jsHelperLibrary.find(buildSourceString('assertHelper'));
- identicalFunction = coreLibrary.find(buildSourceString('identical'));
+ assertMethod = jsHelperLibrary.find('assertHelper');
+ identicalFunction = coreLibrary.find('identical');
mainApp = mockLibrary(this, "");
initializeSpecialClasses();
@@ -386,7 +386,7 @@ class MockCompiler extends Compiler {
resolverVisitor() {
Element mockElement =
- new ElementX(buildSourceString(''), ElementKind.FUNCTION,
+ new ElementX('', ElementKind.FUNCTION,
mainApp.entryCompilationUnit);
ngeoffray 2013/10/18 10:19:37 Fits in one line?
lukas 2013/10/24 16:48:36 Done.
ResolverVisitor visitor =
new ResolverVisitor(this, mockElement,
@@ -497,7 +497,7 @@ api.DiagnosticHandler createHandler(MockCompiler compiler, String text) {
return (uri, int begin, int end, String message, kind) {
SourceFile sourceFile;
if (uri == null) {
- sourceFile = new SourceFile('analysis', text);
+ sourceFile = new StringSourceFile('analysis', text);
} else {
sourceFile = compiler.sourceFiles[uri.toString()];
}

Powered by Google App Engine
This is Rietveld 408576698