add esid to array/prototype/splice tests

This commit is contained in:
deathbearbrown 2017-06-30 14:17:38 -07:00 committed by Rick Waldron
parent e07385fff4
commit 20b8c9b896
52 changed files with 250 additions and 198 deletions

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.splice
es5id: 15.4.4.12-9-a-1 es5id: 15.4.4.12-9-a-1
description: > description: >
Array.prototype.splice - 'from' is the result of Array.prototype.splice - 'from' is the result of

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.splice
es5id: 15.4.4.12-9-c-ii-1 es5id: 15.4.4.12-9-c-ii-1
description: > description: >
Array.prototype.splice will splice an array even when Array.prototype.splice will splice an array even when

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T1 es5id: 15.4.4.12_A1.1_T1
description: length > deleteCount > start = 0, itemCount = 0 description: length > deleteCount > start = 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T2 es5id: 15.4.4.12_A1.1_T2
description: length > deleteCount > start = 0, itemCount > 0 description: length > deleteCount > start = 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T3 es5id: 15.4.4.12_A1.1_T3
description: length = deleteCount > start = 0 description: length = deleteCount > start = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T4 es5id: 15.4.4.12_A1.1_T4
description: length > deleteCount > start > 0, itemCount > 0 description: length > deleteCount > start > 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T5 es5id: 15.4.4.12_A1.1_T5
description: deleteCount > length > start = 0, itemCount = 0 description: deleteCount > length > start = 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.1_T6 es5id: 15.4.4.12_A1.1_T6
description: length = deleteCount > start > 0, itemCount > 0 description: length = deleteCount > start > 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.2_T1 es5id: 15.4.4.12_A1.2_T1
description: -length = start < deleteCount < 0, itemCount = 0 description: -length = start < deleteCount < 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.2_T2 es5id: 15.4.4.12_A1.2_T2
description: -length < start = deleteCount < 0, itemCount = 0 description: -length < start = deleteCount < 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.2_T3 es5id: 15.4.4.12_A1.2_T3
description: -length = start < deleteCount < 0, itemCount > 0 description: -length = start < deleteCount < 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.2_T4 es5id: 15.4.4.12_A1.2_T4
description: -length < start = deleteCount < 0, itemCount > 0 description: -length < start = deleteCount < 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.2_T5 es5id: 15.4.4.12_A1.2_T5
description: start < -length < deleteCount < 0, itemCount > 0 description: start < -length < deleteCount < 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.3_T1 es5id: 15.4.4.12_A1.3_T1
description: -length < deleteCount < start = 0, itemCount = 0 description: -length < deleteCount < start = 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.3_T2 es5id: 15.4.4.12_A1.3_T2
description: -length = -start < deleteCount < 0, itemCount = 0 description: -length = -start < deleteCount < 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.3_T3 es5id: 15.4.4.12_A1.3_T3
description: -length < deleteCount < start = 0, itemCount > 0 description: -length < deleteCount < start = 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.3_T4 es5id: 15.4.4.12_A1.3_T4
description: -length = -start < deleteCount < 0, itemCount > 0 description: -length = -start < deleteCount < 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is positive, use min(start, length). If start is positive, use min(start, length).
If deleteCount is negative, use 0 If deleteCount is negative, use 0
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.3_T5 es5id: 15.4.4.12_A1.3_T5
description: -start < -length < deleteCount < 0, itemCount > 0 description: -start < -length < deleteCount < 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T1 es5id: 15.4.4.12_A1.4_T1
description: length = -start > deleteCount > 0, itemCount = 0 description: length = -start > deleteCount > 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T2 es5id: 15.4.4.12_A1.4_T2
description: length = -start > deleteCount > 0, itemCount > 0 description: length = -start > deleteCount > 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T3 es5id: 15.4.4.12_A1.4_T3
description: -start > length = deleteCount > 0, itemCount = 0 description: -start > length = deleteCount > 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T4 es5id: 15.4.4.12_A1.4_T4
description: length > -start = deleteCount > 0, itemCount > 0 description: length > -start = deleteCount > 0, itemCount > 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T5 es5id: 15.4.4.12_A1.4_T5
description: -start > deleteCount > length > 0, itemCount = 0 description: -start > deleteCount > length > 0, itemCount = 0
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If start is negative, use max(start + length, 0). If start is negative, use max(start + length, 0).
If deleteCount is positive, use min(deleteCount, length - start) If deleteCount is positive, use min(deleteCount, length - start)
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.4_T6 es5id: 15.4.4.12_A1.4_T6
description: length = deleteCount > -start > 0, itemCount > 0 description: length = deleteCount > -start > 0, itemCount > 0
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Splice with undefined arguments info: Splice with undefined arguments
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.5_T1 es5id: 15.4.4.12_A1.5_T1
description: start === undefined, end === undefined description: start === undefined, end === undefined
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Splice with undefined arguments info: Splice with undefined arguments
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A1.5_T2 es5id: 15.4.4.12_A1.5_T2
description: end === undefined description: end === undefined
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from start info: Operator use ToInteger from start
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.1_T1 es5id: 15.4.4.12_A2.1_T1
description: start is not integer description: start is not integer
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from start info: Operator use ToInteger from start
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.1_T2 es5id: 15.4.4.12_A2.1_T2
description: start = NaN description: start = NaN
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from start info: Operator use ToInteger from start
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.1_T3 es5id: 15.4.4.12_A2.1_T3
description: start = Infinity description: start = Infinity
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from start info: Operator use ToInteger from start
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.1_T4 es5id: 15.4.4.12_A2.1_T4
description: start = -Infinity description: start = -Infinity
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from start info: Operator use ToInteger from start
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.1_T5 es5id: 15.4.4.12_A2.1_T5
description: ToInteger use ToNumber description: ToInteger use ToNumber
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from deleteCount info: Operator use ToInteger from deleteCount
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.2_T1 es5id: 15.4.4.12_A2.2_T1
description: deleteCount is not integer description: deleteCount is not integer
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from deleteCount info: Operator use ToInteger from deleteCount
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.2_T2 es5id: 15.4.4.12_A2.2_T2
description: deleteCount = NaN description: deleteCount = NaN
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from deleteCount info: Operator use ToInteger from deleteCount
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.2_T3 es5id: 15.4.4.12_A2.2_T3
description: deleteCount = Infinity description: deleteCount = Infinity
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from deleteCount info: Operator use ToInteger from deleteCount
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.2_T4 es5id: 15.4.4.12_A2.2_T4
description: deleteCount = -Infinity description: deleteCount = -Infinity
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Operator use ToInteger from deleteCount info: Operator use ToInteger from deleteCount
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2.2_T5 es5id: 15.4.4.12_A2.2_T5
description: ToInteger use ToNumber description: ToInteger use ToNumber
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
The splice function is intentionally generic. The splice function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2_T1 es5id: 15.4.4.12_A2_T1
description: > description: >
If start is positive, use min(start, length). If deleteCount is If start is positive, use min(start, length). If deleteCount is

