Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: tests/lib/mirrors/library_uri_io_test.dart

Issue 23035004: Fix Windows bugs in r26181 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/compiler/create_snapshot.dart » ('j') | utils/compiler/create_snapshot.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
}
« no previous file with comments | « no previous file | utils/compiler/create_snapshot.dart » ('j') | utils/compiler/create_snapshot.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698