|
1 | 1 | /** |
2 | | - * @license AngularJS v1.2.22 |
| 2 | + * @license AngularJS v1.2.25 |
3 | 3 | * (c) 2010-2014 Google, Inc. http://angularjs.org |
4 | 4 | * License: MIT |
5 | 5 | */ |
|
63 | 63 | return listener; |
64 | 64 | }; |
65 | 65 |
|
| 66 | + self.$$checkUrlChange = angular.noop; |
| 67 | + |
66 | 68 | self.cookieHash = {}; |
67 | 69 | self.lastCookieHash = {}; |
68 | 70 | self.deferredFns = []; |
|
888 | 890 | * development please see {@link ngMockE2E.$httpBackend e2e $httpBackend mock}. |
889 | 891 | * |
890 | 892 | * During unit testing, we want our unit tests to run quickly and have no external dependencies so |
891 | | - * we don’t want to send [XHR](https://developer.mozilla.org/en/xmlhttprequest) or |
| 893 | + * we don’t want to send [XHR](https://developer.mozilla.org/en/xmlhttprequest) or |
892 | 894 | * [JSONP](http://en.wikipedia.org/wiki/JSONP) requests to a real server. All we really need is |
893 | 895 | * to verify whether a certain request has been sent or not, or alternatively just let the |
894 | 896 | * application make requests, respond with pre-trained responses and assert that the end result is |
|
1043 | 1045 | var controller = createController(); |
1044 | 1046 | $httpBackend.flush(); |
1045 | 1047 |
|
1046 | | - // now you don’t care about the authentication, but |
| 1048 | + // now you don’t care about the authentication, but |
1047 | 1049 | // the controller will still send the request and |
1048 | 1050 | // $httpBackend will respond without you having to |
1049 | 1051 | // specify the expectation and response for this request |
|
1194 | 1196 | * @returns {requestHandler} Returns an object with `respond` method that controls how a matched |
1195 | 1197 | * request is handled. |
1196 | 1198 | * |
1197 | | - * - respond – |
| 1199 | + * - respond – |
1198 | 1200 | * `{function([status,] data[, headers, statusText]) |
1199 | 1201 | * | function(function(method, url, data, headers)}` |
1200 | | - * – The respond method takes a set of static data to be returned or a function that can |
| 1202 | + * – The respond method takes a set of static data to be returned or a function that can |
1201 | 1203 | * return an array containing response status (number), response data (string), response |
1202 | 1204 | * headers (Object), and the text for the status (string). |
1203 | 1205 | */ |
|
1312 | 1314 | * @returns {requestHandler} Returns an object with `respond` method that control how a matched |
1313 | 1315 | * request is handled. |
1314 | 1316 | * |
1315 | | - * - respond – |
| 1317 | + * - respond – |
1316 | 1318 | * `{function([status,] data[, headers, statusText]) |
1317 | 1319 | * | function(function(method, url, data, headers)}` |
1318 | | - * – The respond method takes a set of static data to be returned or a function that can |
| 1320 | + * – The respond method takes a set of static data to be returned or a function that can |
1319 | 1321 | * return an array containing response status (number), response data (string), response |
1320 | 1322 | * headers (Object), and the text for the status (string). |
1321 | 1323 | */ |
|
1829 | 1831 | * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that |
1830 | 1832 | * control how a matched request is handled. |
1831 | 1833 | * |
1832 | | - * - respond – |
| 1834 | + * - respond – |
1833 | 1835 | * `{function([status,] data[, headers, statusText]) |
1834 | 1836 | * | function(function(method, url, data, headers)}` |
1835 | | - * – The respond method takes a set of static data to be returned or a function that can return |
| 1837 | + * – The respond method takes a set of static data to be returned or a function that can return |
1836 | 1838 | * an array containing response status (number), response data (string), response headers |
1837 | 1839 | * (Object), and the text for the status (string). |
1838 | | - * - passThrough – `{function()}` – Any request matching a backend definition with |
| 1840 | + * - passThrough – `{function()}` – Any request matching a backend definition with |
1839 | 1841 | * `passThrough` handler will be passed through to the real backend (an XHR request will be made |
1840 | 1842 | * to the server.) |
1841 | 1843 | */ |
|
2003 | 2005 | * @description |
2004 | 2006 | * |
2005 | 2007 | * *NOTE*: This function is also published on window for easy access.<br> |
| 2008 | + * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha |
2006 | 2009 | * |
2007 | 2010 | * This function registers a module configuration code. It collects the configuration information |
2008 | 2011 | * which will be used when the injector is created by {@link angular.mock.inject inject}. |
|
2045 | 2048 | * @description |
2046 | 2049 | * |
2047 | 2050 | * *NOTE*: This function is also published on window for easy access.<br> |
| 2051 | + * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha |
2048 | 2052 | * |
2049 | 2053 | * The inject function wraps a function into an injectable function. The inject() creates new |
2050 | 2054 | * instance of {@link auto.$injector $injector} per test, which is then used for |
|
0 commit comments