aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
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
2011-01-20null and other falsy values should not be rendered in the viewIgor Minar
Closes #242
2011-01-19fix ng:include issue introduced by a5eb3ed1Igor Minar
2011-01-19add ng:view widgetIgor Minar
2011-01-19$route should create child scope via $newIgor Minar
2011-01-18improved dump function to atomatically render HTMLMisko Hevery
2011-01-14support compilation in HTML widgetsMisko Hevery
2011-01-14fixed select with ng:formatMisko Hevery
select (one/multiple) could not chose from a list of objects, since DOM requires string ids. Solved by adding index formatter, which exposed incorrect handling of formatters in select widgets.
2011-01-13significant rewrite of the $location serviceIgor Minar
- don't update browser before and after eval instead - sync location properties before eval - sync location properties and update browser after eval - added tests - symplified the code - removed $location.toString() because it was not idempotent and useless This resolves the issue with issuing two $route.onHashChange calls when the $location was updated with a hashPath that needs to be encoded
2011-01-13fix for angular.Object.equals to handle equals({},null)Igor Minar
2011-01-10Fixed filter.date, so it parses format ending with non-replaced stringVojta Jina
Closes #159
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-10fix onhashchange tests for IEIgor Minar
2011-01-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView
2011-01-07$location service should utilize onhashchange events instead of pollingIgor Minar
2011-01-07use toMatch in widgetSpecIgor Minar
2011-01-07Revert "Issue #51: Update extensionMap()"Igor Minar
This reverts commit 00ca67e4befffed00ecee81bd1ce903fe01f542a. Now that we don't have published services, we don't need to worryi about this any more and in fact this behavior is confusing because to override a service that has dependencies with a services with no dependencies one must specify $inject:[] or else the old dependencies will be injected. Conflicts: src/Angular.js test/AngularSpec.js
2011-01-06removed dissabled tests which are now outdatedMisko Hevery
2011-01-06converted last of tests to specsMisko Hevery
2011-01-04rename scope.$inject to scope.$serviceIgor Minar
see changelog diff for more info
2011-01-04renaming service property $creation to $eagerIgor Minar
see changelog diff for more info
2011-01-04removing support for 'eager-published' servicesIgor Minar
2011-01-04Remove many eager-publish services, lazy pollingMisko Hevery
- Browser now starts the poller on first call to addPollFn() - Many services ($location, $cookies, $router) are no longer eager-publish. The result is that unless someone needs the $cookies, they will not cause the Browser to start polling for them.
2010-12-23fixing invalid json strings in ResourceSpecIgor Minar
2010-12-22fromJson delegation to native JSON parser if availableIgor Minar
- native parser delegation - $xhr change to use native parser
2010-12-22Revert "Refactor lexer to use regular expressions"Igor Minar
We came across a major performance regression due to this change. I'm reverting it until we find a better solution. This reverts commit 23fc73081feb640164615930b36ef185c23a3526.
2010-12-11Stricter JSON parsing, for securityMisko Hevery
2010-12-11Closes #153: input widgets without name are ignoredMisko Hevery
2010-12-11Fire $eval only if the value has actually changed on inputMisko Hevery
2010-12-10$defer service should always call $eval after callback finishedIgor Minar
Closes #189
2010-12-08Refactor lexer to use regular expressionsMisko Hevery
2010-12-08Remove RegExp parserMisko Hevery
- RegExp parser is rearly used, feature, and one should not have RegExps in views anyways, so we are removing it BACKWARD INCOMPATIBLE CHANGE!!!
2010-12-08Fixed failed assignments of form abj[0].name=valueMisko Hevery
Closes #169
2010-12-06fixing lint warnings in older codeIgor Minar