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

Unified Diff: test/posix_test.dart

Issue 837563005: fixed relative root tests (Closed) Base URL: https://github.com/dart-lang/path.git@master
Patch Set: Created 5 years, 11 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 | « pubspec.yaml ('k') | test/url_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/posix_test.dart
diff --git a/test/posix_test.dart b/test/posix_test.dart
index 5b6d131518d00f1816f21ab6c8b9d35fb7fe650c..e6aaba4e786a0f916e84e04190deee38e789825c 100644
--- a/test/posix_test.dart
+++ b/test/posix_test.dart
@@ -421,11 +421,11 @@ main() {
test('from a relative root', () {
var r = new path.Context(style: path.Style.posix, current: 'foo/bar');
- expect(context.isWithin('.', 'a/b/c'), isTrue);
- expect(context.isWithin('.', '../a/b/c'), isFalse);
- expect(context.isWithin('.', '../../a/foo/b/c'), isFalse);
- expect(context.isWithin('/', '/baz/bang'), isTrue);
- expect(context.isWithin('.', '/baz/bang'), isFalse);
+ expect(r.isWithin('.', 'a/b/c'), isTrue);
+ expect(r.isWithin('.', '../a/b/c'), isFalse);
+ expect(r.isWithin('.', '../../a/foo/b/c'), isFalse);
+ expect(r.isWithin('/', '/baz/bang'), isTrue);
+ expect(r.isWithin('.', '/baz/bang'), isFalse);
});
});
« no previous file with comments | « pubspec.yaml ('k') | test/url_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698