diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/includes')
8 files changed, 55 insertions, 55 deletions
diff --git a/test/built-ins/TypedArray/prototype/includes/fromIndex-infinity.js b/test/built-ins/TypedArray/prototype/includes/fromIndex-infinity.js index f904d82a5..b9af6be50 100644 --- a/test/built-ins/TypedArray/prototype/includes/fromIndex-infinity.js +++ b/test/built-ins/TypedArray/prototype/includes/fromIndex-infinity.js @@ -29,16 +29,16 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([42, 43, 43, 41])); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([42, 43, 43, 41]); assert.sameValue( - sample.includes(N(43), Infinity), + sample.includes(43, Infinity), false, "includes(43, Infinity)" ); assert.sameValue( - sample.includes(N(43), -Infinity), + sample.includes(43, -Infinity), true, "includes(43, -Infinity)"); }); diff --git a/test/built-ins/TypedArray/prototype/includes/fromIndex-minus-zero.js b/test/built-ins/TypedArray/prototype/includes/fromIndex-minus-zero.js index 3d4c08fb7..be2fedf7c 100644 --- a/test/built-ins/TypedArray/prototype/includes/fromIndex-minus-zero.js +++ b/test/built-ins/TypedArray/prototype/includes/fromIndex-minus-zero.js @@ -24,11 +24,11 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { +testWithTypedArrayConstructors(function(TA) { var sample; - sample = new TA(N([42, 43])); - assert.sameValue(sample.includes(N(42), -0), true, "-0 [0]"); - assert.sameValue(sample.includes(N(43), -0), true, "-0 [1]"); - assert.sameValue(sample.includes(N(44), -0), false, "-0 [2]"); + sample = new TA([42, 43]); + assert.sameValue(sample.includes(42, -0), true, "-0 [0]"); + assert.sameValue(sample.includes(43, -0), true, "-0 [1]"); + assert.sameValue(sample.includes(44, -0), false, "-0 [2]"); }); diff --git a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js index c8b6b6280..eb10a80bd 100644 --- a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js @@ -23,11 +23,11 @@ features: [TypedArray] Object.defineProperty(TypedArray.prototype, "length", {value: 0}); -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([7])); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([7]); Object.defineProperty(TA.prototype, "length", {value: 0}); Object.defineProperty(sample, "length", {value: 0}); - assert.sameValue(sample.includes(N(7)), true); + assert.sameValue(sample.includes(7), true); }); diff --git a/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex-symbol.js b/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex-symbol.js index cc4207aa3..5e5364d5b 100644 --- a/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex-symbol.js +++ b/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex-symbol.js @@ -24,10 +24,10 @@ features: [Symbol, TypedArray] var fromIndex = Symbol("1"); -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([7])); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([7]); assert.throws(TypeError, function() { - sample.includes(N(7), fromIndex); + sample.includes(7, fromIndex); }); }); diff --git a/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex.js index 40a1f6dbc..b17b6e343 100644 --- a/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/includes/return-abrupt-tointeger-fromindex.js @@ -28,10 +28,10 @@ var fromIndex = { } }; -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([7])); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([7]); assert.throws(Test262Error, function() { - sample.includes(N(7), fromIndex); + sample.includes(7, fromIndex); }); }); diff --git a/test/built-ins/TypedArray/prototype/includes/search-found-returns-true.js b/test/built-ins/TypedArray/prototype/includes/search-found-returns-true.js index 27c6e25f0..e77ace260 100644 --- a/test/built-ins/TypedArray/prototype/includes/search-found-returns-true.js +++ b/test/built-ins/TypedArray/prototype/includes/search-found-returns-true.js @@ -29,16 +29,16 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([42, 43, 42, 41])); - assert.sameValue(sample.includes(N(42)), true, "includes(42)"); - assert.sameValue(sample.includes(N(43)), true, "includes(43)"); - assert.sameValue(sample.includes(N(43), 1), true, "includes(43, 1)"); - assert.sameValue(sample.includes(N(42), 1), true, "includes(42, 1)"); - assert.sameValue(sample.includes(N(42), 2), true, "includes(42, 2)"); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([42, 43, 42, 41]); + assert.sameValue(sample.includes(42), true, "includes(42)"); + assert.sameValue(sample.includes(43), true, "includes(43)"); + assert.sameValue(sample.includes(43, 1), true, "includes(43, 1)"); + assert.sameValue(sample.includes(42, 1), true, "includes(42, 1)"); + assert.sameValue(sample.includes(42, 2), true, "includes(42, 2)"); - assert.sameValue(sample.includes(N(42), -4), true, "includes(42, -4)"); - assert.sameValue(sample.includes(N(42), -3), true, "includes(42, -3)"); - assert.sameValue(sample.includes(N(42), -2), true, "includes(42, -2)"); - assert.sameValue(sample.includes(N(42), -5), true, "includes(42, -5)"); + assert.sameValue(sample.includes(42, -4), true, "includes(42, -4)"); + assert.sameValue(sample.includes(42, -3), true, "includes(42, -3)"); + assert.sameValue(sample.includes(42, -2), true, "includes(42, -2)"); + assert.sameValue(sample.includes(42, -5), true, "includes(42, -5)"); }); diff --git a/test/built-ins/TypedArray/prototype/includes/search-not-found-returns-false.js b/test/built-ins/TypedArray/prototype/includes/search-not-found-returns-false.js index 8654b4d36..4000cd39b 100644 --- a/test/built-ins/TypedArray/prototype/includes/search-not-found-returns-false.js +++ b/test/built-ins/TypedArray/prototype/includes/search-not-found-returns-false.js @@ -29,14 +29,14 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { +testWithTypedArrayConstructors(function(TA) { var sample; - sample = new TA(N([42, 43, 42, 41])); - assert.sameValue(sample.includes(N(44)), false, "includes(44)"); - assert.sameValue(sample.includes(N(43), 2), false, "includes(43, 2)"); - assert.sameValue(sample.includes(N(42), 3), false, "includes(42, 3)"); - assert.sameValue(sample.includes(N(44), -4), false, "includes(44, -4)"); - assert.sameValue(sample.includes(N(44), -5), false, "includes(44, -5)"); - assert.sameValue(sample.includes(N(42), -1), false, "includes(42, -1)"); + sample = new TA([42, 43, 42, 41]); + assert.sameValue(sample.includes(44), false, "includes(44)"); + assert.sameValue(sample.includes(43, 2), false, "includes(43, 2)"); + assert.sameValue(sample.includes(42, 3), false, "includes(42, 3)"); + assert.sameValue(sample.includes(44, -4), false, "includes(44, -4)"); + assert.sameValue(sample.includes(44, -5), false, "includes(44, -5)"); + assert.sameValue(sample.includes(42, -1), false, "includes(42, -1)"); }); diff --git a/test/built-ins/TypedArray/prototype/includes/tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/includes/tointeger-fromindex.js index 9ab7c404a..9a2be979f 100644 --- a/test/built-ins/TypedArray/prototype/includes/tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/includes/tointeger-fromindex.js @@ -35,31 +35,31 @@ var obj = { } }; -testWithTypedArrayConstructors(function(TA, N) { +testWithTypedArrayConstructors(function(TA) { var sample; - sample = new TA(N([42, 43])); - assert.sameValue(sample.includes(N(42), "1"), false, "string [0]"); - assert.sameValue(sample.includes(N(43), "1"), true, "string [1]"); + sample = new TA([42, 43]); + assert.sameValue(sample.includes(42, "1"), false, "string [0]"); + assert.sameValue(sample.includes(43, "1"), true, "string [1]"); - assert.sameValue(sample.includes(N(42), true), false, "true [0]"); - assert.sameValue(sample.includes(N(43), true), true, "true [1]"); + assert.sameValue(sample.includes(42, true), false, "true [0]"); + assert.sameValue(sample.includes(43, true), true, "true [1]"); - assert.sameValue(sample.includes(N(42), false), true, "false [0]"); - assert.sameValue(sample.includes(N(43), false), true, "false [1]"); + assert.sameValue(sample.includes(42, false), true, "false [0]"); + assert.sameValue(sample.includes(43, false), true, "false [1]"); - assert.sameValue(sample.includes(N(42), NaN), true, "NaN [0]"); - assert.sameValue(sample.includes(N(43), NaN), true, "NaN [1]"); + assert.sameValue(sample.includes(42, NaN), true, "NaN [0]"); + assert.sameValue(sample.includes(43, NaN), true, "NaN [1]"); - assert.sameValue(sample.includes(N(42), null), true, "null [0]"); - assert.sameValue(sample.includes(N(43), null), true, "null [1]"); + assert.sameValue(sample.includes(42, null), true, "null [0]"); + assert.sameValue(sample.includes(43, null), true, "null [1]"); - assert.sameValue(sample.includes(N(42), undefined), true, "undefined [0]"); - assert.sameValue(sample.includes(N(43), undefined), true, "undefined [1]"); + assert.sameValue(sample.includes(42, undefined), true, "undefined [0]"); + assert.sameValue(sample.includes(43, undefined), true, "undefined [1]"); - assert.sameValue(sample.includes(N(42), null), true, "null [0]"); - assert.sameValue(sample.includes(N(43), null), true, "null [1]"); + assert.sameValue(sample.includes(42, null), true, "null [0]"); + assert.sameValue(sample.includes(43, null), true, "null [1]"); - assert.sameValue(sample.includes(N(42), obj), false, "object [0]"); - assert.sameValue(sample.includes(N(43), obj), true, "object [1]"); + assert.sameValue(sample.includes(42, obj), false, "object [0]"); + assert.sameValue(sample.includes(43, obj), true, "object [1]"); }); |