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

Unified Diff: test/windows_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 | « test/url_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/windows_test.dart
diff --git a/test/windows_test.dart b/test/windows_test.dart
index 72eefc3fa9daf7b7b52dac8257008bedd0a05c14..1f5dc387de2af2a8348713fc7da3241b8b6dd670 100644
--- a/test/windows_test.dart
+++ b/test/windows_test.dart
@@ -539,11 +539,11 @@ main() {
test('from a relative root', () {
var r = new path.Context(style: path.Style.windows, current: r'foo\bar');
- expect(context.isWithin('.', r'a\b\c'), isTrue);
- expect(context.isWithin('.', r'..\a\b\c'), isFalse);
- expect(context.isWithin('.', r'..\..\a\foo\b\c'), isFalse);
- expect(context.isWithin(r'C:\', r'C:\baz\bang'), isTrue);
- expect(context.isWithin('.', r'C:\baz\bang'), isFalse);
+ expect(r.isWithin('.', r'a\b\c'), isTrue);
+ expect(r.isWithin('.', r'..\a\b\c'), isFalse);
+ expect(r.isWithin('.', r'..\..\a\foo\b\c'), isFalse);
+ expect(r.isWithin(r'C:\', r'C:\baz\bang'), isTrue);
+ expect(r.isWithin('.', r'C:\baz\bang'), isFalse);
});
});
« no previous file with comments | « test/url_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698