Skip to content

Commit

Permalink
Remove usages of isOldIE in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson authored and emilyemorehouse committed Jun 1, 2019
1 parent 5a4228b commit 16326d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
18 changes: 0 additions & 18 deletions test/specs/requests.spec.js
Expand Up @@ -239,12 +239,6 @@ describe('requests', function () {
});

it('should support binary data as array buffer', function (done) {
// Int8Array doesn't exist in IE8/9
if (isOldIE && typeof Int8Array === 'undefined') {
done();
return;
}

var input = new Int8Array(2);
input[0] = 1;
input[1] = 2;
Expand All @@ -261,12 +255,6 @@ describe('requests', function () {
});

it('should support binary data as array buffer view', function (done) {
// Int8Array doesn't exist in IE8/9
if (isOldIE && typeof Int8Array === 'undefined') {
done();
return;
}

var input = new Int8Array(2);
input[0] = 1;
input[1] = 2;
Expand All @@ -283,12 +271,6 @@ describe('requests', function () {
});

it('should support array buffer response', function (done) {
// ArrayBuffer doesn't exist in IE8/9
if (isOldIE && typeof ArrayBuffer === 'undefined') {
done();
return;
}

var response;

function str2ab(str) {
Expand Down
20 changes: 0 additions & 20 deletions test/specs/utils/isX.spec.js
Expand Up @@ -8,39 +8,19 @@ describe('utils::isX', function () {
});

it('should validate ArrayBuffer', function () {
// ArrayBuffer doesn't exist in IE8/9
if (isOldIE && typeof ArrayBuffer === 'undefined') {
return;
}

expect(utils.isArrayBuffer(new ArrayBuffer(2))).toEqual(true);
expect(utils.isArrayBuffer({})).toEqual(false);
});

it('should validate ArrayBufferView', function () {
// ArrayBuffer doesn't exist in IE8/9
if (isOldIE && typeof ArrayBuffer === 'undefined') {
return;
}

expect(utils.isArrayBufferView(new DataView(new ArrayBuffer(2)))).toEqual(true);
});

it('should validate FormData', function () {
// FormData doesn't exist in IE8/9
if (isOldIE && typeof FormData === 'undefined') {
return;
}

expect(utils.isFormData(new FormData())).toEqual(true);
});

it('should validate Blob', function () {
// Blob doesn't exist in IE8/9
if (isOldIE && typeof Blob === 'undefined') {
return;
}

expect(utils.isBlob(new Blob())).toEqual(true);
});

Expand Down

0 comments on commit 16326d5

Please sign in to comment.