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

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

Issue 46063010: Change dart:io Platform.script to return a Uri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 2 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 | « tests/compiler/dart2js/unneeded_part_js_test.dart ('k') | tests/standalone/coverage_test.dart » ('j') | no next file with comments »
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 7bc364462b545277e5bdb30f8bdb05d89f548c3a..c44ff1bad977a9814ca82f117c3a8592f61a6986 100644
--- a/tests/lib/mirrors/library_uri_io_test.dart
+++ b/tests/lib/mirrors/library_uri_io_test.dart
@@ -23,10 +23,7 @@ testLibraryUri(var value, Uri expectedUri) {
main() {
var mirrors = currentMirrorSystem();
test("Test current library uri", () {
- String appendSlash(String path) => path.endsWith('/') ? path : '$path/';
- Uri cwd =
- new Uri.file(appendSlash(new File('.').resolveSymbolicLinksSync()));
- Uri uri = cwd.resolveUri(new Uri.file(Platform.script));
+ Uri uri = Uri.base.resolveUri(Platform.script);
testLibraryUri(new Class(), uri);
});
}
« no previous file with comments | « tests/compiler/dart2js/unneeded_part_js_test.dart ('k') | tests/standalone/coverage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698