diff options
Diffstat (limited to 'test/built-ins/TypedArrays/from')
6 files changed, 21 insertions, 17 deletions
diff --git a/test/built-ins/TypedArrays/from/arylk-to-length-error.js b/test/built-ins/TypedArrays/from/arylk-to-length-error.js index 20c363748..269bc2de0 100644 --- a/test/built-ins/TypedArrays/from/arylk-to-length-error.js +++ b/test/built-ins/TypedArrays/from/arylk-to-length-error.js @@ -13,9 +13,7 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var arrayLike = { - length: {} -}; +var arrayLike = { length: {} }; arrayLike.length = { valueOf: function() { diff --git a/test/built-ins/TypedArrays/from/nan-conversion.js b/test/built-ins/TypedArrays/from/nan-conversion.js index ec2cfb112..df90a868a 100644 --- a/test/built-ins/TypedArrays/from/nan-conversion.js +++ b/test/built-ins/TypedArrays/from/nan-conversion.js @@ -24,7 +24,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Float32Array, Float64Array ]); @@ -36,7 +37,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Int8Array, Int32Array, Int16Array, @@ -45,4 +47,4 @@ testWithTypedArrayConstructors(function(TA) { Uint16Array, Uint8Array, Uint8ClampedArray -]); +]);
\ No newline at end of file diff --git a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js index 100d0049d..b29d4de6f 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js @@ -24,7 +24,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Float32Array, Float64Array ]); @@ -39,7 +40,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js index 8b8bc9d27..2eef7a2a8 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js @@ -8,7 +8,7 @@ includes: [testTypedArray.js] features: [Array.prototype.values, TypedArray] ---*/ -var source = [, , 42, , 44, , ]; +var source = [,,42,,44,,]; testWithTypedArrayConstructors(function(TA) { var result = TA.from(source); @@ -22,7 +22,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Float32Array, Float64Array ]); @@ -39,7 +40,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-zero.js b/test/built-ins/TypedArrays/from/new-instance-from-zero.js index a8bb4a850..ef06c4b93 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-zero.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-zero.js @@ -15,7 +15,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Float32Array, Float64Array ]); @@ -27,7 +28,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, [ +}, +[ Int16Array, Int32Array, Int8Array, @@ -35,4 +37,4 @@ testWithTypedArrayConstructors(function(TA) { Uint32Array, Uint8Array, Uint8ClampedArray -]); +]);
\ No newline at end of file diff --git a/test/built-ins/TypedArrays/from/this-is-not-constructor.js b/test/built-ins/TypedArrays/from/this-is-not-constructor.js index 83ecbaa3b..1dab90235 100644 --- a/test/built-ins/TypedArrays/from/this-is-not-constructor.js +++ b/test/built-ins/TypedArrays/from/this-is-not-constructor.js @@ -14,9 +14,7 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { - m() {} -}.m; +var m = { m() {} }.m; testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { |