Index: tests/lib/mirrors/library_uri_io_test.dart |
diff --git a/tests/lib/mirrors/library_uri_io_test.dart b/tests/lib/mirrors/library_uri_io_test.dart |
index e23da244e0d2f299ac9f925c818348e3842f47d1..c7ff8519425c86e6ca624e4d3af88b17ad48b84f 100644 |
--- a/tests/lib/mirrors/library_uri_io_test.dart |
+++ b/tests/lib/mirrors/library_uri_io_test.dart |
@@ -24,10 +24,8 @@ main() { |
var mirrors = currentMirrorSystem(); |
test("Test current library uri", () { |
String appendSlash(String path) => path.endsWith('/') ? path : '$path/'; |
- Uri cwd = new Uri( |
- scheme: 'file', |
- path: appendSlash(new File('.').fullPathSync())); |
- Uri uri = cwd.resolve(Platform.script); |
+ Uri cwd = new Uri.file(appendSlash(new File('.').fullPathSync())); |
+ Uri uri = cwd.resolveUri(new Uri.file(Platform.script)); |
testLibraryUri(new Class(), uri); |
}); |
} |