aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-mocks.js
AgeCommit message (Collapse)Author
2011-11-30feat(dump): add support for arrays, functions, errorsIgor Minar
2011-11-30feat(mock.$httpBackend): say which request was expected when unexpected ↵Vojta Jina
request error
2011-11-30feat(mock.$httpBackend): verify expectations after flush()Vojta Jina
2011-11-30refactor(mock.$httpBackend): rename when().then() to when().respond()Vojta Jina
2011-11-30fix(mock.$httpBackend): flush() even requests sent during callbacksVojta Jina
2011-11-30feat(mock.$httpBackend): add verifyNoOutstandingRequest methodVojta Jina
+ rename verifyExpectations to verifyNoOutstandingExpectation
2011-11-30feat(mock.$httpBackend): throw when nothing to flush, dump data/headers when ↵Vojta Jina
expected different
2011-11-30feat($httpBackend): extract $browser.xhr into separate serviceVojta Jina
- remove whole $browser.xhr stuff - remove whole mock $browser.xhr stuff - add $httpBackend service + migrate unit tests from $browser - add temporary API to access $browser's outstandingRequests count
2011-11-30feat(mocks.$browser): add simple addJs() method into $browser mockVojta Jina
2011-11-30feat(mocks.$httpBackend): add $httpBackend mockVojta Jina
$httpBackend mock allows: - expecting (asserting) requests - stubbing (responding without asserting) Add empty $httpBackend service (currently just wrapper for $browser.xhr)
2011-11-30feat($browser): xhr returns raw request objectVojta Jina
2011-11-14refactor(injector): $injector is no longer a function.Misko Hevery
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK moduleMisko Hevery
2011-11-14chore(scenario tests): make scenario tests pass againMisko Hevery
2011-11-14refactor(angular): isDate / isArray test iframe independent fixMisko Hevery
2011-11-14refactor(mock): moved mocks into its own moduleMisko Hevery
2011-11-14refactor(json): break dependence on api.jsMisko Hevery
2011-11-14refactor($service): removed almost all references to scope.$serviceMisko Hevery
- still need to remove from factory
2011-11-14refactor(services): migrate angular.service -> moduleMisko Hevery
2011-10-22fix(defer.cancel): should return false instead of undefinedIgor Minar
2011-10-22feat($defer): add $defer.cancelIgor Minar
This functionality was previously available only as obscure $browser.defer.cancel. I also added docs and tests and fixed an issue in .defer.cancel mock.
2011-10-12docs(*): remove @workInProgress from everywhereIgor Minar
it's not useful any more and it only makes the docs look ugly
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11refactor(hover): delete hover serviceMisko Hevery
2011-09-16fix(angular-mocks): fix .defer.cancel when i=0Igor Minar
2011-09-16fix(angular-mocks): fix forEach -> angular.forEach in $browser.defer.cancelIgor Minar
2011-09-08feat($browser): add $browser.baseHref()Vojta Jina
This method abstracts <base href="" /> in document.head - returns the value. If absolute href set, it converts the href to relative.
2011-09-08feat($browser): jQuery style url method, onUrlChange eventVojta Jina
This is just basic implementation of $browser.url, $browser.onUrlChange methods: $browser.url() - returns current location.href $browser.url('/new') - set url to /new If supported, history.pushState is used, location.href property otherwise. $browser.url('/new', true) - replace current url with /new If supported, history.replaceState is used, location.replace otherwise. $browser.onUrlChange is only fired when url is changed from the browser: - user types into address bar - user clicks on back/forward button - user clicks on link It's not fired when url is changed using $browser.url() Breaks Removed $browser.setUrl(), $browser.getUrl(), use $browser.url() Breaks Removed $browser.onHashChange(), use $browser.onUrlChange()
2011-08-14break(date): remove support for 'long', 'longtime' date formats and 'z' flagIgor Minar
The support for the 'z' formatting flag was removed becase the timezone info can't be retrieved from the browser apis (except for en-US locale on some but not all browsers). For this reason we don't want to support this flag at all. Related to this, since the 'long' and 'longtime' datetime formats require the 'z' flag in the formatting string, we are removing support for this format as well.
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-07-27style(): fix couple of missing semi-colonsVojta Jina
2011-07-22chore(license): update license headers + add version numIgor Minar
- fixed copyright overnship - updated copyright years - added @license tag so that closure compiler preserves the header - added version number into headers (finally!)
2011-07-20feat(TzDate): add mock "toString" method to TzDate.Di Peng
- If the third param of TzDate constructor is defined, toStirng will just return this third parameter. Otherwise, toString will still be treated as unimplemented method
2011-07-18feat($browser.$defer.cancel): support canceling defered tasksIgor Minar
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-07-18fix(strict mode): fix all issues discovered by strict mode and unit/e2e testsIgor Minar
2011-07-18refactor($browser): hide startPoll and poll methodsDiPeng
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
2011-07-16doc(angular.mock.service.$browser): add xhr docsDi Peng
2011-07-01fix:exceptionHandler mock: should not specify dependenciesIgor Minar
also added a test for this mock service
2011-07-01fix:$browser mock: defer.flush() should flush all fnsIgor Minar
2011-06-23feat:filter.date: add day/month string format supportDi Peng
Support new date format, specifically day of week/Month of year in string e.g. {{ someDate | data:"EEE, MMM d, yyyy" }} -> "Wed, Jul 10, 2011" Closes #396
2011-06-08Added support for deferring callbacks in timeMisko Hevery
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