mirror of https://github.com/tc39/test262.git
add esid to array/prototype/slice tests
This commit is contained in:
parent
518df03a59
commit
1122913fd9
|
@ -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.slice
|
||||||
es5id: 15.4.4.10-10-c-ii-1
|
es5id: 15.4.4.10-10-c-ii-1
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.slice will slice a string from start to end when
|
Array.prototype.slice will slice a string from start to end when
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T1
|
es5id: 15.4.4.10_A1.1_T1
|
||||||
description: length > end > start = 0
|
description: length > end > start = 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T2
|
es5id: 15.4.4.10_A1.1_T2
|
||||||
description: length > end = start > 0
|
description: length > end = start > 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T3
|
es5id: 15.4.4.10_A1.1_T3
|
||||||
description: length > start > end > 0
|
description: length > start > end > 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T4
|
es5id: 15.4.4.10_A1.1_T4
|
||||||
description: length = end = start > 0
|
description: length = end = start > 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T5
|
es5id: 15.4.4.10_A1.1_T5
|
||||||
description: length = end > start > 0
|
description: length = end > start > 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T6
|
es5id: 15.4.4.10_A1.1_T6
|
||||||
description: length > end > start > 0;
|
description: length > end > start > 0;
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.1_T7
|
es5id: 15.4.4.10_A1.1_T7
|
||||||
description: end > length > start > 0
|
description: end > length > start > 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.2_T1
|
es5id: 15.4.4.10_A1.2_T1
|
||||||
description: length > end = abs(start), start < 0
|
description: length > end = abs(start), start < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.2_T2
|
es5id: 15.4.4.10_A1.2_T2
|
||||||
description: length = end > abs(start), start < 0
|
description: length = end > abs(start), start < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.2_T3
|
es5id: 15.4.4.10_A1.2_T3
|
||||||
description: abs(start) = length > end > 0, start < 0
|
description: abs(start) = length > end > 0, start < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is positive, use min(end, length)
|
If end is positive, use min(end, length)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.2_T4
|
es5id: 15.4.4.10_A1.2_T4
|
||||||
description: abs(start) > length = end > 0, start < 0
|
description: abs(start) > length = end > 0, start < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.3_T1
|
es5id: 15.4.4.10_A1.3_T1
|
||||||
description: length > abs(end) > start = 0, end < 0
|
description: length > abs(end) > start = 0, end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.3_T2
|
es5id: 15.4.4.10_A1.3_T2
|
||||||
description: length > abs(end) > start > 0, end < 0
|
description: length > abs(end) > start > 0, end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.3_T3
|
es5id: 15.4.4.10_A1.3_T3
|
||||||
description: length = abs(end) > start = 0, end < 0
|
description: length = abs(end) > start = 0, end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
If start is positive, use min(start, length).
|
If start is positive, use min(start, length).
|
||||||
If end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.3_T4
|
es5id: 15.4.4.10_A1.3_T4
|
||||||
description: abs(end) > length > start > 0, end < 0
|
description: abs(end) > length > start > 0, end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.4_T1
|
es5id: 15.4.4.10_A1.4_T1
|
||||||
description: -length = start < end < 0
|
description: -length = start < end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.4_T2
|
es5id: 15.4.4.10_A1.4_T2
|
||||||
description: -length < start < end < 0
|
description: -length < start < end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.4_T3
|
es5id: 15.4.4.10_A1.4_T3
|
||||||
description: start < -length < end < 0
|
description: start < -length < end < 0
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -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 end is negative, use max(end + length, 0)
|
If end is negative, use max(end + length, 0)
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.4_T4
|
es5id: 15.4.4.10_A1.4_T4
|
||||||
description: start = end < -length
|
description: start = end < -length
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: If end is undefined use length
|
info: If end is undefined use length
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.5_T1
|
es5id: 15.4.4.10_A1.5_T1
|
||||||
description: end === undefined
|
description: end === undefined
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: If end is undefined use length
|
info: If end is undefined use length
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A1.5_T2
|
es5id: 15.4.4.10_A1.5_T2
|
||||||
description: end is absent
|
description: end is absent
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from start
|
info: Operator use ToInteger from start
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.1_T1
|
es5id: 15.4.4.10_A2.1_T1
|
||||||
description: start is not integer
|
description: start is not integer
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from start
|
info: Operator use ToInteger from start
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.1_T2
|
es5id: 15.4.4.10_A2.1_T2
|
||||||
description: start = NaN
|
description: start = NaN
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from start
|
info: Operator use ToInteger from start
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.1_T3
|
es5id: 15.4.4.10_A2.1_T3
|
||||||
description: start = Infinity
|
description: start = Infinity
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from start
|
info: Operator use ToInteger from start
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.1_T4
|
es5id: 15.4.4.10_A2.1_T4
|
||||||
description: start = -Infinity
|
description: start = -Infinity
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from start
|
info: Operator use ToInteger from start
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.1_T5
|
es5id: 15.4.4.10_A2.1_T5
|
||||||
description: ToInteger use ToNumber
|
description: ToInteger use ToNumber
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from end
|
info: Operator use ToInteger from end
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.2_T1
|
es5id: 15.4.4.10_A2.2_T1
|
||||||
description: end is not integer
|
description: end is not integer
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from end
|
info: Operator use ToInteger from end
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.2_T2
|
es5id: 15.4.4.10_A2.2_T2
|
||||||
description: end = NaN
|
description: end = NaN
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from end
|
info: Operator use ToInteger from end
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.2_T3
|
es5id: 15.4.4.10_A2.2_T3
|
||||||
description: end = Infinity
|
description: end = Infinity
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from end
|
info: Operator use ToInteger from end
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.2_T4
|
es5id: 15.4.4.10_A2.2_T4
|
||||||
description: end = -Infinity
|
description: end = -Infinity
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Operator use ToInteger from end
|
info: Operator use ToInteger from end
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A2.2_T5
|
es5id: 15.4.4.10_A2.2_T5
|
||||||
description: ToInteger use ToNumber
|
description: ToInteger use ToNumber
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T1
|
es5id: 15.4.4.10_A2_T1
|
||||||
description: >
|
description: >
|
||||||
If start is positive, use min(start, length). If end is positive,
|
If start is positive, use min(start, length). If end is positive,
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T2
|
es5id: 15.4.4.10_A2_T2
|
||||||
description: >
|
description: >
|
||||||
If start is negative, use max(start + length, 0). If end is
|
If start is negative, use max(start + length, 0). If end is
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T3
|
es5id: 15.4.4.10_A2_T3
|
||||||
description: >
|
description: >
|
||||||
If start is positive, use min(start, length). If end is negative,
|
If start is positive, use min(start, length). If end is negative,
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T4
|
es5id: 15.4.4.10_A2_T4
|
||||||
description: >
|
description: >
|
||||||
If start is negative, use max(start + length, 0). If end is
|
If start is negative, use max(start + length, 0). If end is
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T5
|
es5id: 15.4.4.10_A2_T5
|
||||||
description: If end is undefined use length
|
description: If end is undefined use length
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
info: >
|
info: >
|
||||||
The slice function is intentionally generic.
|
The slice 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.slice
|
||||||
es5id: 15.4.4.10_A2_T6
|
es5id: 15.4.4.10_A2_T6
|
||||||
description: If end is undefined use length
|
description: If end is undefined use length
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Check ToLength(length) for non Array objects
|
info: Check ToLength(length) for non Array objects
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A3_T1
|
es5id: 15.4.4.10_A3_T1
|
||||||
description: length = 4294967296
|
description: length = 4294967296
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Check ToLength(length) for non Array objects
|
info: Check ToLength(length) for non Array objects
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A3_T2
|
es5id: 15.4.4.10_A3_T2
|
||||||
description: length = 4294967297
|
description: length = 4294967297
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: Check ToUint32(length) for non Array objects
|
info: Check ToUint32(length) for non Array objects
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A3_T3
|
es5id: 15.4.4.10_A3_T3
|
||||||
description: length = -1
|
description: length = -1
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: "[[Get]] from not an inherited property"
|
info: "[[Get]] from not an inherited property"
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A4_T1
|
es5id: 15.4.4.10_A4_T1
|
||||||
description: "[[Prototype]] of Array instance is Array.prototype"
|
description: "[[Prototype]] of Array instance is Array.prototype"
|
||||||
---*/
|
---*/
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
info: The slice property of Array can't be used as constructor
|
info: The slice property of Array can't be used as constructor
|
||||||
|
esid: sec-array.prototype.slice
|
||||||
es5id: 15.4.4.10_A5.7
|
es5id: 15.4.4.10_A5.7
|
||||||
description: >
|
description: >
|
||||||
If property does not implement the internal [[Construct]] method,
|
If property does not implement the internal [[Construct]] method,
|
||||||
|
|
|
@ -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.slice
|
||||||
es6id: 22.1.3.22
|
es6id: 22.1.3.22
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.slice.name is "slice".
|
Array.prototype.slice.name is "slice".
|
||||||
|
|
Loading…
Reference in New Issue