Remvoed checks for typed array support in the test suite

All supported browsers have all typed arrays except for Uint8ClampedArray,
BigInt64Array, and BigUint64Array.
This commit is contained in:
Steve Gravrock
2021-06-05 13:31:26 -07:00
parent 1e50b49092
commit 0aee81cfb9
10 changed files with 1 additions and 38 deletions

View File

@@ -46,9 +46,7 @@ describe('Any', function() {
});
it('matches a TypedArray', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
var any = new jasmineUnderTest.Any(Uint32Array); // eslint-disable-line compat/compat
var any = new jasmineUnderTest.Any(Uint32Array);
expect(any.asymmetricMatch(new Uint32Array([]))).toBe(true); // eslint-disable-line compat/compat
});

View File

@@ -40,8 +40,6 @@ describe('Anything', function() {
});
it('matches a TypedArray', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
var anything = new jasmineUnderTest.Anything();
expect(anything.asymmetricMatch(new Uint32Array([]))).toBe(true); // eslint-disable-line compat/compat

View File

@@ -42,7 +42,6 @@ describe('Empty', function() {
});
it('matches an empty typed array', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
var empty = new jasmineUnderTest.Empty();
expect(empty.asymmetricMatch(new Int16Array())).toBe(true); // eslint-disable-line compat/compat

View File

@@ -44,7 +44,6 @@ describe('NotEmpty', function() {
});
it('matches a non empty typed array', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
var notEmpty = new jasmineUnderTest.NotEmpty();
expect(notEmpty.asymmetricMatch(new Int16Array([1, 2, 3]))).toBe(true); // eslint-disable-line compat/compat

View File

@@ -893,7 +893,6 @@ describe('matchersUtil', function() {
});
it('fails for ArrayBuffers with same length but different content', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
jasmine.getEnv().requireFunctioningArrayBuffers();
var buffer1 = new ArrayBuffer(4); // eslint-disable-line compat/compat
var buffer2 = new ArrayBuffer(4); // eslint-disable-line compat/compat
@@ -906,7 +905,6 @@ describe('matchersUtil', function() {
describe('Typed arrays', function() {
it('fails for typed arrays of same length and contents but different types', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
// eslint-disable-next-line compat/compat
var a1 = new Int8Array(1);
// eslint-disable-next-line compat/compat

View File

@@ -257,8 +257,6 @@ describe('toEqual', function() {
});
it('reports mismatches between arrays of different types', function() {
jasmine.getEnv().requireFunctioningTypedArrays();
var actual = new Uint32Array([1, 2, 3]), // eslint-disable-line compat/compat
expected = new Uint16Array([1, 2, 3]), // eslint-disable-line compat/compat
message =