aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocksSpec.js
AgeCommit message (Collapse)Author
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-01-25feature($exceptionHandler): $exceptionHandler now supports var_argsMisko Hevery
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-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
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-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-30style(): get rid off some jsl warningsVojta Jina
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(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-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK moduleMisko 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(services): migrate angular.service -> moduleMisko Hevery
2011-11-14refactor(injector): turn scope into a serviceMisko Hevery
- turn scope into a $rootScope service. - injector is now a starting point for creating angular application. - added inject() method which wraps jasmine its/beforeEach/afterEach, and which allows configuration and injection of services. - refactor tests to use inject() where possible BREAK: - removed angular.scope() method
2011-10-11chore(formating): clean code to be function() {Misko Hevery
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-07-27style(): fix couple of missing semi-colonsVojta Jina
2011-07-20feat(filter.date): add support for default datetime formats in enDi Peng
- add support for full,long, medium, short datetime formats in en Breaks MMMMM. now we don't support MMMMM anymore as old implementation differs from Unicode Locale Data format we are following. - removed support for fullDateTime and fullTime as it means too much trouble with full timeZone names - added docs for the new features
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(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-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-08Added support for deferring callbacks in timeMisko Hevery
2011-06-08Fixed indentation errorMisko Hevery
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"
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')...
2010-11-08Support ISO 8601 extended datetime format troughout angular.Igor Minar
Support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined in EcmaScript 5 throughout angular. This means that the following apis switched from YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates: - angular.Date.toString - angular.String.toDate - JSON serialization and deserialization (used by json filter, $xhr and $resource)
2010-11-08TzDate should support various UTC methodsIgor Minar
2010-10-26adding missing angular-mocksSpec.js fileIgor Minar