aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/locationSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-08 20:42:16 -0800
committerMisko Hevery2011-11-14 20:31:15 -0800
commitc283bf6035566aa8ff3178676a133de6878b5d1b (patch)
tree7840abc149b6b056a76ac5016756fed32e6364ab /test/service/locationSpec.js
parentb3c17f3fdcf37403c5fb71f9916983a10e17c783 (diff)
downloadangular.js-c283bf6035566aa8ff3178676a133de6878b5d1b.tar.bz2
refactor($location): merged $locationConfig service into $locationProvider
Diffstat (limited to 'test/service/locationSpec.js')
-rw-r--r--test/service/locationSpec.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/service/locationSpec.js b/test/service/locationSpec.js
index 65ca36a7..30c3f790 100644
--- a/test/service/locationSpec.js
+++ b/test/service/locationSpec.js
@@ -308,8 +308,9 @@ describe('$location', function() {
function initService(html5Mode, hashPrefix, supportHistory) {
- return function($provide){
- $provide.value('$locationConfig', {html5Mode: html5Mode, hashPrefix: hashPrefix});
+ return function($provide, $locationProvider){
+ $locationProvider.html5Mode(html5Mode);
+ $locationProvider.hashPrefix(hashPrefix);
$provide.value('$sniffer', {history: supportHistory});
};
}
@@ -576,7 +577,7 @@ describe('$location', function() {
var root, link, originalBrowser, lastEventPreventDefault;
function configureService(linkHref, html5Mode, supportHist, attrs, content) {
- return function($provide){
+ return function($provide, $locationProvider){
var jqRoot = jqLite('<div></div>');
attrs = attrs ? ' ' + attrs + ' ' : '';
link = jqLite('<a href="' + linkHref + '"' + attrs + '>' + content + '</a>')[0];
@@ -586,7 +587,8 @@ describe('$location', function() {
$provide.value('$document', jqRoot);
$provide.value('$sniffer', {history: supportHist});
- $provide.value('$locationConfig', {html5Mode: html5Mode, hashPrefix: '!'});
+ $locationProvider.html5Mode(html5Mode);
+ $locationProvider.hashPrefix('!');
};
}