diff options
| author | Igor Minar | 2010-09-25 15:29:48 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-09-26 23:54:31 -0700 |
| commit | 3eec8c1a517f8b93a5afd15b7f83b33c5df7e54b (patch) | |
| tree | 9d9574d2245257456966bb0d15853f8f0d620958 /test/angular-mocks.js | |
| parent | 9171a2b2b50d0a8217c98e0017a7d2a0a1a37380 (diff) | |
| download | angular.js-3eec8c1a517f8b93a5afd15b7f83b33c5df7e54b.tar.bz2 | |
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
Diffstat (limited to 'test/angular-mocks.js')
| -rw-r--r-- | test/angular-mocks.js | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |
