| Index: dart/tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| index 97bbadec3c2512056ff188628aa5989eb7a3e8b4..e1379387f7cab1210f845aa121724f9ada3f9a4a 100644
|
| --- a/dart/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -74,7 +74,7 @@ class MockCompiler extends Compiler {
|
| : warnings = [], errors = [],
|
| sourceFiles = new Map<String, SourceFile>(),
|
| super() {
|
| - Uri uri = new Uri(scheme: "source");
|
| + Uri uri = new Uri.fromComponents(scheme: "source");
|
| var script = new Script(uri, new MockFile(coreSource));
|
| coreLibrary = new LibraryElement(script);
|
| parseScript(coreSource, coreLibrary);
|
| @@ -199,7 +199,7 @@ void importLibrary(LibraryElement target, LibraryElement imported,
|
| }
|
|
|
| LibraryElement mockLibrary(Compiler compiler, String source) {
|
| - Uri uri = new Uri(scheme: "source");
|
| + Uri uri = new Uri.fromComponents(scheme: "source");
|
| var library = new LibraryElement(new Script(uri, new MockFile(source)));
|
| importLibrary(library, compiler.coreLibrary, compiler);
|
| return library;
|
|
|