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 /test/ng/httpBackendSpec.js | |
| 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 'test/ng/httpBackendSpec.js')
| -rw-r--r-- | test/ng/httpBackendSpec.js | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/test/ng/httpBackendSpec.js b/test/ng/httpBackendSpec.js index 5a392538..7302de00 100644 --- a/test/ng/httpBackendSpec.js +++ b/test/ng/httpBackendSpec.js @@ -53,7 +53,7 @@ describe('$httpBackend', function() {          })        }      }; -    $backend = createHttpBackend($browser, MockXhr, fakeTimeout, callbacks, fakeDocument); +    $backend = createHttpBackend($browser, createMockXhr, fakeTimeout, callbacks, fakeDocument);      callback = jasmine.createSpy('done');    })); @@ -250,7 +250,7 @@ describe('$httpBackend', function() {        expect(response).toBe('response');      }); -    $backend = createHttpBackend($browser, SyncXhr); +    $backend = createHttpBackend($browser, function() { return new SyncXhr() });      $backend('GET', '/url', null, callback);      expect(callback).toHaveBeenCalledOnce();    }); @@ -426,7 +426,7 @@ describe('$httpBackend', function() {      it('should convert 0 to 200 if content', function() { -      $backend = createHttpBackend($browser, MockXhr); +      $backend = createHttpBackend($browser, createMockXhr);        $backend('GET', 'file:///whatever/index.html', null, callback);        respond(0, 'SOME CONTENT'); @@ -437,7 +437,7 @@ describe('$httpBackend', function() {      it('should convert 0 to 404 if no content', function() { -      $backend = createHttpBackend($browser, MockXhr); +      $backend = createHttpBackend($browser, createMockXhr);        $backend('GET', 'file:///whatever/index.html', null, callback);        respond(0, ''); @@ -465,7 +465,7 @@ describe('$httpBackend', function() {        try { -        $backend = createHttpBackend($browser, MockXhr); +        $backend = createHttpBackend($browser, createMockXhr);          $backend('GET', '/whatever/index.html', null, callback);          respond(0, ''); @@ -480,7 +480,7 @@ describe('$httpBackend', function() {      it('should return original backend status code if different from 0', function () { -      $backend = createHttpBackend($browser, MockXhr); +      $backend = createHttpBackend($browser, createMockXhr);        // request to http://        $backend('POST', 'http://rest_api/create_whatever', null, callback); | 
