From 20b8c9b8963ae389a000c89c96e4780277bdbb96 Mon Sep 17 00:00:00 2001 From: deathbearbrown <deathbearbrown@gmail.com> Date: Fri, 30 Jun 2017 14:17:38 -0700 Subject: [PATCH] add esid to array/prototype/splice tests --- .../Array/prototype/splice/15.4.4.12-9-a-1.js | 1 + .../prototype/splice/15.4.4.12-9-c-ii-1.js | 1 + .../prototype/splice/S15.4.4.12_A1.1_T1.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.1_T2.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.1_T3.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.1_T4.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.1_T5.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.1_T6.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.2_T1.js | 5 +- .../prototype/splice/S15.4.4.12_A1.2_T2.js | 5 +- .../prototype/splice/S15.4.4.12_A1.2_T3.js | 5 +- .../prototype/splice/S15.4.4.12_A1.2_T4.js | 5 +- .../prototype/splice/S15.4.4.12_A1.2_T5.js | 5 +- .../prototype/splice/S15.4.4.12_A1.3_T1.js | 5 +- .../prototype/splice/S15.4.4.12_A1.3_T2.js | 5 +- .../prototype/splice/S15.4.4.12_A1.3_T3.js | 5 +- .../prototype/splice/S15.4.4.12_A1.3_T4.js | 5 +- .../prototype/splice/S15.4.4.12_A1.3_T5.js | 5 +- .../prototype/splice/S15.4.4.12_A1.4_T1.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.4_T2.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.4_T3.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.4_T4.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.4_T5.js | 9 ++-- .../prototype/splice/S15.4.4.12_A1.4_T6.js | 11 +++-- .../prototype/splice/S15.4.4.12_A1.5_T1.js | 7 +-- .../prototype/splice/S15.4.4.12_A1.5_T2.js | 7 +-- .../prototype/splice/S15.4.4.12_A2.1_T1.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2.1_T2.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2.1_T3.js | 7 +-- .../prototype/splice/S15.4.4.12_A2.1_T4.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2.1_T5.js | 1 + .../prototype/splice/S15.4.4.12_A2.2_T1.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2.2_T2.js | 5 +- .../prototype/splice/S15.4.4.12_A2.2_T3.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2.2_T4.js | 5 +- .../prototype/splice/S15.4.4.12_A2.2_T5.js | 9 ++-- .../prototype/splice/S15.4.4.12_A2_T1.js | 11 +++-- .../prototype/splice/S15.4.4.12_A2_T2.js | 5 +- .../prototype/splice/S15.4.4.12_A2_T3.js | 5 +- .../prototype/splice/S15.4.4.12_A2_T4.js | 11 +++-- .../prototype/splice/S15.4.4.12_A3_T1.js | 5 +- .../prototype/splice/S15.4.4.12_A3_T3.js | 3 +- .../prototype/splice/S15.4.4.12_A4_T1.js | 49 ++++++++++--------- .../prototype/splice/S15.4.4.12_A4_T2.js | 49 ++++++++++--------- .../prototype/splice/S15.4.4.12_A4_T3.js | 41 ++++++++-------- .../Array/prototype/splice/S15.4.4.12_A5.7.js | 1 + .../prototype/splice/S15.4.4.12_A6.1_T1.js | 1 + .../prototype/splice/S15.4.4.12_A6.1_T2.js | 1 + .../prototype/splice/S15.4.4.12_A6.1_T3.js | 5 +- .../splice/called_with_one_argument.js | 1 + test/built-ins/Array/prototype/splice/name.js | 1 + .../prototype/splice/set_length_no_args.js | 1 + 52 files changed, 250 insertions(+), 198 deletions(-) diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js index ce423f3e34..8ec20c11c8 100644 --- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js +++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js @@ -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 diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js index 0fd56380b9..e911470f01 100644 --- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-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.splice es5id: 15.4.4.12-9-c-ii-1 description: > Array.prototype.splice will splice an array even when diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js index 6e35e6f85d..2b54bb727b 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(0,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(0,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js index 17af0fa92e..7b7a081abe 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 4) { @@ -51,7 +52,7 @@ if (x[0] !== 4) { //CHECK#8 if (x[1] !== 5) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); x[1] === 5. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js index 3d29e493b9..bcfc9f878e 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,4); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(0,4); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(0,4); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,4); arr[3] === 3. Actual: ' + (arr[3])); -} +} //CHECK#7 if (x.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js index 39b8876250..571d06a06a 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -31,17 +32,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { @@ -51,7 +52,7 @@ if (x[0] !== 0) { //CHECK#8 if (x[1] !== 4) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); x[1] === 4. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 5) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js index 535be4efda..d4a764d2b8 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,5); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(0,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(0,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,5); arr[3] === 3. Actual: ' + (arr[3])); -} +} //CHECK#7 if (x.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js index 75ae5c562b..d7c9c1f1a6 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -31,17 +32,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { @@ -51,7 +52,7 @@ if (x[0] !== 0) { //CHECK#8 if (x[1] !== 4) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); x[1] === 4. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 5) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js index 71f0abc8bb..39b49d75e8 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(-2,-1); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(-2,-1); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js index aaa63c5926..02bbb8a2a4 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(-1,-1); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(-1,-1); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js index 9daad3bd86..8c96be45f0 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(-2,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(-2,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js index 3ffe580936..5e4a947aaa 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(-1,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(-1,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js index 45ce48a505..b43a5b67a2 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(-3,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(-3,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js index 9dbced30cc..ae7edf24c8 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(0,-1); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(0,-1); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js index 0cf8fd473f..43bc96cf82 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(2,-1); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(2,-1); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js index 0cafe6e31d..dabcf865b3 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(0,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(0,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js index 2a42f10f33..7a59d1d815 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(2,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(2,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js index ff9c6b6b14..d2d4a4f967 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js @@ -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 ---*/ @@ -21,12 +22,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(3,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 4) { $ERROR('#2: var x = [0,1]; var arr = x.splice(3,-1,2,3); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js index 2c3a3cb276..35cdbdf99c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-4,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-4,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-4,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-4,3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js index f8b7530dba..99c6bf6a09 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 4) { @@ -51,7 +52,7 @@ if (x[0] !== 4) { //CHECK#8 if (x[1] !== 5) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); x[1] === 5. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js index a7b825f837..f7ed2102da 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-5,4); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-5,4); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-5,4); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-5,4); arr[3] === 3. Actual: ' + (arr[3])); -} +} //CHECK#7 if (x.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js index 007b494b93..056d587484 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -31,17 +32,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { @@ -51,7 +52,7 @@ if (x[0] !== 0) { //CHECK#8 if (x[1] !== 4) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); x[1] === 4. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 5) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js index f4f50d376e..650833ea81 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-9,5); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,17 +32,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-9,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-9,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-9,5); arr[3] === 3. Actual: ' + (arr[3])); -} +} //CHECK#7 if (x.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js index 6fb7238b72..a1a3a72f6d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -31,17 +32,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); x.length === 3. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { @@ -51,7 +52,7 @@ if (x[0] !== 0) { //CHECK#8 if (x[1] !== 4) { $ERROR('#8: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); x[1] === 4. Actual: ' + (x[1])); -} +} //CHECK#9 if (x[2] !== 5) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js index c343664ecd..ec581518de 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js @@ -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 ---*/ @@ -19,12 +20,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(undefined, undefined); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (x.length !== 4) { $ERROR('#3: var x = [0,1,2,3]; var arr = x.splice(undefined, undefined); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#4 if (x[0] !== 0) { @@ -34,7 +35,7 @@ if (x[0] !== 0) { //CHECK#5 if (x[1] !== 1) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(undefined, undefined); x[1] === 1. Actual: ' + (x[1])); -} +} //CHECK#6 if (x[2] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js index dfac56d559..5551f3596c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js @@ -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 ---*/ @@ -19,12 +20,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(1,undefined); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (x.length !== 4) { $ERROR('#3: var x = [0,1,2,3]; var arr = x.splice(1,undefined); x.length === 4. Actual: ' + (x.length)); -} +} //CHECK#4 if (x[0] !== 0) { @@ -34,7 +35,7 @@ if (x[0] !== 0) { //CHECK#5 if (x[1] !== 1) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(1,undefined); x[1] === 1. Actual: ' + (x[1])); -} +} //CHECK#6 if (x[2] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js index 5f055e3d96..32848cc6fb 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(1.5,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -29,17 +30,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(1.5,3); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(1.5,3); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(1.5,3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js index e8062156e0..4e379cda8f 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(NaN,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,17 +30,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(NaN,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(NaN,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(NaN,3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js index c76d1d6c5c..807c0a41ad 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 0) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(Number.POSITIVE_INFINITY,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#3 if (x[0] !== 0) { @@ -29,12 +30,12 @@ if (x[0] !== 0) { //CHECK#4 if (x[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var x = x.splice(Number.POSITIVE_INFINITY,3); x[1] === 1. Actual: ' + (x[1])); -} +} //CHECK#5 if (x[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var x = x.splice(Number.POSITIVE_INFINITY,3); x[2] === 2. Actual: ' + (x[2])); -} +} //CHECK#6 if (x[3] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js index e90b0815d6..083ed9ca89 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(Number.NEGATIVE_INFINITY,3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,17 +30,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(Number.NEGATIVE_INFINITY,3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(Number.NEGATIVE_INFINITY,3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(Number.NEGATIVE_INFINITY,3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js index 0103c83aa4..51a7aa7654 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js index d24f599b18..8a8cc929dc 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(1,3.5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 1) { @@ -29,17 +30,17 @@ if (arr[0] !== 1) { //CHECK#4 if (arr[1] !== 2) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(1,3.5); arr[1] === 2. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 3) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(1,3.5); arr[2] === 3. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(1,3.5); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js index 7e7aea1da3..c97e14734c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js @@ -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 ---*/ @@ -19,12 +20,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(0,NaN); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(0,NaN); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js index dcb3d2281d..8622ff7654 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 4) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,Number.POSITIVE_INFINITY); arr.length === 4. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,17 +30,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(0,Number.POSITIVE_INFINITY); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice(0,Number.POSITIVE_INFINITY); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (arr[3] !== 3) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,Number.POSITIVE_INFINITY); arr[3] === 3. Actual: ' + (arr[3])); -} +} //CHECK#7 if (x.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js index d53cae68af..6c3008074f 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js @@ -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 ---*/ @@ -19,12 +20,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var x = [0,1]; var arr = x.splice(0,Number.NEGATIVE_INFINITY); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (x.length !== 2) { $ERROR('#2: var x = [0,1]; var arr = x.splice(0,Number.NEGATIVE_INFINITY); x.length === 2. Actual: ' + (x.length)); -} +} //CHECK#3 if (x[0] !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js index 41c4815642..d42f023fc9 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js @@ -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 ---*/ @@ -19,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -29,17 +30,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice(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]; var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js index 44d672a988..bf7d0beb7b 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js @@ -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 @@ -25,7 +26,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(0,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -35,17 +36,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(0,3,4,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(0,3,4,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (obj.length !== 3) { $ERROR('#6: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(0,3,4,5); obj.length === 3. Actual: ' + (obj.length)); -} +} //CHECK#7 if (obj[0] !== 4) { @@ -55,7 +56,7 @@ if (obj[0] !== 4) { //CHECK#8 if (obj[1] !== 5) { $ERROR('#8: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(0,3,4,5); obj[1] === 5. Actual: ' + (obj[1])); -} +} //CHECK#9 if (obj[2] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js index 8d4a9eb8bf..69067d215c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js @@ -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 @@ -25,12 +26,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(-2,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (obj.length !== 4) { $ERROR('#2: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(-2,-1,2,3); obj.length === 4. Actual: ' + (obj.length)); -} +} //CHECK#3 if (obj[0] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js index cb07f339a1..432ac0e52d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js @@ -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 @@ -25,12 +26,12 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#1 if (arr.length !== 0) { $ERROR('#1: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(0,-1,2,3); arr.length === 0. Actual: ' + (arr.length)); -} +} //CHECK#2 if (obj.length !== 4) { $ERROR('#2: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(0,-1,2,3); obj.length === 4. Actual: ' + (obj.length)); -} +} //CHECK#3 if (obj[0] !== 2) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js index a37077ed38..62eaee9137 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js @@ -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 @@ -25,7 +26,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(-4,3,4,5); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -35,17 +36,17 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(-4,3,4,5); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(-4,3,4,5); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (obj.length !== 3) { $ERROR('#6: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(-4,3,4,5); obj.length === 3. Actual: ' + (obj.length)); -} +} //CHECK#7 if (obj[0] !== 4) { @@ -55,7 +56,7 @@ if (obj[0] !== 4) { //CHECK#8 if (obj[1] !== 5) { $ERROR('#8: var obj = {0:0,1:1,2:2,3:3}; obj.length = 4; obj.splice = Array.prototype.splice; var arr = obj.splice(-4,3,4,5); obj[1] === 5. Actual: ' + (obj[1])); -} +} //CHECK#9 if (obj[2] !== 3) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js index b5a4d5a329..4d92ace055 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js @@ -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 ---*/ @@ -27,12 +28,12 @@ if (obj.length !== 4294967295) { //CHECK#3 if (obj[0] !== "x") { $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0])); -} +} //CHECK#4 if (obj[4294967295] !== undefined) { $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); -} +} //CHECK#5 if (arr[0] !== "y") { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js index fb5fc1fcec..3232c9a112 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js @@ -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 ---*/ @@ -21,7 +22,7 @@ if (arr.length !== 0) { //CHECK#2 if (arr[0] !== undefined) { $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0])); -} +} //CHECK#3 if (obj.length !== 0) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js index a6736f48da..ed0ab16aa5 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js @@ -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] @@ -14,33 +15,33 @@ var x = [0,1]; var arr = x.splice(1,1); //CHECK#1 -if (arr.length !== 1) { - $ERROR('#1: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#1: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#2 -if (arr[0] !== 1) { - $ERROR('#2: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr[0] === 1. Actual: ' + (arr[0])); +if (arr[0] !== 1) { + $ERROR('#2: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr[0] === 1. Actual: ' + (arr[0])); } //CHECK#3 -if (arr[1] !== -1) { - $ERROR('#3: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr[1] === -1. Actual: ' + (arr[1])); +if (arr[1] !== -1) { + $ERROR('#3: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); arr[1] === -1. Actual: ' + (arr[1])); } //CHECK#4 -if (x.length !== 1) { - $ERROR('#4: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x.length === 1. Actual: ' + (x.length)); +if (x.length !== 1) { + $ERROR('#4: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x.length === 1. Actual: ' + (x.length)); } //CHECK#5 -if (x[0] !== 0) { - $ERROR('#5: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x[0] === 0. Actual: ' + (x[0])); +if (x[0] !== 0) { + $ERROR('#5: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x[0] === 0. Actual: ' + (x[0])); } //CHECK#6 -if (x[1] !== -1) { - $ERROR('#6: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x[1] === -1. Actual: ' + (x[1])); +if (x[1] !== -1) { + $ERROR('#6: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1); x[1] === -1. Actual: ' + (x[1])); } @@ -51,31 +52,31 @@ x = {0:0, 1:1}; var arr = x.splice(1,1); //CHECK#7 -if (arr.length !== 1) { - $ERROR('#7: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#7: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#8 -if (arr[0] !== 1) { - $ERROR('#8: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr[0] === 1. Actual: ' + (arr[0])); +if (arr[0] !== 1) { + $ERROR('#8: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr[0] === 1. Actual: ' + (arr[0])); } //CHECK#9 -if (arr[1] !== -1) { - $ERROR('#9: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr[1] === -1. Actual: ' + (arr[1])); +if (arr[1] !== -1) { + $ERROR('#9: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); arr[1] === -1. Actual: ' + (arr[1])); } //CHECK#10 -if (x.length !== 1) { - $ERROR('#10: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x.length === 1. Actual: ' + (x.length)); +if (x.length !== 1) { + $ERROR('#10: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x.length === 1. Actual: ' + (x.length)); } //CHECK#11 -if (x[0] !== 0) { - $ERROR('#11: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x[0] === 0. Actual: ' + (x[0])); +if (x[0] !== 0) { + $ERROR('#11: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x[0] === 0. Actual: ' + (x[0])); } //CHECK#12 -if (x[1] !== -1) { - $ERROR('#12: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x[1] === -1. Actual: ' + (x[1])); +if (x[1] !== -1) { + $ERROR('#12: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1); x[1] === -1. Actual: ' + (x[1])); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js index 2a4e1c9c56..3c203ee251 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js @@ -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] @@ -14,33 +15,33 @@ var x = [0,1]; var arr = x.splice(1,1,2); //CHECK#1 -if (arr.length !== 1) { - $ERROR('#1: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#1: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#2 -if (arr[0] !== 1) { - $ERROR('#2: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr[0] === 1. Actual: ' + (arr[0])); +if (arr[0] !== 1) { + $ERROR('#2: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr[0] === 1. Actual: ' + (arr[0])); } //CHECK#3 -if (arr[1] !== -1) { - $ERROR('#3: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr[1] === -1. Actual: ' + (arr[1])); +if (arr[1] !== -1) { + $ERROR('#3: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); arr[1] === -1. Actual: ' + (arr[1])); } //CHECK#4 -if (x.length !== 2) { - $ERROR('#4: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x.length === 2. Actual: ' + (x.length)); +if (x.length !== 2) { + $ERROR('#4: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x.length === 2. Actual: ' + (x.length)); } //CHECK#5 -if (x[0] !== 0) { - $ERROR('#5: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x[0] === 0. Actual: ' + (x[0])); +if (x[0] !== 0) { + $ERROR('#5: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x[0] === 0. Actual: ' + (x[0])); } //CHECK#6 -if (x[1] !== 2) { - $ERROR('#6: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x[1] === 2. Actual: ' + (x[1])); +if (x[1] !== 2) { + $ERROR('#6: Array.prototype[1] = -1; x = [0,1]; var arr = x.splice(1,1,2); x[1] === 2. Actual: ' + (x[1])); } @@ -51,31 +52,31 @@ x = {0:0, 1:1}; var arr = x.splice(1,1,2); //CHECK#7 -if (arr.length !== 1) { - $ERROR('#7: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#7: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#8 -if (arr[0] !== 1) { - $ERROR('#8: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr[0] === 1. Actual: ' + (arr[0])); +if (arr[0] !== 1) { + $ERROR('#8: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr[0] === 1. Actual: ' + (arr[0])); } //CHECK#9 -if (arr[1] !== -1) { - $ERROR('#9: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr[1] === -1. Actual: ' + (arr[1])); +if (arr[1] !== -1) { + $ERROR('#9: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); arr[1] === -1. Actual: ' + (arr[1])); } //CHECK#10 -if (x.length !== 2) { - $ERROR('#10: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x.length === 2. Actual: ' + (x.length)); +if (x.length !== 2) { + $ERROR('#10: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x.length === 2. Actual: ' + (x.length)); } //CHECK#11 -if (x[0] !== 0) { - $ERROR('#11: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x[0] === 0. Actual: ' + (x[0])); +if (x[0] !== 0) { + $ERROR('#11: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x[0] === 0. Actual: ' + (x[0])); } //CHECK#12 -if (x[1] !== 2) { - $ERROR('#12: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x[1] === 2. Actual: ' + (x[1])); +if (x[1] !== 2) { + $ERROR('#12: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; x = {0:0, 1:1}; var arr = x.splice(1,1,2); x[1] === 2. Actual: ' + (x[1])); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js index 49424acf81..db412def32 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js @@ -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] @@ -15,30 +16,30 @@ x.length = 1; var arr = x.splice(0,1); //CHECK#1 -if (arr.length !== 1) { - $ERROR('#1: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#1: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#2 -if (arr[0] !== -1) { - $ERROR('#2: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); arr[0] === -1. Actual: ' + (arr[0])); +if (arr[0] !== -1) { + $ERROR('#2: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); arr[0] === -1. Actual: ' + (arr[0])); } delete arr[0]; //CHECK#3 -if (arr[0] !== -1) { - $ERROR('#3: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); delete arr[0]; arr[0] === -1. Actual: ' + (arr[0])); +if (arr[0] !== -1) { + $ERROR('#3: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); delete arr[0]; arr[0] === -1. Actual: ' + (arr[0])); } //CHECK#4 -if (x.length !== 0) { - $ERROR('#4: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#4: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); x.length === 0. Actual: ' + (x.length)); } //CHECK#5 -if (x[0] !== -1) { - $ERROR('#5: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); x[0] === -1. Actual: ' + (x[0])); +if (x[0] !== -1) { + $ERROR('#5: Array.prototype[0] = -1; x = []; x.length = 1; var arr = x.splice(0,1); x[0] === -1. Actual: ' + (x[0])); } Object.prototype[0] = -1; @@ -48,28 +49,28 @@ x = {}; var arr = x.splice(0,1); //CHECK#6 -if (arr.length !== 1) { - $ERROR('#6: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); arr.length === 1. Actual: ' + (arr.length)); +if (arr.length !== 1) { + $ERROR('#6: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); arr.length === 1. Actual: ' + (arr.length)); } //CHECK#7 -if (arr[0] !== -1) { - $ERROR('#7: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); arr[0] === -1. Actual: ' + (arr[0])); +if (arr[0] !== -1) { + $ERROR('#7: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); arr[0] === -1. Actual: ' + (arr[0])); } delete arr[0]; //CHECK#8 -if (arr[0] !== -1) { - $ERROR('#8: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); delete arr[0]; arr[0] === -1. Actual: ' + (arr[0])); +if (arr[0] !== -1) { + $ERROR('#8: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); delete arr[0]; arr[0] === -1. Actual: ' + (arr[0])); } //CHECK#9 -if (x.length !== 0) { - $ERROR('#9: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#9: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); x.length === 0. Actual: ' + (x.length)); } //CHECK#10 -if (x[0] !== -1) { - $ERROR('#10: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); x[0] === -1. Actual: ' + (x[0])); +if (x[0] !== -1) { + $ERROR('#10: Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; var arr = x.splice(0,1); x[0] === -1. Actual: ' + (x[0])); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A5.7.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A5.7.js index bd4084b05d..3952ff6355 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A5.7.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A5.7.js @@ -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, diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js index 87ddb735c6..3c0ff7998a 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js index 81e5e81e69..e756767321 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js index beb38a5563..e568f40d6c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js @@ -3,13 +3,14 @@ /*--- 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 ---*/ -var a = { +var a = { get length() { return 0; }, - splice: Array.prototype.splice + splice: Array.prototype.splice }; try { diff --git a/test/built-ins/Array/prototype/splice/called_with_one_argument.js b/test/built-ins/Array/prototype/splice/called_with_one_argument.js index ea8c7c5394..310df466a4 100644 --- a/test/built-ins/Array/prototype/splice/called_with_one_argument.js +++ b/test/built-ins/Array/prototype/splice/called_with_one_argument.js @@ -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"]; diff --git a/test/built-ins/Array/prototype/splice/name.js b/test/built-ins/Array/prototype/splice/name.js index 7dd3bf5e79..d31b41da23 100644 --- a/test/built-ins/Array/prototype/splice/name.js +++ b/test/built-ins/Array/prototype/splice/name.js @@ -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". diff --git a/test/built-ins/Array/prototype/splice/set_length_no_args.js b/test/built-ins/Array/prototype/splice/set_length_no_args.js index ebc5957a7e..d5f447432b 100644 --- a/test/built-ins/Array/prototype/splice/set_length_no_args.js +++ b/test/built-ins/Array/prototype/splice/set_length_no_args.js @@ -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 ---*/ -- GitLab