From 7974e7eb5f3821b77691819683f9aa37f3c37473 Mon Sep 17 00:00:00 2001 From: DiPeng Date: Fri, 24 Jun 2011 12:26:44 -0700 Subject: refactor($browser): hide startPoll and poll methods Breaks $browser.poll() method is moved inline to $browser.startpoll() Breaks $browser.startpoll() method is made private Refactor tests to reflect updated browser API Closes #387 --- test/scenario/ApplicationSpec.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/scenario') diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js index 1cab11ec..8c31726f 100644 --- a/test/scenario/ApplicationSpec.js +++ b/test/scenario/ApplicationSpec.js @@ -121,9 +121,6 @@ describe('angular.scenario.Application', function() { }; testWindow.angular.service.$browser = function() { return { - poll: function() { - polled = true; - }, notifyWhenNoOutstandingRequests: function(fn) { handlers.push(fn); } @@ -137,7 +134,6 @@ describe('angular.scenario.Application', function() { expect($document).toBeDefined(); expect($document[0].className).toEqual('test-foo'); }); - expect(polled).toBeTruthy(); expect(handlers.length).toEqual(1); handlers[0](); }); -- cgit v1.2.3