aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-mocks.js
AgeCommit message (Collapse)Author
2011-06-06yet another docs batchIgor Minar
2011-06-06api doc fixes from kenIgor Minar
2011-06-02Fix unit test in IE7Vojta Jina
2011-03-15fixing broken angular-mocks.jsIgor Minar
2011-03-11Added XSRF prevention logic to $xhr serviceMisko Hevery
2011-02-06fix how redirection is handled and testedIgor Minar
2011-02-04fix typo in $browser mockIgor Minar
Closes #260
2011-02-04mock $log: fixed bug, added some testsVojta Jina
I extracted mock $log factory into stand alone function, so we can access it and test, because this service is rewritten by real service during testing, so we can't access it through angular.$service('$log')...
2011-02-04mock's .xhr.flush() should throw exception when there is nothing to flushIgor Minar
2011-02-01changed the documentation @example to use <doc:example>Misko Hevery
2011-02-01$browser poller should notify $location only once per url changeIgor Minar
2011-01-26fix for stupid IE handling of named functions in mocksIgor Minar
2011-01-26split mocks and create $log and $exceptionHandler mocksIgor Minar
- split mocks between angular-mocks.js and mocks.js - src/angular-mocks.js now contains only mocks that we want to ship - test/mocks.js contains mocks that we use internally for testing angular - created angular.mock namespace - created public $exceptionHandler mock rethrows errors - created public $log mock stores all logs messages in an array that can be accessed to make assertions - internally we now have factory to create $exceptionHandler that we can assert on - internally we also keep track of all messages logged and fail tests if messages were not expected and cleaned up (checked via global beforeEach and afterEach) - updated RakeFile and docs reader.js to point to the new angular-mocks.js location - made real $exceptionHandler and $log factories accessible from tests and simplified their specs - fixed typos in several spec descriptions - added log assertions throughout the test suite