Index: test/url_test.dart |
diff --git a/test/url_test.dart b/test/url_test.dart |
index d75377e52807bce1da9ab90a3a2f8952d2c2a165..3f7e6feb215557d6a4aed571edf23cb295a1df14 100644 |
--- a/test/url_test.dart |
+++ b/test/url_test.dart |
@@ -639,13 +639,12 @@ main() { |
test('from a relative root', () { |
var r = new path.Context(style: path.Style.url, 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( |
- 'http://dartlang.org/', 'http://dartlang.org/baz/bang'), |
- isTrue); |
- expect(context.isWithin('.', 'http://dartlang.org/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( |
+ 'http://dartlang.org/', 'http://dartlang.org/baz/bang'), isTrue); |
+ expect(r.isWithin('.', 'http://dartlang.org/baz/bang'), isFalse); |
}); |
}); |