Index: tests/compiler/dart2js/patch_test.dart |
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart |
index 1d337157b6a2c3ffb8d57762e5c838766ed395a0..3cf4b46c755fc4795a78db37fa566a3fb258d36c 100644 |
--- a/tests/compiler/dart2js/patch_test.dart |
+++ b/tests/compiler/dart2js/patch_test.dart |
@@ -9,12 +9,11 @@ import "../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart"; |
import "../../../sdk/lib/_internal/compiler/implementation/util/util.dart"; |
import "mock_compiler.dart"; |
import "parser_helper.dart"; |
-import "dart:uri"; |
Compiler applyPatch(String script, String patch) { |
String core = "$DEFAULT_CORELIB\n$script"; |
MockCompiler compiler = new MockCompiler(coreSource: core); |
- var uri = new Uri("core.dartp"); |
+ var uri = Uri.parse("core.dartp"); |
compiler.sourceFiles[uri.toString()] = new MockFile(patch); |
var handler = new LibraryDependencyHandler(compiler); |
compiler.patchParser.patchLibrary(handler, uri, compiler.coreLibrary); |