add esid to array/prototype/slice tests

This commit is contained in:
deathbearbrown 2017-06-30 10:31:00 -07:00 committed by Rick Waldron
parent 518df03a59
commit 1122913fd9
44 changed files with 122 additions and 78 deletions

View File

@ -2,6 +2,7 @@
// 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
description: >
Array.prototype.slice will slice a string from start to end when

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.1_T6
description: length > end > start > 0;
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.1_T7
description: end > length > start > 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.2_T1
description: length > end = abs(start), start < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.2_T2
description: length = end > abs(start), start < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.2_T3
description: abs(start) = length > end > 0, start < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is positive, use min(end, length)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.2_T4
description: abs(start) > length = end > 0, start < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.3_T1
description: length > abs(end) > start = 0, end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.3_T2
description: length > abs(end) > start > 0, end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.3_T3
description: length = abs(end) > start = 0, end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is positive, use min(start, length).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.3_T4
description: abs(end) > length > start > 0, end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.4_T1
description: -length = start < end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.4_T2
description: -length < start < end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.4_T3
description: start < -length < end < 0
---*/

View File

@ -5,6 +5,7 @@
info: >
If start is negative, use max(start + length, 0).
If end is negative, use max(end + length, 0)
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.4_T4
description: start = end < -length
---*/

View File

@ -3,6 +3,7 @@
/*---
info: If end is undefined use length
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.5_T1
description: end === undefined
---*/

View File

@ -3,6 +3,7 @@
/*---
info: If end is undefined use length
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A1.5_T2
description: end is absent
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,7 @@
info: >
The slice function is intentionally generic.
It does not require that its this value be an Array object
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A2_T5
description: If end is undefined use length
---*/

View File

@ -5,6 +5,7 @@
info: >
The slice function is intentionally generic.
It does not require that its this value be an Array object
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A2_T6
description: If end is undefined use length
---*/

View File

@ -3,6 +3,7 @@
/*---
info: Check ToLength(length) for non Array objects
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A3_T1
description: length = 4294967296
---*/

View File

@ -3,6 +3,7 @@
/*---
info: Check ToLength(length) for non Array objects
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A3_T2
description: length = 4294967297
---*/

View File

@ -3,6 +3,7 @@
/*---
info: Check ToUint32(length) for non Array objects
esid: sec-array.prototype.slice
es5id: 15.4.4.10_A3_T3
description: length = -1
---*/

View File

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

View File

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

View File

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