aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2011-03-02$xhr service now autodetects and strips )]}',\nIgor Minar
")]}\',\n" is a commonly used security prefix added to json http responses iat google and elsewhere in order to prevent certain cross-site attacks $xhr service now autodetects the prefix and strips it before deserializing the json. the implementation should be more flexible to allow for wider range of prefixes, but we need this one right now and can address other usecases later.
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-27adding an extra injector specIgor Minar
- added a spec for dependency graph resolution - also simplyfying cache presence check
2011-02-25Added delay parameter to the $defer serviceMisko Hevery
2011-02-25Corrected an issue where properties inherited from __proto__ show up in ↵Misko Hevery
ng:repeat. Closses #112
2011-02-22add class on any namespace elmentsMisko Hevery
2011-02-19correct hashchange event registration on windowMisko Hevery
2011-02-19fix test which fails on CI build, because the image has sizeMisko Hevery
2011-02-18Remove ng:watchMisko Hevery
Closes#143
2011-02-18replace smart-quotes with regular quotesMisko Hevery
2011-02-18Auto create $inject property form the argument names. Any arg starting with ↵Misko Hevery
$ or _ will be injected
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-16Changed the angular.compile(element)(scope[, cloneAttachNode])Misko Hevery
2011-02-16rewrite of JQuery lite implementation, which now better supports selected setsMisko Hevery
2011-02-16Change API angular.compile(element)([scope], [element/true])Misko Hevery
2011-02-16remove $init on scope from applying compilation templateMisko Hevery
Closes #40
2011-02-16Add public API to retrieve scope from element.Misko Hevery
2011-02-16allow jquery to be declared after angular in the script loading orderMisko 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-10$resource should encode url params with encodeURIComponentIgor Minar
2011-02-07add support for hashSearch redirection and custom redirection functionsIgor Minar
2011-02-07$route redirection should interpolate variablesIgor Minar
2011-02-07$location.updateHash should not preserve hashSearch when hashSearch is undefinedIgor Minar
2011-02-06fix how redirection is handled and testedIgor Minar
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')...
2011-02-04ng:view should be nestable in ng:includeIgor Minar
2011-02-04$route.onChange should return the registered fnIgor Minar
2011-02-04mock's .xhr.flush() should throw exception when there is nothing to flushIgor Minar
2011-02-04smarter normalization of value on option, and htmlParser fixesMisko Hevery
2011-02-03Fixed notifyWhenNoOutstandingRequests() when using JSONPMisko Hevery
2011-02-03fixed population of value attribute on optionMisko Hevery
The value attribute must be populated manually, since different browsers default to different value of option when not explicitly defined.
2011-02-03corrected typo in the dump function which was preventig serialization of objectsMisko Hevery
2011-02-01add support for $route.reload()Igor Minar
Closes 254
2011-02-01add $route.parent for setting parentScopeIgor Minar
2011-02-01add redirection support to $routeIgor Minar
Closes #217
2011-02-01fix $location to handle updates to empty hash wellIgor Minar
2011-02-01$browser poller should notify $location only once per url changeIgor Minar
2011-02-01add support for 404 handling via $route.otherwiseIgor Minar
Closes #217
2011-02-01adding spec for controller-less $route definitionsIgor Minar
2011-01-26fix for stupid IE handling of named functions in mocksIgor Minar
2011-01-26add missing test/mocks.jsIgor Minar
2011-01-26split mocks and create $log and $exceptionHandler mocksIgor Minar
- split mocks between angular-mocks.js and mocks.js - src/angular-mocks.js now contains only mocks that we want to ship - test/mocks.js contains mocks that we use internally for testing angular - created angular.mock namespace - created public $exceptionHandler mock rethrows errors - created public $log mock stores all logs messages in an array that can be accessed to make assertions - internally we now have factory to create $exceptionHandler that we can assert on - internally we also keep track of all messages logged and fail tests if messages were not expected and cleaned up (checked via global beforeEach and afterEach) - updated RakeFile and docs reader.js to point to the new angular-mocks.js location - made real $exceptionHandler and $log factories accessible from tests and simplified their specs - fixed typos in several spec descriptions - added log assertions throughout the test suite
2011-01-25compile but don't bind option elements nested in a nameless selectIgor Minar
otherwise an exception is thrown unexpectidly
2011-01-25Scope should retrieve $log and $exceptionHandler via $serviceIgor Minar
- fix $log and $exceptionHandler retrieval - remove reference to non-existent `error` handler - update tests
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-24ng:view should propagate evals to the current child scopeIgor Minar
- this change is needed because of previously reverted $route changes that used to propagate evals automatically. - also added docs to highlight how the eval propagation works
2011-01-24Revert "$route should create child scope via $new"Igor Minar
This reverts commit a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1. See 9ca2facb for reasoning.
2011-01-24Revert "fix ng:include issue introduced by a5eb3ed1"Igor Minar
This reverts commit 17ee0f031ac4a37bf9a1dc8c87ffac4bd164d1cc. this and a5eb3ed1 introduced scope leakage that can't be resolved until we fix up scope relationships and eval propagation. I'm reverting both this and a5eb3ed1 until we can properly address the issue.
2011-01-24fix for infinite loop in retrieveScope with jQuery + specsIgor Minar
- retrieveScope run into infinite loop if called on DOM tree that doesn't contain scope reference (happens only with jQuery) - added missing specs for retrieveScope function
2011-01-24$cookies service should not call $eval during $evalIgor Minar
- added comment - removed $eval call - changed the code to not require $eval - updated specs