mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 04:24:40 +02:00
add esid to array/prototype/splice tests
This commit is contained in:
parent
e07385fff4
commit
20b8c9b896
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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"];
|
||||
|
@ -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".
|
||||
|
@ -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
|
||||
---*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user