aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/httpSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/httpSpec.js')
-rw-r--r--test/ng/httpSpec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js
index a7b24483..86ab72ea 100644
--- a/test/ng/httpSpec.js
+++ b/test/ng/httpSpec.js
@@ -989,6 +989,16 @@ describe('$http', function() {
});
+ it('should ignore Blob objects', function () {
+ if (!window.Blob) return;
+
+ var blob = new Blob(['blob!'], { type: 'text/plain' });
+
+ $httpBackend.expect('POST', '/url', '[object Blob]').respond('');
+ $http({ method: 'POST', url: '/url', data: blob });
+ });
+
+
it('should have access to request headers', function() {
$httpBackend.expect('POST', '/url', 'header1').respond(200);
$http.post('/url', 'req', {