File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,12 +239,6 @@ describe('requests', function () {
239239 } ) ;
240240
241241 it ( 'should support binary data as array buffer' , function ( done ) {
242- // Int8Array doesn't exist in IE8/9
243- if ( isOldIE && typeof Int8Array === 'undefined' ) {
244- done ( ) ;
245- return ;
246- }
247-
248242 var input = new Int8Array ( 2 ) ;
249243 input [ 0 ] = 1 ;
250244 input [ 1 ] = 2 ;
@@ -261,12 +255,6 @@ describe('requests', function () {
261255 } ) ;
262256
263257 it ( 'should support binary data as array buffer view' , function ( done ) {
264- // Int8Array doesn't exist in IE8/9
265- if ( isOldIE && typeof Int8Array === 'undefined' ) {
266- done ( ) ;
267- return ;
268- }
269-
270258 var input = new Int8Array ( 2 ) ;
271259 input [ 0 ] = 1 ;
272260 input [ 1 ] = 2 ;
@@ -283,12 +271,6 @@ describe('requests', function () {
283271 } ) ;
284272
285273 it ( 'should support array buffer response' , function ( done ) {
286- // ArrayBuffer doesn't exist in IE8/9
287- if ( isOldIE && typeof ArrayBuffer === 'undefined' ) {
288- done ( ) ;
289- return ;
290- }
291-
292274 var response ;
293275
294276 function str2ab ( str ) {
Original file line number Diff line number Diff line change @@ -8,39 +8,19 @@ describe('utils::isX', function () {
88 } ) ;
99
1010 it ( 'should validate ArrayBuffer' , function ( ) {
11- // ArrayBuffer doesn't exist in IE8/9
12- if ( isOldIE && typeof ArrayBuffer === 'undefined' ) {
13- return ;
14- }
15-
1611 expect ( utils . isArrayBuffer ( new ArrayBuffer ( 2 ) ) ) . toEqual ( true ) ;
1712 expect ( utils . isArrayBuffer ( { } ) ) . toEqual ( false ) ;
1813 } ) ;
1914
2015 it ( 'should validate ArrayBufferView' , function ( ) {
21- // ArrayBuffer doesn't exist in IE8/9
22- if ( isOldIE && typeof ArrayBuffer === 'undefined' ) {
23- return ;
24- }
25-
2616 expect ( utils . isArrayBufferView ( new DataView ( new ArrayBuffer ( 2 ) ) ) ) . toEqual ( true ) ;
2717 } ) ;
2818
2919 it ( 'should validate FormData' , function ( ) {
30- // FormData doesn't exist in IE8/9
31- if ( isOldIE && typeof FormData === 'undefined' ) {
32- return ;
33- }
34-
3520 expect ( utils . isFormData ( new FormData ( ) ) ) . toEqual ( true ) ;
3621 } ) ;
3722
3823 it ( 'should validate Blob' , function ( ) {
39- // Blob doesn't exist in IE8/9
40- if ( isOldIE && typeof Blob === 'undefined' ) {
41- return ;
42- }
43-
4424 expect ( utils . isBlob ( new Blob ( ) ) ) . toEqual ( true ) ;
4525 } ) ;
4626
You can’t perform that action at this time.
0 commit comments