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

Unified Diff: utils/tests/pub/path/path_posix_test.dart

Issue 11512011: Handle relative paths where the trailing directory has an extension. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix merge bug. Created 8 years 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 | « utils/pub/path.dart ('k') | utils/tests/pub/path/path_windows_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/path/path_posix_test.dart
diff --git a/utils/tests/pub/path/path_posix_test.dart b/utils/tests/pub/path/path_posix_test.dart
index f975194772b335a8a72494c9db31dc799b89cdf4..a34c32d57c2c2802e481b4a0c88cef8b52563a84 100644
--- a/utils/tests/pub/path/path_posix_test.dart
+++ b/utils/tests/pub/path/path_posix_test.dart
@@ -233,6 +233,11 @@ main() {
expect(r.relative('a/./b/../c.txt'), 'a/c.txt');
});
});
+
+ test('from a root with extension', () {
+ var r = new path.Builder(style: path.Style.posix, root: '/dir.ext');
+ expect(r.relative('/dir.ext/file'), 'file');
+ });
});
group('resolve', () {
« no previous file with comments | « utils/pub/path.dart ('k') | utils/tests/pub/path/path_windows_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698