aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.4/15.4.4/15.4.4.12
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.4/15.4.4/15.4.4.12')
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js36
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js87
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js11
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js11
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js11
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js11
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js17
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js19
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js19
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js17
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js13
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js12
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js16
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js14
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js12
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js12
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js11
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js13
53 files changed, 369 insertions, 484 deletions
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js
index f3785760e..37df1ab40 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js
@@ -1,17 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-a-1.js
- * @description Array.prototype.splice - 'from' is the result of ToString(actualStart+k) in an Array
- */
-
-
-function testcase() {
- var arrObj = [1, 2, 3];
- var newArrObj = arrObj.splice(-2, 1);
- return newArrObj.length === 1 && newArrObj[0] === 2;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.splice - 'from' is the result of
+ ToString(actualStart+k) in an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var arrObj = [1, 2, 3];
+ var newArrObj = arrObj.splice(-2, 1);
+ return newArrObj.length === 1 && newArrObj[0] === 2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js
index f2906231d..305442ce9 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js
@@ -1,42 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.12/15.4.4.12-9-c-ii-1.js
- * @description Array.prototype.splice will splice an array even when Array.prototype has index '0' set to read-only and 'fromPresent' less than 'actualDeleteCount (Step 9.c.ii)
- */
-
-
-function testcase() {
- try {
- var arr = ["a", "b", "c"];
- Array.prototype[0] = "test";
- var newArr = arr.splice(2, 1, "d");
-
- var verifyValue = false;
- verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d"
- && newArr[0] === "c" && newArr.length === 1;
-
- var verifyEnumerable = false;
- for (var p in newArr) {
- if (newArr.hasOwnProperty("0") && p === "0") {
- verifyEnumerable = true;
- }
- }
-
- var verifyWritable = false;
- newArr[0] = 12;
- verifyWritable = newArr[0] === 12;
-
- var verifyConfigurable = false;
- delete newArr[0];
- verifyConfigurable = newArr.hasOwnProperty("0");
-
- return verifyValue && !verifyConfigurable && verifyEnumerable && verifyWritable;
- } finally {
- delete Array.prototype[0];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.splice will splice an array even when
+ Array.prototype has index '0' set to read-only and 'fromPresent'
+ less than 'actualDeleteCount (Step 9.c.ii)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ var arr = ["a", "b", "c"];
+ Array.prototype[0] = "test";
+ var newArr = arr.splice(2, 1, "d");
+
+ var verifyValue = false;
+ verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d"
+ && newArr[0] === "c" && newArr.length === 1;
+
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (newArr.hasOwnProperty("0") && p === "0") {
+ verifyEnumerable = true;
+ }
+ }
+
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
+
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
+
+ return verifyValue && !verifyConfigurable && verifyEnumerable && verifyWritable;
+ } finally {
+ delete Array.prototype[0];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js
index 1c036ffef..fb94ab4be 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T1.js
- * @description length > deleteCount > start = 0, itemCount = 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length > deleteCount > start = 0, itemCount = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,3);
@@ -46,5 +45,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(0,3); x[0] === 3. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js
index f3e165735..c8926034d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T2.js
- * @description length > deleteCount > start = 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length > deleteCount > start = 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,3,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 5) {
//CHECK#9
if (x[2] !== 3) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(0,3,4,5); x[2] === 3. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js
index 2632b0fee..aac957875 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T3.js
- * @description length = deleteCount > start = 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length = deleteCount > start = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,4);
@@ -46,5 +45,4 @@ if (arr[3] !== 3) {
//CHECK#7
if (x.length !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(0,4); x.length === 0. Actual: ' + (x.length));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js
index ac33a5f1e..59bca014e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T4.js
- * @description length > deleteCount > start > 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length > deleteCount > start > 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(1,3,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 4) {
//CHECK#9
if (x[2] !== 5) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(1,3,4,5); x[2] === 5. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js
index d371e5c7d..9177ce0b7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T5.js
- * @description deleteCount > length > start = 0, itemCount = 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: deleteCount > length > start = 0, itemCount = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,5);
@@ -46,5 +45,4 @@ if (arr[3] !== 3) {
//CHECK#7
if (x.length !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(0,5); x.length === 0. Actual: ' + (x.length));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js
index 09592280f..cebbd914a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.1_T6.js
- * @description length = deleteCount > start > 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length = deleteCount > start > 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(1,4,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 4) {
//CHECK#9
if (x[2] !== 5) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(1,4,4,5); x[2] === 5. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js
index e99e11eae..cb10531e2 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T1.js
- * @description -length = start < deleteCount < 0, itemCount = 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is negative, use 0
+description: -length = start < deleteCount < 0, itemCount = 0
+---*/
var x = [0,1];
var arr = x.splice(-2,-1);
@@ -36,5 +35,4 @@ if (x[0] !== 0) {
//CHECK#4
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(-2,-1); x[1] === 1. Actual: ' + (x[1]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js
index c8dfd4109..2c88e6cff 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T2.js
- * @description -length < start = deleteCount < 0, itemCount = 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is negative, use 0
+description: -length < start = deleteCount < 0, itemCount = 0
+---*/
var x = [0,1];
var arr = x.splice(-1,-1);
@@ -36,5 +35,4 @@ if (x[0] !== 0) {
//CHECK#4
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(-1,-1); x[1] === 1. Actual: ' + (x[1]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js
index c79725d48..9d759fd2b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T3.js
- * @description -length = start < deleteCount < 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is negative, use 0
+description: -length = start < deleteCount < 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(-2,-1,2,3);
@@ -46,5 +45,4 @@ if (x[2] !== 0) {
//CHECK#6
if (x[3] !== 1) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(-2,-1,2,3); x[3] === 1. Actual: ' + (x[3]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js
index af66e8da6..7108b603c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T4.js
- * @description -length < start = deleteCount < 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is negative, use 0
+description: -length < start = deleteCount < 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(-1,-1,2,3);
@@ -46,5 +45,4 @@ if (x[2] !== 3) {
//CHECK#6
if (x[3] !== 1) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(-1,-1,2,3); x[3] === 1. Actual: ' + (x[3]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js
index 5b78dee45..420100f17 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.2_T5.js
- * @description start < -length < deleteCount < 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is negative, use 0
+description: start < -length < deleteCount < 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(-3,-1,2,3);
@@ -46,5 +45,4 @@ if (x[2] !== 0) {
//CHECK#6
if (x[3] !== 1) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(-3,-1,2,3); x[3] === 1. Actual: ' + (x[3]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js
index bd66019f7..0f441101e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T1.js
- * @description -length < deleteCount < start = 0, itemCount = 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is negative, use 0
+description: -length < deleteCount < start = 0, itemCount = 0
+---*/
var x = [0,1];
var arr = x.splice(0,-1);
@@ -37,4 +36,3 @@ if (x[0] !== 0) {
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(0,-1); x[1] === 1. Actual: ' + (x[1]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js
index ba563cddd..af7099a02 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T2.js
- * @description -length = -start < deleteCount < 0, itemCount = 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is negative, use 0
+description: -length = -start < deleteCount < 0, itemCount = 0
+---*/
var x = [0,1];
var arr = x.splice(2,-1);
@@ -37,4 +36,3 @@ if (x[0] !== 0) {
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(2,-1); x[1] === 1. Actual: ' + (x[1]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js
index 9171acf7e..56877fb65 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T3.js
- * @description -length < deleteCount < start = 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is negative, use 0
+description: -length < deleteCount < start = 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(0,-1,2,3);
@@ -47,4 +46,3 @@ if (x[2] !== 0) {
if (x[3] !== 1) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(0,-1,2,3); x[3] === 1. Actual: ' + (x[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js
index d51559feb..7a61c0e6e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T4.js
- * @description -length = -start < deleteCount < 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is negative, use 0
+description: -length = -start < deleteCount < 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(2,-1,2,3);
@@ -47,4 +46,3 @@ if (x[2] !== 2) {
if (x[3] !== 3) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(2,-1,2,3); x[3] === 3. Actual: ' + (x[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js
index 747f1472f..c97a8d582 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.3_T5.js
- * @description -start < -length < deleteCount < 0, itemCount > 0
- */
+/*---
+info: >
+ If start is positive, use min(start, length).
+ If deleteCount is negative, use 0
+description: -start < -length < deleteCount < 0, itemCount > 0
+---*/
var x = [0,1];
var arr = x.splice(3,-1,2,3);
@@ -47,4 +46,3 @@ if (x[2] !== 2) {
if (x[3] !== 3) {
$ERROR('#6: var x = [0,1]; var arr = x.splice(3,-1,2,3); x[3] === 3. Actual: ' + (x[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js
index 0d2902b71..fbf4c480d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T1.js
- * @description length = -start > deleteCount > 0, itemCount = 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length = -start > deleteCount > 0, itemCount = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-4,3);
@@ -46,5 +45,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(-4,3); x[0] === 3. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js
index be94553db..62d21debb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T2.js
- * @description length = -start > deleteCount > 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length = -start > deleteCount > 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-4,3,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 5) {
//CHECK#9
if (x[2] !== 3) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(-4,3,4,5); x[2] === 3. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js
index 9aee37d7f..f250ba2c5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T3.js
- * @description -start > length = deleteCount > 0, itemCount = 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: -start > length = deleteCount > 0, itemCount = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-5,4);
@@ -46,5 +45,4 @@ if (arr[3] !== 3) {
//CHECK#7
if (x.length !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(-5,4); x.length === 0. Actual: ' + (x.length));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js
index d5605307d..70a081c29 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T4.js
- * @description length > -start = deleteCount > 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length > -start = deleteCount > 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-3,3,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 4) {
//CHECK#9
if (x[2] !== 5) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(-3,3,4,5); x[2] === 5. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js
index cf5bd46cd..f72391742 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T5.js
- * @description -start > deleteCount > length > 0, itemCount = 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: -start > deleteCount > length > 0, itemCount = 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-9,5);
@@ -46,5 +45,4 @@ if (arr[3] !== 3) {
//CHECK#7
if (x.length !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(-9,5); x.length === 0. Actual: ' + (x.length));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js
index ec84cd9de..6e07b7eeb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.4_T6.js
- * @description length = deleteCount > -start > 0, itemCount > 0
- */
+/*---
+info: >
+ If start is negative, use max(start + length, 0).
+ If deleteCount is positive, use min(deleteCount, length - start)
+description: length = deleteCount > -start > 0, itemCount > 0
+---*/
var x = [0,1,2,3];
var arr = x.splice(-3,4,4,5);
@@ -56,5 +55,4 @@ if (x[1] !== 4) {
//CHECK#9
if (x[2] !== 5) {
$ERROR('#9: var x = [0,1,2,3]; var arr = x.splice(-3,4,4,5); x[2] === 5. Actual: ' + (x[2]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js
index f86b12a1f..3ff4f848f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Splice with undefined arguments
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T1.js
- * @description start === undefined, end === undefined
- */
+/*---
+info: Splice with undefined arguments
+description: start === undefined, end === undefined
+---*/
var x = [0,1,2,3];
var arr = x.splice(undefined, undefined);
@@ -46,4 +44,3 @@ if (x[2] !== 2) {
if (x[3] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(undefined, undefined); x[3] === 3. Actual: ' + (x[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js
index 2d7ae20ab..5f0019427 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Splice with undefined arguments
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A1.5_T2.js
- * @description end === undefined
- */
+/*---
+info: Splice with undefined arguments
+description: end === undefined
+---*/
var x = [0,1,2,3];
var arr = x.splice(1,undefined);
@@ -45,5 +43,4 @@ if (x[2] !== 2) {
//CHECK#7
if (x[3] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(1,undefined); x[3] === 3. Actual: ' + (x[3]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js
index cd82bdfbf..c68841cb7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from start
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T1.js
- * @description start is not integer
- */
+/*---
+info: Operator use ToInteger from start
+description: start is not integer
+---*/
var x = [0,1,2,3];
var arr = x.splice(1.5,3);
@@ -45,5 +43,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(1.5,3); x[0] === 0. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js
index cf448affa..60de118ef 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from start
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T2.js
- * @description start = NaN
- */
+/*---
+info: Operator use ToInteger from start
+description: start = NaN
+---*/
var x = [0,1,2,3];
var arr = x.splice(NaN,3);
@@ -45,5 +43,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(NaN,3); x[0] === 3. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js
index 0a797623f..a5ea2565b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from start
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T3.js
- * @description start = Infinity
- */
+/*---
+info: Operator use ToInteger from start
+description: start = Infinity
+---*/
var x = [0,1,2,3];
var arr = x.splice(Number.POSITIVE_INFINITY,3);
@@ -40,5 +38,4 @@ if (x[2] !== 2) {
//CHECK#6
if (x[3] !== 3) {
$ERROR('#6: var x = [0,1,2,3]; var x = x.splice(Number.POSITIVE_INFINITY,3); x[3] === 3. Actual: ' + (x[3]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js
index cb0f5fc5a..d68eb6c72 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from start
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T4.js
- * @description start = -Infinity
- */
+/*---
+info: Operator use ToInteger from start
+description: start = -Infinity
+---*/
var x = [0,1,2,3];
var arr = x.splice(Number.NEGATIVE_INFINITY,3);
@@ -45,5 +43,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(Number.NEGATIVE_INFINITY,3); x[0] === 3. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js
index 61a93ccff..8984c7dc6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from start
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.1_T5.js
- * @description ToInteger use ToNumber
- */
+/*---
+info: Operator use ToInteger from start
+description: ToInteger use ToNumber
+---*/
var x = [0,1,2,3];
var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3);
@@ -46,4 +44,3 @@ if (x.length !== 1) {
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); x[0] === 3. Actual: ' + (x[0]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js
index 7bf393e85..7aa06801e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from deleteCount
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T1.js
- * @description deleteCount is not integer
- */
+/*---
+info: Operator use ToInteger from deleteCount
+description: deleteCount is not integer
+---*/
var x = [0,1,2,3];
var arr = x.splice(1,3.5);
@@ -45,5 +43,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(1,3.5); x[0] === 0. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js
index 51250571e..7120f8b52 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from deleteCount
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T2.js
- * @description deleteCount = NaN
- */
+/*---
+info: Operator use ToInteger from deleteCount
+description: deleteCount = NaN
+---*/
var x = [0,1];
var arr = x.splice(0,NaN);
@@ -36,4 +34,3 @@ if (x[0] !== 0) {
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(0,NaN); x[1] === 1. Actual: ' + (x[1]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js
index ebbe0c605..356c4d5e1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from deleteCount
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T3.js
- * @description deleteCount = Infinity
- */
+/*---
+info: Operator use ToInteger from deleteCount
+description: deleteCount = Infinity
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,Number.POSITIVE_INFINITY);
@@ -45,5 +43,4 @@ if (arr[3] !== 3) {
//CHECK#7
if (x.length !== 0) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(0,Number.POSITIVE_INFINITY); x.length === 0. Actual: ' + (x.length));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js
index fdac7ca53..c6372500d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from deleteCount
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T4.js
- * @description deleteCount = -Infinity
- */
+/*---
+info: Operator use ToInteger from deleteCount
+description: deleteCount = -Infinity
+---*/
var x = [0,1];
var arr = x.splice(0,Number.NEGATIVE_INFINITY);
@@ -36,4 +34,3 @@ if (x[0] !== 0) {
if (x[1] !== 1) {
$ERROR('#4: var x = [0,1]; var arr = x.splice(0,Number.NEGATIVE_INFINITY); x[1] === 1. Actual: ' + (x[1]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js
index ad988fd2e..0a4039123 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator use ToInteger from deleteCount
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2.2_T5.js
- * @description ToInteger use ToNumber
- */
+/*---
+info: Operator use ToInteger from deleteCount
+description: ToInteger use ToNumber
+---*/
var x = [0,1,2,3];
var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}});
@@ -45,5 +43,4 @@ if (x.length !== 1) {
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); x[0] === 3. Actual: ' + (x[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js
index 24af0b05e..3e55b1a94 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice function is intentionally generic.
- * It does not require that its this value be an Array object
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T1.js
- * @description If start is positive, use min(start, length).
- * If deleteCount is positive, use min(deleteCount, length - start)
- */
+/*---
+info: >
+ The splice function is intentionally generic.
+ It does not require that its this value be an Array object
+description: >
+ If start is positive, use min(start, length). If deleteCount is
+ positive, use min(deleteCount, length - start)
+---*/
var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
@@ -65,4 +65,3 @@ if (obj[2] !== 3) {
if (obj[3] !== undefined) {
$ERROR('#10: 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[3] === undefined. Actual: ' + (obj[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js
index 8201da5b9..8e29884ac 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice function is intentionally generic.
- * It does not require that its this value be an Array object
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T2.js
- * @description If start is negative, use max(start + length, 0).
- * If deleteCount is negative, use 0
- */
+/*---
+info: >
+ The splice function is intentionally generic.
+ It does not require that its this value be an Array object
+description: >
+ If start is negative, use max(start + length, 0). If deleteCount
+ is negative, use 0
+---*/
var obj = {0:0,1:1};
obj.length = 2;
@@ -54,5 +54,4 @@ if (obj[3] !== 1) {
//CHECK#7
if (obj[4] !== undefined) {
$ERROR('#7: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(-2,-1,2,3); obj[4] === undefined. Actual: ' + (obj[4]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js
index 69cd2f395..476000900 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice function is intentionally generic.
- * It does not require that its this value be an Array object
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T3.js
- * @description If start is positive, use min(start, length).
- * If deleteCount is negative, use 0
- */
+/*---
+info: >
+ The splice function is intentionally generic.
+ It does not require that its this value be an Array object
+description: >
+ If start is positive, use min(start, length). If deleteCount is
+ negative, use 0
+---*/
var obj = {0:0,1:1};
obj.length = 2;
@@ -54,5 +54,4 @@ if (obj[3] !== 1) {
//CHECK#7
if (obj[4] !== undefined) {
$ERROR('#7: var obj = {0:0,1:1}; obj.length = 2; obj.splice = Array.prototype.splice; var arr = obj.splice(0,-1,2,3); obj[4] === undefined. Actual: ' + (obj[4]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js
index 38d037d1e..c15f97239 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice function is intentionally generic.
- * It does not require that its this value be an Array object
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A2_T4.js
- * @description If start is negative, use max(start + length, 0).
- * If deleteCount is positive, use min(deleteCount, length - start)
- */
+/*---
+info: >
+ The splice function is intentionally generic.
+ It does not require that its this value be an Array object
+description: >
+ If start is negative, use max(start + length, 0). If deleteCount
+ is positive, use min(deleteCount, length - start)
+---*/
var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
@@ -65,4 +65,3 @@ if (obj[2] !== 3) {
if (obj[3] !== undefined) {
$ERROR('#10: 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[3] === undefined. Actual: ' + (obj[3]));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js
index a6645085f..7e5d4ca36 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check ToUint32(length) for non Array objects
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T1.js
- * @description length is arbitrarily
- */
+/*---
+info: Check ToUint32(length) for non Array objects
+description: length is arbitrarily
+---*/
var obj = {};
obj.splice = Array.prototype.splice;
@@ -33,5 +31,4 @@ if (obj[0] !== "x") {
//CHECK#4
if (obj[4294967295] !== "y") {
$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] === "y". Actual: ' + (obj[4294967295]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js
index 15893b837..fc4e17e60 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check ToUint32(length) for non Array objects
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T2.js
- * @description length is arbitrarily
- */
+/*---
+info: Check ToUint32(length) for non Array objects
+description: length is arbitrarily
+---*/
var obj = {};
obj.splice = Array.prototype.splice;
@@ -32,5 +30,4 @@ if (obj.length !== 0) {
//CHECK#4
if (obj[0] !== undefined) {
$ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[0] = "y"; obj.length = 1; var arr = obj.splice(0,1); obj[0] === undefined. Actual: ' + (obj[0]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js
index 5c0dce77d..9f57c781b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check ToUint32(length) for non Array objects
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A3_T3.js
- * @description length is arbitrarily
- */
+/*---
+info: Check ToUint32(length) for non Array objects
+description: length is arbitrarily
+---*/
var obj = {};
obj.splice = Array.prototype.splice;
@@ -32,5 +30,4 @@ if (obj.length !== 4294967294) {
//CHECK#4
if (obj[4294967294] !== undefined) {
$ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === undefined. Actual: ' + (obj[4294967294]));
-}
-
+}
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js
index ec2fb8937..a120e6be8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * [[Get]] from not an inherited property
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T1.js
- * @description [[Prototype]] of Array instance is Array.prototype, [[Prototype] of Array.prototype is Object.prototype
- */
+/*---
+info: "[[Get]] from not an inherited property"
+description: >
+ [[Prototype]] of Array instance is Array.prototype, [[Prototype]
+ of Array.prototype is Object.prototype
+---*/
Array.prototype[1] = -1;
var x = [0,1];
@@ -78,4 +78,3 @@ if (x[0] !== 0) {
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/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js
index 3096402c3..600bf26c1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * [[Get]] from not an inherited property
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T2.js
- * @description [[Prototype]] of Array instance is Array.prototype, [[Prototype] of Array.prototype is Object.prototype
- */
+/*---
+info: "[[Get]] from not an inherited property"
+description: >
+ [[Prototype]] of Array instance is Array.prototype, [[Prototype]
+ of Array.prototype is Object.prototype
+---*/
Array.prototype[1] = -1;
var x = [0,1];
@@ -78,4 +78,3 @@ if (x[0] !== 0) {
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/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js
index 381d3ce76..623576fe9 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * [[Get]] from not an inherited property
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A4_T3.js
- * @description [[Prototype]] of Array instance is Array.prototype, [[Prototype] of Array.prototype is Object.prototype
- */
+/*---
+info: "[[Get]] from not an inherited property"
+description: >
+ [[Prototype]] of Array instance is Array.prototype, [[Prototype]
+ of Array.prototype is Object.prototype
+---*/
Array.prototype[0] = -1;
var x = [];
@@ -72,4 +72,3 @@ if (x.length !== 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/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js
index d3db326da..450a9c569 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of splice has the attribute DontEnum
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.1.js
- * @description Checking use propertyIsEnumerable, for-in
- */
+/*---
+info: The length property of splice has the attribute DontEnum
+description: Checking use propertyIsEnumerable, for-in
+---*/
//CHECK#1
if (Array.prototype.splice.propertyIsEnumerable('length') !== false) {
@@ -24,5 +22,3 @@ for (var p in Array.splice){
if (result !== true) {
$ERROR('#2: result = true; for (p in Array.splice) { if (p === "length") result = false; } result === true;');
}
-
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js
index 4730b6a4b..ffbc3a4db 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of splice has the attribute DontDelete
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.2.js
- * @description Checking use hasOwnProperty, delete
- * @noStrict
- */
+/*---
+info: The length property of splice has the attribute DontDelete
+description: Checking use hasOwnProperty, delete
+flags: [noStrict]
+includes: [$FAIL.js]
+---*/
//CHECK#1
if (Array.prototype.splice.hasOwnProperty('length') !== true) {
@@ -25,6 +24,3 @@ if (Array.prototype.splice.hasOwnProperty('length') !== true) {
if (Array.prototype.splice.length === undefined) {
$ERROR('#3: delete Array.prototype.splice.length; Array.prototype.splice.length !== undefined');
}
-
-
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js
index a5d06d59d..0db3a4478 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js
@@ -1,13 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of splice has the attribute ReadOnly
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.3.js
- * @description Checking if varying the length property fails
- * @noStrict
- */
+/*---
+info: The length property of splice has the attribute ReadOnly
+description: Checking if varying the length property fails
+flags: [noStrict]
+---*/
//CHECK#1
var x = Array.prototype.splice.length;
@@ -15,5 +13,3 @@ Array.prototype.splice.length = Infinity;
if (Array.prototype.splice.length !== x) {
$ERROR('#1: x = Array.prototype.splice.length; Array.prototype.splice.length = Infinity; Array.prototype.splice.length === x. Actual: ' + (Array.prototype.splice.length));
}
-
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js
index b71c37c10..1c70791ae 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js
@@ -1,16 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of splice is 2
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.4.js
- * @description splice.length === 1
- */
+/*---
+info: The length property of splice is 2
+description: splice.length === 1
+---*/
//CHECK#1
if (Array.prototype.splice.length !== 2) {
$ERROR('#1: Array.prototype.splice.length === 2. Actual: ' + (Array.prototype.splice.length));
}
-
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js
index e2276b47a..c474cd84e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice property of Array has the attribute DontEnum
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.5.js
- * @description Checking use propertyIsEnumerable, for-in
- */
+/*---
+info: The splice property of Array has the attribute DontEnum
+description: Checking use propertyIsEnumerable, for-in
+---*/
//CHECK#1
if (Array.propertyIsEnumerable('splice') !== false) {
@@ -24,5 +22,3 @@ for (var p in Array){
if (result !== true) {
$ERROR('#2: result = true; for (p in Array) { if (p === "splice") result = false; } result === true;');
}
-
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js
index 621b83307..40f573c2e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice property of Array has not prototype property
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.6.js
- * @description Checking Array.prototype.splice.prototype
- */
+/*---
+info: The splice property of Array has not prototype property
+description: Checking Array.prototype.splice.prototype
+---*/
//CHECK#1
if (Array.prototype.splice.prototype !== undefined) {
$ERROR('#1: Array.prototype.splice.prototype === undefined. Actual: ' + (Array.prototype.splice.prototype));
}
-
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js
index 28344c811..d0e4f5be1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The splice property of Array can't be used as constructor
- *
- * @path ch15/15.4/15.4.4/15.4.4.12/S15.4.4.12_A5.7.js
- * @description If property does not implement the internal [[Construct]] method, throw a TypeError exception
- */
+/*---
+info: The splice property of Array can't be used as constructor
+description: >
+ If property does not implement the internal [[Construct]] method,
+ throw a TypeError exception
+---*/
//CHECK#1
@@ -18,4 +18,3 @@ try {
$ERROR('#1.2: new Array.prototype.splice() throw TypeError. Actual: ' + (e));
}
}
-