Chromium Code Reviews| 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()]; |
| } |