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.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js
index b6efe783..f0d8eb96 100644
--- a/test/ng/locationSpec.js
+++ b/test/ng/locationSpec.js
@@ -610,6 +610,19 @@ describe('$location', function() {
}
);
});
+
+
+ it('should set appBase to serverBase if base[href] is missing', function() {
+ initService(true, '!', true);
+ inject(
+ initBrowser('http://domain.com/my/view1#anchor1', ''),
+ function($rootScope, $location, $browser) {
+ expect($browser.url()).toBe('http://domain.com/my/view1#anchor1');
+ expect($location.path()).toBe('/my/view1');
+ expect($location.hash()).toBe('anchor1');
+ }
+ );
+ });
});