aboutsummaryrefslogtreecommitdiffstats
path: root/test/ResourceSpec.js
AgeCommit message (Collapse)Author
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