aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-mocks.js
AgeCommit message (Collapse)Author
2012-03-09refactor($provide) Rename service -> providerVojta Jina
It registers a provider class, so this makes more sense. Breaks Rename $provide.service -> $provide.provider
2012-03-05docs(mock.inject): Fix the exampleVojta Jina
And explicitly say that you need to load your application modules that you wanna test.
2012-02-29fix(mock.TzDate): getDay() takes into account the timezone offsetStephane Bisson
2012-02-21feat($compile) add locals, isolate scope, transclusionMisko Hevery
2012-01-25add($compile): add compiler v2.0 - not connectedMisko Hevery
2012-01-25feature($exceptionHandler): $exceptionHandler now supports var_argsMisko Hevery
2012-01-17docs(*): various doc fixesIgor Minar
2012-01-16fix(e2e $httpBackend): use browser.defer instead of $deferIgor Minar
this is necessary to avoid $apply from within $apply situations
2012-01-13feat(module): add runtime blockMisko Hevery
2012-01-13style(*): small fixesIgor Minar
2012-01-13docs($http, $httpBackend): docs docs docsIgor Minar
2012-01-13fix($http): remove support for PATCH + better whenXXX, expectXXX apiIgor Minar
- there are too many unknowns about PATCH, so I'm dropping its support until we know that this is actually useful - expectGET, expectHEAD and expectJSON (and the same for whenXXX) should not require response data to be specified
2012-01-13style(mocks): remove console.logVojta Jina
2012-01-12docs(inject/module): add documentationMisko Hevery
2012-01-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
2012-01-11style(mock): make jslint and igor happierVojta Jina
2012-01-11refactor(mock.$httpBackend): split (e2e/unit testing version of $httpBackend ↵Vojta Jina
mock)
2012-01-11fix(mock.$httpBackend): resetExpectations should not create new arrayVojta Jina
2012-01-10feat(module): new module loaderMisko Hevery
2012-01-09fix($httpBackend): fix for jsonp requestsIgor Minar
2012-01-09chore($http): small $http fixesIgor Minar
2012-01-09feat($http): turn mock backend into a decorator + e2e testing supportIgor Minar
- provider -> decorator - autoflush + passThrough mode - fix noop -> angular.noop
2012-01-09feat($httpBackend): add expect/when shortcut methodsIgor Minar
2012-01-09fix($http): fix and cleanup $http and friendsIgor Minar
$http: - use promises internally - get rid of XhrFuture that was previously used internally - get rid of $browser.defer calls for async stuff (serving from cache), promises will take care of asynchronicity - fix transformation bugs (when caching requested + multiple request pending + error is returned) - get rid of native header parsing and instead just lazily parse the header string $httpBackend: - don't return raw/mock XMLHttpRequest object (we don't use it for anything anymore) - call the callback with response headers string mock $httpBackend: - unify response api for expect and when - call the callback with response headers string - changed the expect/when failure error message so that EXPECTED and GOT values are aligned Conflicts: src/service/http.js test/service/compilerSpec.js test/service/httpSpec.js
2012-01-09feat(browser.defer): flush should throw exception when queue is emptyIgor Minar
2011-12-01fix($httpBackend mock): getResponseHeader should be case insensitiveIgor Minar
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