aboutsummaryrefslogtreecommitdiffstats
path: root/test/ResourceSpec.js
AgeCommit message (Collapse)Author
2011-09-27fix($resource): action defaults should override resource defaultsMarcello Nuccio
defaults definned per action should take precedence over defaults defined for the whole resource. This is potentialy a BREAKING CHANGE in case someone relied on the buggy behavior.
2011-08-19feat($xhr,$resource): expose response headers in callbacksKarl Seamon
all $xhr*, $resource and related mocks now have access to headers from their callbacks
2011-08-19fix($resource): properly call error callback when resource is called with ↵Karl Seamon
two arguments
2011-07-27feat($xhr): add custom error callback to $xhr, $xhr.cache, $xhr.bulk, $resourceKarl Seamon
Closes #408
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-05-31Rename deprecated wasCalled() -> toHaveBeenCalled() in all specsVojta Jina
As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith()
2011-04-04correct $resource's success callback executionIgor Minar
succcess callbacks should be executed for status codes in the range of <200,300).
2011-03-31encode query params correctly but not too agressivelyIgor Minar
2011-03-30remove weird spaces from resource mutation testIgor Minar
2011-03-29Don't mutate resource if server responded with no bodyAnthony Lieuallen
If the server provides response with no body to a resource request, resource should not mutate the resource model in the callback.
2011-03-28encode $resource query params using encodeURIComponentIgor Minar
2011-03-28Added missing semi-colonsVojta Jina
So that my eclipse stops complaining...
2011-03-01linking function should return bound scopeIgor Minar
angular.compile()() returns {scope:scope, view:view}, this isn't useful at all and only makes tests more verbose. Instead, this change makes the linking function return scope directly and if anyone needs the linked dom there are two ways to do it documented in angular.compile. other changes: - moved angular.compile docs to the compiler so that they are closer to the compiler - fixed some typos and updated angular.compile docs with the new return value
2011-02-17resources should not over-encode chars in url pathIgor Minar
- added encodeUriSegment that properly encodes only those chars that URI RFC requires us to encode - modified Resource to use encodeUriSegment
2011-02-16Change API angular.compile(element)([scope], [element/true])Misko Hevery
2011-02-10$resource should encode url params with encodeURIComponentIgor Minar
2011-01-04rename scope.$inject to scope.$serviceIgor Minar
see changelog diff for more info
2010-12-23fixing invalid json strings in ResourceSpecIgor Minar
2010-12-06add $browser.defer and $defer service and fix async xhr cache issueIgor Minar
- Closes #152 ($resource().query() sometimes calls callback before returning, and it shouldn't) - add $browser.defer method - add $defer service - integrate $browser.defer with outstandingRequests counter in $browser - fix all old tests that relied on buggy behavior
2010-12-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-10-12Introduced injector and $new to scope, and injection into link methods and ↵Misko Hevery
controllers - added angular.injector(scope, services, instanceCache) which returns inject - inject method can return, instance, or call function which have $inject property - initialize services with $creation=[eager|eager-publish] this means that only some of the services are now globally accessible - upgraded $become on scope to use injector hence respect the $inject property for injection - $become should not be run multiple times and will most likely be removed in future version - added $new on scope to create a child scope - $inject is respected on constructor function - simplified scopes so that they no longer have separate __proto__ for parent, api, behavior and instance this should speed up execution since scope will now create one __proto__ chain per scope (not three). BACKWARD COMPATIBILITY WARNING: - services now need to have $inject instead of inject property for proper injection this breaks backward compatibility - not all services are now published into root scope (only: $location, $cookie, $window) - if you have widget/directive which uses services on scope (such as this.$xhr), you will now have to inject that service in (as it is not published on the root scope anymore)
2010-09-16Expose GET operations on resources as well. This allows us to readAlkis Evlogimenos
"partials". The pattern is demostrated in the unittest: Resource.query returns a list of "keys" to resources, which are partially defined. They have enough data to allow $get to fetch the whole gamout. Then $get fetches all the details of the resource.
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-08-10added additional testMisko Hevery
2010-07-22added jsonp to resourcesMisko Hevery
2010-07-13Removes silly test addition.Rob Spies
2010-07-13better naming for our verify cache scheme, and tests.Rob Spies
2010-06-22asdsadRob Spies
2010-06-22Merge http://github.com/angular/angular.js into angularRob Spies
Conflicts: .gitignore
2010-05-19added error handler to xhr requestsMisko Hevery
2010-05-07xhr bulk fixesMisko Hevery
2010-04-29added $xhr service with bulk and cache, hooked up $resourceMisko Hevery
2010-04-29fix isssue where the jasmine currentSpec does not get updated and hence ↵Misko Hevery
everything runs as last spec context.
2010-04-27resources now use browser mockMisko Hevery
2010-03-29dissabled a lot of tests, and made the core test set pass.Misko Hevery
2010-03-16make xhr just a methodAdam Abrons
2010-03-15resources, with bind()Adam Abrons
2010-03-15added resources; removed compiled codeMisko Hevery