aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngMock/angular-mocks.js
AgeCommit message (Collapse)Author
2013-09-09docs(mock.inject): fix typoPete Bacon Darwin
2013-09-05docs(mock.inject): document underscore wrapping syntaxJasonM23
Add a summary describing the ignored underscore syntax sugar helper, with a simple use case example. Closes #3621
2013-08-14fix(mocks.$timeout): forward delay argumentVojta Jina
The $timeout decorator was not forwarding the delay argument to `browser.defer.flush(delay)`.
2013-08-09docs(httpBackend): update documentation for expect methodsSanti Albo
`expect` methods can receive an Object as the data parameter, which was undocumented.
2013-07-22chore(dump): remove dead codeIgor Minar
This code is not being used any more and the test is now failing due to Karma changes. Karma used to expose window.dump but that changed recently and that's why our build is now failing. I'm removing the code and test, but we still need to figure out how to route window.dump through angular.mock.dump, but that will have to be a separate commit.
2013-07-14style(ngMock): add missing whitespaceDavid
2013-07-10docs(ngMock): correct verifyNoOutstandingExpectation exampleMark Striemer
2013-06-27docs(ngMock/$httpBackend): fix testing examplePete Bacon Darwin
Closes #3075
2013-06-04docs(angular-mocks): fix typo in exampleRobb Shecter
fromJSON() should be fromJson()
2013-05-18docs(ngMock::$log): improve the `$log.*.logs` descriptionsChris M
Because ngDoc generation only takes the last segment of a property name, each $log.[error|warn|log...].logs property has the same name and is confusing in the docs. This commit helps this by adding a link to the $log.* method and also an appropriate usage example.
2013-04-11docs: fix typosMatt Haggard
2013-04-11docs(angular-mocks): fix wordingBrent Morrow
2013-04-11chore(docs): Fixed incomplete mergeTakashi Matsuo
2013-04-04docs(mocks): fix typosGert Goet
Conflicts: src/ngMock/angular-mocks.js
2013-04-04fix(mock): prevent NPE when module definition outside of it.Misko Hevery
2013-02-25docs(ngMock): fix minor typo in commentMatt Ginzton
Change "constroctor" to "constructor".
2013-01-17docs(exceptionHandler): document testingFred Sauer
Update src/ng/exceptionHandler.js Here's an iniitla attempt at documenting how one might write a test using $exceptionHandlerProvider. The key take-away is the use of this pattern: it(...  module(...    $exceptionHandlerProvider.mode('log');  });  inject(...  ); });
2013-01-18docs(ngMock.$httpBackend): fix variable declarationFred Sauer
2012-12-06docs(mocks): update src/ngMock/angular-mocks.js documentationFred Sauer
Clarify how to use `$exceptionHandlerProvider.mode('log')` in tests
2012-12-06docs(mocks): fix documentation bug: angular.mock.debugFred Sauer
2012-08-30fix(mocks): free up memory after every specVojta Jina
2012-06-14fix($location): fix URL interception in hash-bang modeMisko Hevery
Closes #1051
2012-06-12docs($browser): hide $browser docs - it's a private serviceIgor Minar
2012-06-12fix($defer): remove deprecated $defer serviceIgor Minar
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-02feat($rootElement): added application root elementMisko Hevery
Publish the application root element as $rootElement so that it can be injected to other services.
2012-05-24fix(docs): accept return in addition to returnsMisko Hevery
documentation used @return but parser expected @returns, which made the generated documentation incomplete.
2012-05-23feat($timeout): add $timeout service that supersedes $deferIgor Minar
$timeout has a better name ($defer got often confused with something related to $q) and is actually promise based with cancelation support. With this commit the $defer service is deprecated and will be removed before 1.0. Closes #704, #532
2012-05-14fix(jqLite): .data()/.bind() memory leakMisko Hevery
Since angular attaches scope/injector/controller into DOM it should clean up after itself. No need to complain about memory leaks, since they can only happened on detached DOM. Detached DOM would only be in tests, since in production the DOM would be attached to render tree and removal would automatically clear memory.
2012-05-14fix(angular-mocks): memory leak in jasmine's DI utilsMisko Hevery
When using inject/module helper methods in tests, these methods would leave the injector laying around after the test. Since injector is the application it can grow very large.
2012-04-20feat($resource): support HTTP PATCH methodsimpulton
Properly serialize data into request body instead of url. Closes #887
2012-04-20chore(license): update to googleMisko Hevery
2012-04-10chore(*): remove dead code and fix code style issuesIgor Minar
2012-04-09chore($browser): remove the addJs methodIgor Minar
this was never meant to be a public api used by apps. I refactored the code to hide the functionality. BREAKING CHANGE: $browser.addJs method was removed apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app.
2012-03-28feat(TzDate): add support for toISOString methodIgor Minar
2012-03-28refactor(fromJson/date filter): move date string logic to date filterIgor Minar
Breaks angular.fromJson which doesn't deserialize date strings into date objects. This was done to make fromJson compatible with JSON.parse. If you do require the old behavior - if at all neeeded then because of json deserialization of XHR responses - then please create a custom $http transform: $httpProvider.defaults.transformResponse.push(function(data) { // recursively parse dates from data object here // see code removed in this diff for hints }); Closes #202
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery