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:
@@ -17,7 +17,6 @@
|
||||
}
|
||||
|
||||
env.requireFunctioningArrayBuffers = function() {
|
||||
env.requireFunctioningTypedArrays();
|
||||
if (!hasFunctioningArrayBuffers()) {
|
||||
env.pending('Browser has incomplete or missing support for ArrayBuffer');
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/* eslint-disable compat/compat */
|
||||
(function(env) {
|
||||
function hasFunctioningTypedArrays() {
|
||||
if (typeof Uint32Array === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
var a = new Uint32Array([1, 2, 3]);
|
||||
if (a.length !== 3) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
env.requireFunctioningTypedArrays = function() {
|
||||
if (!hasFunctioningTypedArrays()) {
|
||||
env.pending('Browser has incomplete or missing support for typed arrays');
|
||||
}
|
||||
};
|
||||
})(jasmine.getEnv());
|
||||
Reference in New Issue
Block a user