From 3eec8c1a517f8b93a5afd15b7f83b33c5df7e54b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sat, 25 Sep 2010 15:29:48 -0700 Subject: Properly initialize cookie service in order to preserve existing cookies - previously the poller initialized the cookie cache too late which was causing previously existing cookies to be deleted by cookie service - refactored the poller api so that the addPollFn returns the added fn - fixed older cookie service tests - removed "this.$onEval(PRIORITY_LAST, update);" because it is not needed --- test/angular-mocks.js | 1 + 1 file changed, 1 insertion(+) (limited to 'test/angular-mocks.js') diff --git a/test/angular-mocks.js b/test/angular-mocks.js index 5b5c9863..b02fabaf 100644 --- a/test/angular-mocks.js +++ b/test/angular-mocks.js @@ -84,6 +84,7 @@ MockBrowser.prototype = { addPollFn: function(pollFn) { this.pollFns.push(pollFn); + return pollFn; }, hover: function(onHover) { -- cgit v1.2.3