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

Unified Diff: pkg/analyzer/lib/src/generated/java_io.dart

Issue 479593002: Test for JavaFile.toURI(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/analyzer/lib/src/generated/java_io.dart
diff --git a/pkg/analyzer/lib/src/generated/java_io.dart b/pkg/analyzer/lib/src/generated/java_io.dart
index 245bd04fdc3be12ecff0c30f4e4a89a9c184d778..b2c95e1e9040fe67ca2b8994c7e457c636547da1 100644
--- a/pkg/analyzer/lib/src/generated/java_io.dart
+++ b/pkg/analyzer/lib/src/generated/java_io.dart
@@ -84,7 +84,11 @@ class JavaFile {
if (parent == null) return null;
return new JavaFile(parent);
}
- String getAbsolutePath() => pathos.absolute(_path);
+ String getAbsolutePath() {
+ String path = pathos.absolute(_path);
+ path = pathos.normalize(path);
+ return path;
+ }
String getCanonicalPath() {
try {
return _newFile().resolveSymbolicLinksSync();
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart ('k') | pkg/analyzer/test/generated/java_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698