From c283bf6035566aa8ff3178676a133de6878b5d1b Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 8 Nov 2011 20:42:16 -0800 Subject: refactor($location): merged $locationConfig service into $locationProvider --- test/service/locationSpec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test') 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('
'); attrs = attrs ? ' ' + attrs + ' ' : ''; link = jqLite('' + content + '')[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('!'); }; } -- cgit v1.2.3