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

Unified Diff: test/relative_test.dart

Issue 937683002: Don't use 'current' if 'from' is not relative. (Closed) Base URL: https://github.com/dart-lang/path@master
Patch Set: Created 5 years, 10 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
« lib/src/context.dart ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/relative_test.dart
diff --git a/test/relative_test.dart b/test/relative_test.dart
index 4523c8d77dfdac0a1756c7384e31d31bac64b110..57a90463da5553badc8a9401b095b8f26823d79f 100644
--- a/test/relative_test.dart
+++ b/test/relative_test.dart
@@ -31,7 +31,7 @@ void relativeTest(path.Context context, String prefix) {
var isRelative = (context.current == '.');
// Cases where the arguments are absolute paths.
expectRelative(result, pathArg, fromArg) {
- expect(context.normalize(result), context.relative(pathArg, from: fromArg));
+ expect(context.relative(pathArg, from: fromArg), context.normalize(result));
}
expectRelative('c/d', '${prefix}a/b/c/d', '${prefix}a/b');
« lib/src/context.dart ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698