diff options
| author | Misko Hevery | 2011-11-08 20:42:16 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:15 -0800 |
| commit | c283bf6035566aa8ff3178676a133de6878b5d1b (patch) | |
| tree | 7840abc149b6b056a76ac5016756fed32e6364ab /test/service/locationSpec.js | |
| parent | b3c17f3fdcf37403c5fb71f9916983a10e17c783 (diff) | |
| download | angular.js-c283bf6035566aa8ff3178676a133de6878b5d1b.tar.bz2 | |
refactor($location): merged $locationConfig service into $locationProvider
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('!'); }; } |
