From d0270d92568e1b7c762b42a0ee0712b65d9acc5c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 8 Dec 2010 16:52:08 -0800 Subject: Remove many eager-publish services, lazy polling - Browser now starts the poller on first call to addPollFn() - Many services ($location, $cookies, $router) are no longer eager-publish. The result is that unless someone needs the $cookies, they will not cause the Browser to start polling for them. --- test/ScenarioSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ScenarioSpec.js') diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js index 4a8b5e69..ec016635 100644 --- a/test/ScenarioSpec.js +++ b/test/ScenarioSpec.js @@ -42,7 +42,7 @@ describe("ScenarioSpec: Compilation", function(){ it("should have $ objects", function(){ scope = compile('
', {$config: {a:"b"}}); - expect(scope.$get('$location')).toBeDefined(); + expect(scope.$inject('$location')).toBeDefined(); expect(scope.$get('$eval')).toBeDefined(); expect(scope.$get('$config')).toBeDefined(); expect(scope.$get('$config.a')).toEqual("b"); @@ -53,7 +53,7 @@ describe("ScenarioSpec: Compilation", function(){ it("should take location object", function(){ var url = "http://server/#?book=moby"; scope = compile("
{{$location}}
"); - var $location = scope.$location; + var $location = scope.$inject('$location'); var $browser = scope.$inject('$browser'); expect($location.hashSearch.book).toBeUndefined(); $browser.setUrl(url); -- cgit v1.2.3