diff options
Diffstat (limited to 'test/service/locationSpec.js')
| -rw-r--r-- | test/service/locationSpec.js | 10 |
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('!'); }; } |
