From 1122913fd99ba50fac0bb6ac7afec9deeb7063c4 Mon Sep 17 00:00:00 2001 From: deathbearbrown Date: Fri, 30 Jun 2017 10:31:00 -0700 Subject: [PATCH] add esid to array/prototype/slice tests --- .../Array/prototype/slice/15.4.4.10-10-c-ii-1.js | 1 + .../Array/prototype/slice/S15.4.4.10_A1.1_T1.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A1.1_T2.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.1_T3.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.1_T4.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.1_T5.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A1.1_T6.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A1.1_T7.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A1.2_T1.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.2_T2.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.2_T3.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.2_T4.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.3_T1.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A1.3_T2.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.3_T3.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.3_T4.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.4_T1.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A1.4_T2.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A1.4_T3.js | 9 +++++---- .../Array/prototype/slice/S15.4.4.10_A1.4_T4.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.5_T1.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A1.5_T2.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A2.1_T1.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A2.1_T2.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2.1_T3.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A2.1_T4.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2.1_T5.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2.2_T1.js | 5 +++-- .../Array/prototype/slice/S15.4.4.10_A2.2_T2.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A2.2_T3.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A2.2_T4.js | 3 ++- .../Array/prototype/slice/S15.4.4.10_A2.2_T5.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T1.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T2.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T3.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T4.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T5.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A2_T6.js | 7 ++++--- .../Array/prototype/slice/S15.4.4.10_A3_T1.js | 1 + .../Array/prototype/slice/S15.4.4.10_A3_T2.js | 1 + .../Array/prototype/slice/S15.4.4.10_A3_T3.js | 1 + .../Array/prototype/slice/S15.4.4.10_A4_T1.js | 13 +++++++------ .../Array/prototype/slice/S15.4.4.10_A5.7.js | 1 + test/built-ins/Array/prototype/slice/name.js | 1 + 44 files changed, 122 insertions(+), 78 deletions(-) diff --git a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js index 87c916c8e9..bd1c365821 100644 --- a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js +++ b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js @@ -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 diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js index cf7c65ca1f..aa14ed1d9d 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,12 +32,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(0,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(0,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js index 0f308f6bae..163165a0f5 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(3,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js index 056f7448fd..f1c458caa5 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(4,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js index ddb8105818..e5fbfa861a 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(5,5); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js index 8e3d6fbe50..daa0b9f5d1 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(3,5); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 3) { @@ -31,7 +32,7 @@ if (arr[0] !== 3) { //CHECK#4 if (arr[1] !== 4) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(3,5); arr[1] === 4. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js index 7d017f49d3..1af6ffc12e 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js @@ -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; ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(2,4); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -31,7 +32,7 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(2,4); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js index 4f23518ce5..eccc9610c7 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(3,6); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 3) { @@ -31,7 +32,7 @@ if (arr[0] !== 3) { //CHECK#4 if (arr[1] !== 4) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(3,6); arr[1] === 4. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js index 289a3dd345..64d01a7372 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 1) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-3,3); arr.length === 1. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js index 8cfc14cccf..a5ed017723 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 1) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-1,5); arr.length === 1. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 4) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js index a1b69a6a08..ea02802b0d 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 1) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-5,1); arr.length === 1. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js index 4f1f95b32f..c6f7fe4d60 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 5) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-9,5); arr.length === 5. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js index 3a5ca0a527..6cc5713b07 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,-2); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,12 +32,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(0,-2); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(0,-2); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js index 3e1e1e0891..0407b087ac 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(1,-4); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js index 18659a18e3..182c66915e 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,-5); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js index 059c9cabad..b4b27a8342 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(4,-9); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js index 0ae2c789fb..a470f02b0b 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-5,-2); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,12 +32,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(-5,-2); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(-5,-2); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js index f7c958d3b3..433902c38b 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-3,-1); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -31,7 +32,7 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(-3,-1); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js index 05f9f193e9..b97185e0b1 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-9,-1); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -36,13 +37,13 @@ if (arr[1] !== 1) { //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(-9,-1); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3,4]; var arr = x.slice(-9,-1); arr[3] === 3. Actual: ' + (arr[3])); -} - +} + //CHECK#7 if (arr[4] !== undefined) { $ERROR('#7: var x = [0,1,2,3,4]; var arr = x.slice(-9,-1); arr[4] === undefined. Actual: ' + (arr[4])); diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js index 4448883d94..9e1ba35aed 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-6,-6); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js index 793dbe7292..dc61d20fad 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(3, undefined); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 3) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js index 33fb10e0d8..7bdeb39832 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(-2); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 3) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js index 7e069f0c40..d81cd4a98a 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(2.5,4); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -29,7 +30,7 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(2.5,4); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js index 74ce071108..6c86d2e502 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(NaN,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,12 +30,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(NaN,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(NaN,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js index 38966ad6af..d61be15bf8 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(Number.POSITIVE_INFINITY,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js index 079f0e473c..86c49a99a6 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(Number.NEGATIVE_INFINITY,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,12 +30,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(Number.NEGATIVE_INFINITY,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(Number.NEGATIVE_INFINITY,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js index afdb2e4293..57e496f09c 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,12 +30,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js index 6a5ba7644d..5614b6d5ae 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 2) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(2,4.5); arr.length === 2. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -29,7 +30,7 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(2,4.5); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js index 9f1b697ee3..1ba6d49717 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,NaN); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js index 908be05ec0..71a12e4c5e 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 5) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,Number.POSITIVE_INFINITY); arr.length === 5. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js index ad709f9f7e..b4e12693c4 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,Number.NEGATIVE_INFINITY); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js index c2e147a02b..17e113c6b9 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3,4]; var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,12 +30,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3,4]; var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3,4]; var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js index 4c175f9196..acc3f87bc3 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js @@ -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, @@ -30,7 +31,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -40,12 +41,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js index d962c639f6..d0d7e2f59f 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js @@ -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 @@ -30,7 +31,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -40,12 +41,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js index ea423607ab..2650c4a505 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js @@ -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, @@ -30,7 +31,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,-2); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -40,12 +41,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,-2); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(0,-2); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js index 1d3e9bc41c..e91b24b3ee 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js @@ -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 @@ -30,7 +31,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,-2); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -40,12 +41,12 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,-2); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(-5,-2); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T5.js index 1ca45ac797..c24bc3217f 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T5.js @@ -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 ---*/ @@ -28,7 +29,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -38,12 +39,12 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 4) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2); arr[2] === 4. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T6.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T6.js index 9030e47dba..08108ce8d4 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T6.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T6.js @@ -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 ---*/ @@ -28,7 +29,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2, undefined); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 2) { @@ -38,12 +39,12 @@ if (arr[0] !== 2) { //CHECK#4 if (arr[1] !== 3) { $ERROR('#4: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2, undefined); arr[1] === 3. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 4) { $ERROR('#5: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = 0; obj[1] = 1; obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; var arr = obj.slice(2, undefined); arr[2] === 4. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== undefined) { diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js index 47db35e0d9..1a4ad0bb16 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js index 76c9a1378e..7c65b5fbe8 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js index 991e0d1819..a5b78f6f08 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A4_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A4_T1.js index 690e63fc03..5d7bf0ca0b 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A4_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A4_T1.js @@ -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" ---*/ @@ -13,16 +14,16 @@ x.length = 2; var arr = x.slice(); //CHECK#1 -if (arr[0] !== 0) { - $ERROR('#1: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr[0] === 0. Actual: ' + (arr[0])); +if (arr[0] !== 0) { + $ERROR('#1: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr[0] === 0. Actual: ' + (arr[0])); } //CHECK#2 -if (arr[1] !== 1) { - $ERROR('#2: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr[1] === 1. Actual: ' + (arr[1])); +if (arr[1] !== 1) { + $ERROR('#2: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr[1] === 1. Actual: ' + (arr[1])); } //CHECK#3 -if (arr.hasOwnProperty('1') !== true) { - $ERROR('#3: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr.hasOwnProperty(\'1\') === true. Actual: ' + (arr.hasOwnProperty('1'))); +if (arr.hasOwnProperty('1') !== true) { + $ERROR('#3: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.slice(); arr.hasOwnProperty(\'1\') === true. Actual: ' + (arr.hasOwnProperty('1'))); } diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A5.7.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A5.7.js index 95f2765f98..45604b2905 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A5.7.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A5.7.js @@ -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, diff --git a/test/built-ins/Array/prototype/slice/name.js b/test/built-ins/Array/prototype/slice/name.js index 1315400d38..03e2d7f772 100644 --- a/test/built-ins/Array/prototype/slice/name.js +++ b/test/built-ins/Array/prototype/slice/name.js @@ -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".