mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-10 22:44:01 +08:00
committed by
Pawel Kozlowski
parent
511422adb0
commit
b8cc71d476
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user