diff options
Diffstat (limited to 'test/suite/ch15/15.4/15.4.3/15.4.3.2')
24 files changed, 437 insertions, 429 deletions
diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js index ee5d7d5e4..e17332a92 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js @@ -1,18 +1,18 @@ -/// 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.3/15.4.3.2/15.4.3.2-0-1.js
- * @description Array.isArray must exist as a function
- */
-
-
-function testcase() {
- var f = Array.isArray;
- if (typeof(f) === "function") {
- return true;
- }
- }
-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.isArray must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = Array.isArray; + if (typeof(f) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js index c213e3be2..250822c2c 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js @@ -1,17 +1,17 @@ -/// 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.3/15.4.3.2/15.4.3.2-0-2.js
- * @description Array.isArray must exist as a function taking 1 parameter
- */
-
-
-function testcase() {
- if (Array.isArray.length === 1) {
- return true;
- }
- }
-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.isArray must exist as a function taking 1 parameter +includes: [runTestCase.js] +---*/ + +function testcase() { + if (Array.isArray.length === 1) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js index 7aff2e755..d76863e3a 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js @@ -1,19 +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.3/15.4.3.2/15.4.3.2-0-3.js
- * @description Array.isArray return true if its argument is an Array
- */
-
-
-function testcase() {
- var a = [];
- var b = Array.isArray(a);
- if (b === true) {
- return true;
- }
- }
-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.isArray return true if its argument is an Array +includes: [runTestCase.js] +---*/ + +function testcase() { + var a = []; + var b = Array.isArray(a); + if (b === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js index 0c3b7b533..d3d79e2ec 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js @@ -1,29 +1,29 @@ -/// 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.3/15.4.3.2/15.4.3.2-0-4.js
- * @description Array.isArray return false if its argument is not an Array
- */
-
-
-function testcase() {
- var b_num = Array.isArray(42);
- var b_undef = Array.isArray(undefined);
- var b_bool = Array.isArray(true);
- var b_str = Array.isArray("abc");
- var b_obj = Array.isArray({});
- var b_null = Array.isArray(null);
-
- if (b_num === false &&
- b_undef === false &&
- b_bool === false &&
- b_str === false &&
- b_obj === false &&
- b_null === false) {
- return true;
- }
- }
-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.isArray return false if its argument is not an Array +includes: [runTestCase.js] +---*/ + +function testcase() { + var b_num = Array.isArray(42); + var b_undef = Array.isArray(undefined); + var b_bool = Array.isArray(true); + var b_str = Array.isArray("abc"); + var b_obj = Array.isArray({}); + var b_null = Array.isArray(null); + + if (b_num === false && + b_undef === false && + b_bool === false && + b_str === false && + b_obj === false && + b_null === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js index 3e32f06ad..89573cc14 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js @@ -1,18 +1,20 @@ -/// 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.3/15.4.3.2/15.4.3.2-0-5.js
- * @description Array.isArray return true if its argument is an Array (Array.prototype)
- */
-
-
-function testcase() {
- var b = Array.isArray(Array.prototype);
- if (b === true) {
- return true;
- }
- }
-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.isArray return true if its argument is an Array + (Array.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var b = Array.isArray(Array.prototype); + if (b === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js index b827c30e4..cb6b8151e 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js @@ -1,19 +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.3/15.4.3.2/15.4.3.2-0-6.js
- * @description Array.isArray return true if its argument is an Array (new Array())
- */
-
-
-function testcase() {
- var a = new Array(10);
- var b = Array.isArray(a);
- if (b === true) {
- return true;
- }
- }
-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.isArray return true if its argument is an Array (new Array()) +includes: [runTestCase.js] +---*/ + +function testcase() { + var a = new Array(10); + var b = Array.isArray(a); + if (b === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js index 7ddb7e14d..4789d3c9c 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js @@ -1,20 +1,20 @@ -/// 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.3/15.4.3.2/15.4.3.2-0-7.js
- * @description Array.isArray returns false if its argument is not an Array
- */
-
-
-function testcase() {
- var o = new Object();
- o[12] = 13;
- var b = Array.isArray(o);
- if (b === false) {
- return true;
- }
- }
-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.isArray returns false if its argument is not an Array +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = new Object(); + o[12] = 13; + var b = Array.isArray(o); + if (b === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js index e42ce7e28..243f09f53 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-1.js
- * @description Array.isArray applied to boolean primitive
- */
-
-
-function testcase() {
-
- return !Array.isArray(true);
- }
-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.isArray applied to boolean primitive +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(true); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js index 5aa9edd0c..93962f52d 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-10.js
- * @description Array.isArray applied to RegExp object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new RegExp());
- }
-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.isArray applied to RegExp object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new RegExp()); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js index a14b3c3d5..da7ba096e 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-11.js
- * @description Array.isArray applied to the JSON object
- */
-
-
-function testcase() {
-
- return !Array.isArray(JSON);
- }
-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.isArray applied to the JSON object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(JSON); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js index ab1dbb612..eb0956d6b 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-12.js
- * @description Array.isArray applied to Error object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new SyntaxError());
- }
-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.isArray applied to Error object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new SyntaxError()); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js index e623d1d36..74f3009e2 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js @@ -1,22 +1,22 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-13.js
- * @description Array.isArray applied to Arguments object
- */
-
-
-function testcase() {
-
- var arg;
-
- (function fun() {
- arg = arguments;
- }(1, 2, 3));
-
- return !Array.isArray(arg);
- }
-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.isArray applied to Arguments object +includes: [runTestCase.js] +---*/ + +function testcase() { + + var arg; + + (function fun() { + arg = arguments; + }(1, 2, 3)); + + return !Array.isArray(arg); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js index 113f390db..bab56c19a 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js @@ -1,16 +1,18 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-15.js
- * @description Array.isArray applied to the global object
- */
-
-
-function testcase() {
-
- return !Array.isArray(fnGlobalObject());
- }
-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.isArray applied to the global object +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + return !Array.isArray(fnGlobalObject()); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js index 66b7dd25b..2555f362a 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-2.js
- * @description Array.isArray applied to Boolean Object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new Boolean(false));
- }
-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.isArray applied to Boolean Object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new Boolean(false)); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js index 343ddc43e..42627edc6 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-3.js
- * @description Array.isArray applied to number primitive
- */
-
-
-function testcase() {
-
- return !Array.isArray(5);
- }
-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.isArray applied to number primitive +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(5); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js index 7f1870671..f2e7d3d76 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-4.js
- * @description Array.isArray applied to Number object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new Number(-3));
- }
-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.isArray applied to Number object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new Number(-3)); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js index bb517c45e..4d180e716 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-5.js
- * @description Array.isArray applied to string primitive
- */
-
-
-function testcase() {
-
- return !Array.isArray("abc");
- }
-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.isArray applied to string primitive +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray("abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js index 5a2a723d7..d5904e677 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-6.js
- * @description Array.isArray applied to String object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new String("hello\nworld\\!"));
- }
-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.isArray applied to String object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new String("hello\nworld\\!")); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js index ce564de44..1491314b0 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-7.js
- * @description Array.isArray applied to Function object
- */
-
-
-function testcase() {
-
- return !Array.isArray(function () { });
- }
-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.isArray applied to Function object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(function () { }); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js index c296bd373..8f870dd20 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-8.js
- * @description Array.isArray applied to the Math object
- */
-
-
-function testcase() {
-
- return !Array.isArray(Math);
- }
-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.isArray applied to the Math object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(Math); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js index e535d2083..38b4c1140 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js @@ -1,16 +1,16 @@ -/// 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.3/15.4.3.2/15.4.3.2-1-9.js
- * @description Array.isArray applied to Date object
- */
-
-
-function testcase() {
-
- return !Array.isArray(new Date());
- }
-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.isArray applied to Date object +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray(new Date()); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js index 69c642e88..baa7bf5cd 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js @@ -1,21 +1,21 @@ -/// 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.3/15.4.3.2/15.4.3.2-2-1.js
- * @description Array.isArray applied to an object with an array as the prototype
- */
-
-
-function testcase() {
-
- var proto = [];
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- return !Array.isArray(child);
- }
-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.isArray applied to an object with an array as the prototype +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = []; + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + return !Array.isArray(child); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js index 493f4c760..eccfeda17 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js @@ -1,22 +1,24 @@ -/// 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.3/15.4.3.2/15.4.3.2-2-2.js
- * @description Array.isArray applied to an object with Array.prototype as the prototype
- */
-
-
-function testcase() {
-
- var proto = Array.prototype;
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
-
- return !Array.isArray(child);
- }
-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.isArray applied to an object with Array.prototype as the + prototype +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = Array.prototype; + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + + return !Array.isArray(child); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js index 67e8881e7..be03e800a 100644 --- a/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js +++ b/test/suite/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js @@ -1,16 +1,18 @@ -/// 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.3/15.4.3.2/15.4.3.2-2-3.js
- * @description Array.isArray applied to an Array-like object with length and some indexed properties
- */
-
-
-function testcase() {
-
- return !Array.isArray({ 0: 12, 1: 9, length: 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.isArray applied to an Array-like object with length and some + indexed properties +includes: [runTestCase.js] +---*/ + +function testcase() { + + return !Array.isArray({ 0: 12, 1: 9, length: 2 }); + } +runTestCase(testcase); |