View File

@ -5,6 +5,7 @@
info: > info: >
The splice function is intentionally generic. The splice function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2_T2 es5id: 15.4.4.12_A2_T2
description: > description: >
If start is negative, use max(start + length, 0). If deleteCount If start is negative, use max(start + length, 0). If deleteCount

View File

@ -5,6 +5,7 @@
info: > info: >
The splice function is intentionally generic. The splice function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2_T3 es5id: 15.4.4.12_A2_T3
description: > description: >
If start is positive, use min(start, length). If deleteCount is If start is positive, use min(start, length). If deleteCount is

View File

@ -5,6 +5,7 @@
info: > info: >
The splice function is intentionally generic. The splice function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2_T4 es5id: 15.4.4.12_A2_T4
description: > description: >
If start is negative, use max(start + length, 0). If deleteCount If start is negative, use max(start + length, 0). If deleteCount

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Check ToLength(length) for non Array objects info: Check ToLength(length) for non Array objects
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A3_T1 es5id: 15.4.4.12_A3_T1
description: length is arbitrarily description: length is arbitrarily
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Check ToLength(length) for non Array objects info: Check ToLength(length) for non Array objects
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A3_T3 es5id: 15.4.4.12_A3_T3
description: length is arbitrarily description: length is arbitrarily
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: "[[Get]] from not an inherited property" info: "[[Get]] from not an inherited property"
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A4_T1 es5id: 15.4.4.12_A4_T1
description: > description: >
[[Prototype]] of Array instance is Array.prototype, [[Prototype] [[Prototype]] of Array instance is Array.prototype, [[Prototype]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: "[[Get]] from not an inherited property" info: "[[Get]] from not an inherited property"
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A4_T2 es5id: 15.4.4.12_A4_T2
description: > description: >
[[Prototype]] of Array instance is Array.prototype, [[Prototype] [[Prototype]] of Array instance is Array.prototype, [[Prototype]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: "[[Get]] from not an inherited property" info: "[[Get]] from not an inherited property"
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A4_T3 es5id: 15.4.4.12_A4_T3
description: > description: >
[[Prototype]] of Array instance is Array.prototype, [[Prototype] [[Prototype]] of Array instance is Array.prototype, [[Prototype]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: The splice property of Array can't be used as constructor info: The splice property of Array can't be used as constructor
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A5.7 es5id: 15.4.4.12_A5.7
description: > description: >
If property does not implement the internal [[Construct]] method, If property does not implement the internal [[Construct]] method,

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Array.prototype.splice sets `length` on `this` info: Array.prototype.splice sets `length` on `this`
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A6.1_T1 es5id: 15.4.4.12_A6.1_T1
description: Array.prototype.splice sets `length` on Array description: Array.prototype.splice sets `length` on Array
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Array.prototype.splice sets `length` on `this` info: Array.prototype.splice sets `length` on `this`
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A6.1_T2 es5id: 15.4.4.12_A6.1_T2
description: Array.prototype.splice throws if `length` is read-only description: Array.prototype.splice throws if `length` is read-only
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Array.prototype.splice sets `length` on `this` info: Array.prototype.splice sets `length` on `this`
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A6.1_T3 es5id: 15.4.4.12_A6.1_T3
description: Array.prototype.splice throws if `length` is read-only description: Array.prototype.splice throws if `length` is read-only
---*/ ---*/

View File

@ -11,6 +11,7 @@ info: >
a. Let insertCount be 0. a. Let insertCount be 0.
b. Let actualDeleteCount be len actualStart. b. Let actualDeleteCount be len actualStart.
es6id: 22.1.3.25 es6id: 22.1.3.25
esid: sec-array.prototype.splice
---*/ ---*/
var array = ["first", "second", "third"]; var array = ["first", "second", "third"];

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.splice
es6id: 22.1.3.25 es6id: 22.1.3.25
description: > description: >
Array.prototype.splice.name is "splice". Array.prototype.splice.name is "splice".

View File

@ -9,6 +9,7 @@ info: >
... ...
24. Let setStatus be Set(O, "length", len actualDeleteCount + itemCount, true). 24. Let setStatus be Set(O, "length", len actualDeleteCount + itemCount, true).
25. ReturnIfAbrupt(setStatus). 25. ReturnIfAbrupt(setStatus).
esid: sec-array.prototype.splice
es5id: 15.4.4.12 es5id: 15.4.4.12
es6id: 22.1.3.25 es6id: 22.1.3.25
---*/ ---*/