diff options
| author | Igor Minar | 2013-12-13 01:49:37 -0800 | 
|---|---|---|
| committer | Igor Minar | 2014-01-02 22:04:32 -0800 | 
| commit | 6c17d02bc4cc02f478775d62e1f9f77da9da82ad (patch) | |
| tree | f1bb57a31c541b55fe142d29ff201147a713e2b8 /src/ngMock | |
| parent | 6a6f71f238d2603cbc286ba29ec7503ad45f7f20 (diff) | |
| download | angular.js-6c17d02bc4cc02f478775d62e1f9f77da9da82ad.tar.bz2 | |
fix($httpBackend): use ActiveX XHR when making PATCH requests on IE8
IE8's native XHR doesn't support PATCH requests, but the ActiveX one does.
I'm also removing the noxhr error doc because nobody will ever get that error.
Closes #2518
Closes #5043
Diffstat (limited to 'src/ngMock')
| -rw-r--r-- | src/ngMock/angular-mocks.js | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index d11ef0c1..fb7ef057 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1572,6 +1572,10 @@ function MockHttpExpectation(method, url, data, headers) {    };  } +function createMockXhr() { +  return new MockXhr(); +} +  function MockXhr() {    // hack for testing $http, $httpBackend | 
