aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
AgeCommit message (Collapse)Author
2011-11-14move(scope): appease the History GodMisko Hevery
- renamed: src/Scope.js -> src/service/scope.js - renamed: test/ScopeSpec.js -> test/service/scopeSpec.js
2011-10-31test(scope): infinite digest test should pass on all browsersIgor Minar
Different browsers print function body differently, and best of all IE doesn't have function.name property.
2011-10-31feat(scope): better logging of infinite digest errorIgor Minar
Feedback team has often problems debugging inifinite digest errors, this change should reveal info about what watchers are causing the infinite loop
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-09-01feat(scope): add listener deregistration fn for $watch and $onIgor Minar
- both $watch and $on now return a function which when called deregisters the listener - $removeListener was removed and replaced with the above - added more tests for $watch and $on Closes #542
2011-08-31fix(scope): fix edge case for $digest & $broadcast scope traversalIgor Minar
- fixed traversal originating on a scope with with a right sibling - unified code for both $broadcast and $digest
2011-08-24fix(events): fixing IE specific issuesIgor Minar
IE doesn't have Array#indexOf and [].splice.call doesn't work there either.
2011-08-24feat(scope): support for eventsIgor Minar
- register listeners with $on - remove listeners with $removeListener - fire event that bubbles to root with $emit - fire event that propagates to all child scopes with $broadcast
2011-08-14refactor(scope): non-recursive $digest methodMisko Hevery
2011-08-12feat(scope): $evalAsync supportMisko Hevery
2011-08-12refactor(scope): remove $flush/$observe ng:eval/ng:eval-orderMisko Hevery
2011-08-12fix(scope): rerun $digest from root, rather then per scope.Misko Hevery
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
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-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-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
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-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-11-16Changed error handling so that better stack traces are displayed in the ↵Misko Hevery
ng-errors
2010-11-11$watch should optionally skip listener execIgor Minar
- if initRun param is set to false, listener doesn't execute - the oldValue should equal newValue during the initial execution - added docs - added specs
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-21HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are ↵Misko Hevery
data bound (ie OPTION has repeater or OPTION.value is bound), then SELECT does not update to match the correct OPTION after the change in model (ie after the OPTION repeater unrolls or OPTION.value is changed.)
2010-08-10fix bug where $eval on undefined throws errorMisko Hevery
2010-07-26minor performance improvementsMisko Hevery
2010-07-23added buzz demo, fix undefined() -> undefinedMisko Hevery
2010-05-30added compiled getterFN for better performanceMisko Hevery
2010-05-13fixed issue with radio view clobering model if radio was checked.Misko Hevery
2010-04-15added $route serviceMisko Hevery
2010-04-07seperatio validation and exception handlingMisko Hevery
2010-04-05added ng:switch widgetMisko Hevery
2010-04-03injection is now workingMisko Hevery
2010-03-31started to add servicesMisko Hevery
2010-03-30more tests fixedMisko Hevery
2010-03-29reenabled more testsMisko Hevery
2010-03-26moved all uneeded files out, widgets.html works, tests horribly brokenMisko Hevery
2010-03-25added few extra testsMisko Hevery