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.
/*---
esid: sec-array.prototype.splice
es5id: 15.4.4.12-9-a-1
description: >
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.
/*---
esid: sec-array.prototype.splice
es5id: 15.4.4.12-9-c-ii-1
description: >
Array.prototype.splice will splice an array even when

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,7 @@
info: >
The splice function is intentionally generic.
It does not require that its this value be an Array object
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A2_T4
description: >
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
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A3_T1
description: length is arbitrarily
---*/

View File

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

View File

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

View File

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

View File

@ -3,6 +3,7 @@
/*---
info: "[[Get]] from not an inherited property"
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A4_T3
description: >
[[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
esid: sec-array.prototype.splice
es5id: 15.4.4.12_A5.7
description: >
If property does not implement the internal [[Construct]] method,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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