aboutsummaryrefslogtreecommitdiffstats
path: root/test/auto
AgeCommit message (Collapse)Author
2014-03-05style: enable jscs requireLeftStickedOperators ruleTimothée Jeannin
Closed #6544.
2013-12-31test(injector): add missing test for #5577Igor Minar
Add a missing test for fix that was merged via #5577
2013-10-25style(injectorSpec): fix typo in "it" descriptionArun Israel
Closes #4483
2013-10-18fix($injector): allow a constructor function to return a functionVojta Jina
This change makes `$injector.instantiate` (and thus `$provide.service`) to behave the same as native `new` operator.
2013-10-07fix(*): protect calls to hasOwnProperty in public APIPeter Bacon Darwin
Objects received from outside AngularJS may have had their `hasOwnProperty` method overridden with something else. In cases where we can do this without incurring a performance penalty we call directly on Object.prototype.hasOwnProperty to ensure that we use the correct method. Also, we have some internal hash objects, where the keys for the map are provided from outside AngularJS. In such cases we either prevent `hasOwnProperty` from being used as a key or provide some other way of preventing our objects from having their `hasOwnProperty` overridden. BREAKING CHANGE: Inputs with name equal to "hasOwnProperty" are not allowed inside form or ngForm directives. Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added to the scope. Now a badname exception is thrown. Using "hasOwnProperty" for an input name would be very unusual and bad practice. Either do not include such an input in a `form` or `ngForm` directive or change the name of the input. Closes #3331
2013-10-07style(injectorSpec): add semicolons & test helpersPeter Bacon Darwin
2013-08-15feat(minerr): log minerr doc url in developmentKen Sheedlo
Closes #3566
2013-07-02fix($injector): refactor module loading code and use minErrIgor Minar
2013-06-17chore(minErr): replace ngError with minErrKen Sheedlo
2013-05-24feat(ngError): add error message compression and better error messagesIgor Minar
- add toThrowNg matcher
2013-05-02feat(injector): add has method for queryingMisko Hevery
Closes #2556
2012-12-01fix($injector): provider can now be defined in the array formatSudhir Jonathan
`injector.instantiate` is now called for arrays too, instead of only for functions. Closes #1452
2012-09-06fix($injector): more conservative annotation parsingMisko Hevery
2012-07-19refactor($injector): move $injector into the providerCacheJP Sugarbroad
Better than special-casing '$injector' in createInjector.
2012-06-01feat($injector): provide API for retrieving function annotationsMisko Hevery
2012-03-29fix($injector): properly infer dependencies from fn with no argsIgor Minar
Previously if there was a white-space in fn: fn( ) {} we failed to infer no args. This was originally reported by recht, but I decided to use a different fix. Closes #829
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery