Index: pkg/path/test/browser_test.dart |
diff --git a/pkg/path/test/browser_test.dart b/pkg/path/test/browser_test.dart |
index 072564697dc63c7bc482be9cebd7bf7440f24ed5..a6e8a68045581c1eeba2d4617e0e705716cd6d4c 100644 |
--- a/pkg/path/test/browser_test.dart |
+++ b/pkg/path/test/browser_test.dart |
@@ -14,7 +14,8 @@ main() { |
group('new Builder()', () { |
test('uses the window location if root and style are omitted', () { |
var builder = new path.Builder(); |
- expect(builder.root, window.location.href); |
+ expect(builder.root, |
+ Uri.parse(window.location.href).resolve('.').toString()); |
}); |
test('uses "." if root is omitted', () { |
@@ -33,6 +34,7 @@ main() { |
}); |
test('current', () { |
- expect(path.current, window.location.href); |
+ expect(path.current, |
+ Uri.parse(window.location.href).resolve('.').toString()); |
}); |
} |