| Index: tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
|
| index 9129573db63d7384eb5ad4d70de648b81f3c8e8e..a7ce95091cdecf004dc68ba7dca8845534249f28 100644
|
| --- a/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -6,7 +6,6 @@ library mock_compiler;
|
|
|
| import "package:expect/expect.dart";
|
| import 'dart:collection';
|
| -import 'dart:uri';
|
|
|
| import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
|
| import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dart';
|
| @@ -244,7 +243,7 @@ class MockCompiler extends Compiler {
|
| * is fixed to export its top-level declarations.
|
| */
|
| LibraryElement createLibrary(String name, String source) {
|
| - Uri uri = new Uri.fromComponents(scheme: "dart", path: name);
|
| + Uri uri = new Uri(scheme: "dart", path: name);
|
| var script = new Script(uri, new MockFile(source));
|
| var library = new LibraryElementX(script);
|
| parseScript(source, library);
|
| @@ -399,7 +398,7 @@ void importLibrary(LibraryElement target, LibraryElement imported,
|
| }
|
|
|
| LibraryElement mockLibrary(Compiler compiler, String source) {
|
| - Uri uri = new Uri.fromComponents(scheme: "source");
|
| + Uri uri = new Uri(scheme: "source");
|
| var library = new LibraryElementX(new Script(uri, new MockFile(source)));
|
| importLibrary(library, compiler.coreLibrary, compiler);
|
| return library;
|
|
|