aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/locationSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/locationSpec.js')
-rw-r--r--test/ng/locationSpec.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js
index abd99585..ad565772 100644
--- a/test/ng/locationSpec.js
+++ b/test/ng/locationSpec.js
@@ -34,7 +34,6 @@ describe('$location', function() {
};
}));
-
afterEach(inject(function ($sniffer) {
if ($sniffer.msie) return;
//reset urlParsingNode
@@ -50,6 +49,14 @@ describe('$location', function() {
expect(url.path()).toBe('/foo');
});
+
+
+ it('should include the drive name if it was provided in the input url', function () {
+ url = new LocationHashbangUrl('file:///base', '#!');
+ url.$$parse('file:///base#!/C:/foo?a=b&c#hash');
+
+ expect(url.path()).toBe('/C:/foo');
+ });
});