aboutsummaryrefslogtreecommitdiffstats
path: root/test/servicesSpec.js
AgeCommit message (Collapse)Author
2010-10-18Removed $location.cancel() method (and related test)Vojta Jina
2010-10-18Update $location API Close #62Vojta Jina
update(objOrString) updateHash(objOrString [, objOrString]) toString() cancel() Examples: $location.update('http://www.angularjs.org/path#path?a=b'); $location.update({port: 443, protocol: 'https'}); $location.updateHash('hashPath'); $location.updateHash({a: 'b'}); $location.updateHash('hashPath', {a: 'b'}); This commit was produced by squash of more commits, here are the old messages: - Change tests to use update() instead of parse(). - First implementation of update() method - Test for update() with object parameter - Add new tests for location, refactor location code - Add tests for updateHash() - Implement updateHash() - Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch... - Fixed other service tests, to use new $location.update() Added $location.cancel() method (with test) Added $location.parse() for back compatability Remove parse() method
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-10-13fix memory leak caused by leftbehind $invalidWidgets referencesIgor Minar
- ng:switch should not clean up $invalidWidgets - $invalidWidgets should be clean up after each eval - add missing docs
2010-09-29Differentiate between flags and empty keys in $location.hashSearchIgor Minar
* #foo?key=var&flag&emptyKey= should parse into {key:'val', flag: true, emptyKey: ''} * added docs and spec for parseKeyValue function
2010-09-27Reworked the cookie synchronization between cookie service, $browser and ↵Igor Minar
document.cookie. Now we finally correctly handle situations when browser refuses to set a cookie, due to storage quota or other (file:// protocol) limitations.
2010-09-26Properly initialize cookie service in order to preserve existing cookiesIgor Minar
- previously the poller initialized the cookie cache too late which was causing previously existing cookies to be deleted by cookie service - refactored the poller api so that the addPollFn returns the added fn - fixed older cookie service tests - removed "this.$onEval(PRIORITY_LAST, update);" because it is not needed
2010-09-23$cookies service refactoringIgor Minar
- remove obsolete code in tests - add warning logs when maximum cookie limits (as specified via RFC 2965) were reached - non-string values will now get dropped - after each update $cookies hash will reflect the actual state of browser cookies this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that - $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore
2010-09-23Rewrite session store service in object literal style and remove getAll ↵Igor Minar
method that is not used anywhere
2010-09-22Refactored the Browser:Misko Hevery
- change from using prototype to inner functions to help with better compression - removed watchers (url/cookie) and introduced a poller concept - moved the checking of URL and cookie into services which register with poolers Benefits: - Smaller minified file - can call $browser.poll() from tests to simulate polling - single place where setTimeout needs to be tested - More testable $browser
2010-09-14Fixed all trivial jslint violationsMisko Hevery
2010-09-14Adding cookie serviceMisko Hevery
- Browser.cookies() - MockBrowser - $cookie service - $sessionStore
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-07-30fix up the $location encodingMisko Hevery
2010-07-29refactored $location service so that it correctly updates under all conditionsMisko Hevery
2010-07-26add $exceptionHandler serviceMisko Hevery
2010-07-23fixed some of the IE bugsMisko Hevery
2010-07-20fix testMisko Hevery
2010-07-13changed remaining ng- to ng:Misko Hevery
2010-06-23wilford's changes to serve cached data and then fetch from server if needed ↵Shyam Seshadri
/ specified
2010-05-19fixed isNumber to angular.isNumber for mocks outside of angularMisko Hevery
2010-05-19added $log to console connectionMisko Hevery
2010-05-19added exception handling to $xhrMisko Hevery
2010-05-19added error handler to xhr requestsMisko Hevery
2010-05-13fix incorect parsing of url if it contains dash - characterMisko Hevery
2010-05-10Merge branch 'master' of github.com:angular/angular.jsMisko Hevery
2010-05-10lintMisko Hevery
2010-05-07xhr bulk fixesMisko Hevery
2010-04-30clear cache on non-getMisko 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-16lots of small fixesMisko Hevery
2010-04-15added $route serviceMisko Hevery
2010-04-12$invalid widget clear on switch changeMisko Hevery
2010-04-09various bug fixesMisko Hevery
2010-04-08tests pass jstd has issuesMisko Hevery
2010-04-08tests failing jstd to show coryMisko Hevery
2010-04-07added $invalidWidget serviceMisko Hevery
2010-04-05added ng:switch widgetMisko Hevery
2010-04-03browser is now injectable into the systemMisko Hevery
2010-04-03injection is now workingMisko Hevery
2010-04-02mergeMisko Hevery
2010-04-02widgets now work properlyMisko Hevery
2010-04-01work on $location and autobindMisko Hevery
2010-03-31started to add servicesMisko Hevery
2010-03-31started to add servicesMisko Hevery