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

Unified Diff: pkg/path/test/url_test.dart

Issue 439223002: Add InternalStyle:rootLength to implement isAbsolute and rootPrefix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 6 years, 4 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
« pkg/path/lib/src/style/url.dart ('K') | « pkg/path/lib/src/style/windows.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/test/url_test.dart
diff --git a/pkg/path/test/url_test.dart b/pkg/path/test/url_test.dart
index 27691d8523c82ea370b3a58d2a68c91dae92de06..d75377e52807bce1da9ab90a3a2f8952d2c2a165 100644
--- a/pkg/path/test/url_test.dart
+++ b/pkg/path/test/url_test.dart
@@ -37,6 +37,7 @@ main() {
expect(context.rootPrefix('http://dartlang.org'), 'http://dartlang.org');
expect(context.rootPrefix('file://'), 'file://');
expect(context.rootPrefix('/'), '/');
+ expect(context.rootPrefix('foo/bar://'), '');
});
test('dirname', () {
« pkg/path/lib/src/style/url.dart ('K') | « pkg/path/lib/src/style/windows.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698