diff options
Diffstat (limited to 'test/suite/ch15/15.2/15.2.3/15.2.3.3')
306 files changed, 7356 insertions, 6711 deletions
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js index 0e98d85af..d32ff320a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.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.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js
- * @description Object.getOwnPropertyDescriptor must exist as a function
- */
-
-
-function testcase() {
- if (typeof(Object.getOwnPropertyDescriptor) === "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: Object.getOwnPropertyDescriptor must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + if (typeof(Object.getOwnPropertyDescriptor) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js index 2c317afb4..d7ae6c7af 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.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.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js
- * @description Object.getOwnPropertyDescriptor must exist as a function taking 2 parameters
- */
-
-
-function testcase() {
- if (Object.getOwnPropertyDescriptor.length === 2) {
- 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: > + Object.getOwnPropertyDescriptor must exist as a function taking 2 + parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + if (Object.getOwnPropertyDescriptor.length === 2) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js index 45672991e..fadf27121 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js
- * @description Object.getOwnPropertyDescriptor - TypeError is thrown when first param is undefined
- */
-
-
-function testcase() {
- try {
- Object.getOwnPropertyDescriptor(undefined, "foo");
- } catch (e) {
- return (e instanceof TypeError);
- }
- }
-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: > + Object.getOwnPropertyDescriptor - TypeError is thrown when first + param is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.getOwnPropertyDescriptor(undefined, "foo"); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js index d0ca60bd3..9b14b6bf3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js
- * @description Object.getOwnPropertyDescriptor - TypeError is thrown when first param is null
- */
-
-
-function testcase() {
- try {
- Object.getOwnPropertyDescriptor(null, "foo");
- } catch (e) {
- return (e instanceof TypeError);
- }
- }
-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: > + Object.getOwnPropertyDescriptor - TypeError is thrown when first + param is null +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.getOwnPropertyDescriptor(null, "foo"); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js index 49d65de1f..d5ee3b52b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js
- * @description Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a boolean
- */
-
-
-function testcase() {
- try {
- Object.getOwnPropertyDescriptor(true, "foo");
- } catch (e) {
- return (e instanceof TypeError);
- }
- }
-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: > + Object.getOwnPropertyDescriptor - TypeError is thrown when first + param is a boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.getOwnPropertyDescriptor(true, "foo"); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js index 28436e369..c059e75d2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js
- * @description Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a number
- */
-
-
-function testcase() {
- try {
- Object.getOwnPropertyDescriptor(-2, "foo");
- } catch (e) {
- return (e instanceof TypeError);
- }
- }
-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: > + Object.getOwnPropertyDescriptor - TypeError is thrown when first + param is a number +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.getOwnPropertyDescriptor(-2, "foo"); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js index bcf05c73a..c49d3c196 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.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.2/15.2.3/15.2.3.3/15.2.3.3-1.js
- * @description Object.getOwnPropertyDescriptor throws TypeError if type of first param is not Object
- */
-
-
-function testcase() {
- try {
- Object.getOwnPropertyDescriptor(0, "foo");
- }
- catch (e) {
- if (e instanceof TypeError) {
- 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: > + Object.getOwnPropertyDescriptor throws TypeError if type of first + param is not Object +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.getOwnPropertyDescriptor(0, "foo"); + } + catch (e) { + if (e instanceof TypeError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js index fb621c4d9..7547aeb4e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js
- * @description Object.getOwnPropertyDescriptor returns undefined for undefined property name
- */
-
-
-function testcase() {
- var o = {};
- var desc = Object.getOwnPropertyDescriptor(o, undefined);
- if (desc === undefined) {
- 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: > + Object.getOwnPropertyDescriptor returns undefined for undefined + property name +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + var desc = Object.getOwnPropertyDescriptor(o, undefined); + if (desc === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js index 6cf0684d0..152ab21b7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -0)
- */
-
-
-function testcase() {
- var obj = { "0": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, -0);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is -0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, -0); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js index 0512ee893..c39ead675 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is positive number)
- */
-
-
-function testcase() {
- var obj = { "30": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 30);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is positive number) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "30": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 30); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js index e616c4089..ec432ce71 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is negative number)
- */
-
-
-function testcase() {
- var obj = { "-20": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, -20);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is negative number) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "-20": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, -20); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js index 8035cfe78..045abe7fa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is Infinity)
- */
-
-
-function testcase() {
- var obj = { "Infinity": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, Infinity);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "Infinity": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, Infinity); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js index bf08382fb..8fb054bb3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +Infinity)
- */
-
-
-function testcase() {
- var obj = { "Infinity": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, +Infinity);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is +Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "Infinity": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, +Infinity); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js index b799c4d49..b88d02256 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -Infinity)
- */
-
-
-function testcase() {
- var obj = { "-Infinity": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, -Infinity);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is -Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "-Infinity": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, -Infinity); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js index 652e2cb44..3decd6fff 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 20 zeros))
- */
-
-
-function testcase() {
- var obj = { "100000000000000000000": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1(following 20 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "100000000000000000000": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js index 9f7557983..43e3d6170 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 21 zeros))
- */
-
-
-function testcase() {
- var obj = { "1e+21": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1(following 21 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e+21": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js index 64720ecbd..e282524b7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 22 zeros))
- */
-
-
-function testcase() {
- var obj = { "1e+22": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1(following 22 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e+22": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js index 99dc20541..c49087bbd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+20)
- */
-
-
-function testcase() {
- var obj = { "100000000000000000000": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+20);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1e+20) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "100000000000000000000": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e+20); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js index d11a6f0e9..645143162 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js
- * @description Object.getOwnPropertyDescriptor returns undefined for null property name
- */
-
-
-function testcase() {
- var o = {};
- var desc = Object.getOwnPropertyDescriptor(o, null);
- if (desc === undefined) {
- 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: > + Object.getOwnPropertyDescriptor returns undefined for null + property name +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + var desc = Object.getOwnPropertyDescriptor(o, null); + if (desc === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js index 4c06979cf..f609dca66 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to string (value is 1e+21)
- */
-
-
-function testcase() {
- var obj = { "1e+21": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+21);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to string (value is 1e+21) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e+21": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e+21); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js index 841c567b5..2d5129ea6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+22)
- */
-
-
-function testcase() {
- var obj = { "1e+22": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+22);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1e+22) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e+22": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e+22); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js index 985ee2a95..96da942a1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.000001)
- */
-
-
-function testcase() {
- var obj = { "0.000001": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 0.000001);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 0.000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0.000001": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 0.000001); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js index ab948760c..243c781c6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.0000001)
- */
-
-
-function testcase() {
- var obj = { "1e-7": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 0.0000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e-7": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js index 8923f7a12..8eb178ea3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.00000001)
- */
-
-
-function testcase() {
- var obj = { "1e-8": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 0.00000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e-8": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js index b9785d643..82ce88216 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-7)
- */
-
-
-function testcase() {
- var obj = { "1e-7": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-7);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1e-7) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1e-7": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e-7); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js index 568be47ee..14a05ebda 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-6)
- */
-
-
-function testcase() {
- var obj = { "0.000001": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-6);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1e-6) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0.000001": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e-6); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js index 5877e9120..6287d601c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-5)
- */
-
-
-function testcase() {
- var obj = { "0.00001": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-5);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 1e-5) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0.00001": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1e-5); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js index 0a52795c3..0b35a1891 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an integer that converts to a string (value is 123)
- */
-
-
-function testcase() {
- var obj = { "123": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 123);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an integer that + converts to a string (value is 123) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "123": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 123); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js index a74f37b86..fca650313 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a decimal that converts to a string (value is 123.456)
- */
-
-
-function testcase() {
- var obj = { "123.456": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 123.456);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a decimal that + converts to a string (value is 123.456) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "123.456": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 123.456); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js index 9f4bb30b7..cda59f756 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.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.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is undefined
- */
-
-
-function testcase() {
- var obj = { "undefined": 1 };
-
- var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined");
-
- return desc1.value === 1 && desc2.value === 1;
- }
-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: Object.getOwnPropertyDescriptor - argument 'P' is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "undefined": 1 }; + + var desc1 = Object.getOwnPropertyDescriptor(obj, undefined); + var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined"); + + return desc1.value === 1 && desc2.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js index 9980ea887..b80871053 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 100000000000000000000.123)
- */
-
-
-function testcase() {
- var obj = { "100000000000000000000": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123);
-
- return typeof desc !== "undefined" && desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 100000000000000000000.123) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "100000000000000000000": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123); + + return typeof desc !== "undefined" && desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js index 1d3a07791..1f1ef3497 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 123.1234567)
- */
-
-
-function testcase() {
- var obj = { "123.1234567": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 123.1234567) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "123.1234567": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js index 503ea0930..d64386326 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to an empty string
- */
-
-
-function testcase() {
- var obj = { "": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "");
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to an + empty string +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, ""); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js index e247a4364..b9853c969 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js @@ -1,20 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'AB
- * \cd'
- */
-
-
-function testcase() {
- var obj = { "AB\n\\cd": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd");
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to + string 'AB \cd' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "AB\n\\cd": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd"); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js index 6a874cbe0..9dc05cec4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'undefined'
- */
-
-
-function testcase() {
- var obj = { "undefined": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "undefined");
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to + string 'undefined' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "undefined": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, "undefined"); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js index 7caf165b2..eca3a6533 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'null'
- */
-
-
-function testcase() {
- var obj = { "null": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "null");
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to + string 'null' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "null": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, "null"); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js index 874abd29b..d26f7b94a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to string '123���¦�cd'
- */
-
-
-function testcase() {
- var obj = { "123���¦�cd": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd");
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to + string '123���¦�cd' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "123���¦�cd": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd"); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js index be35999d3..155151bfa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is applied to string '1'
- */
-
-
-function testcase() {
- var obj = { "1": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 1);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is applied to + string '1' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 1); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js index de3daeff9..8bae713c2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an array that converts to a string
- */
-
-
-function testcase() {
- var obj = { "1": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, [1]);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an array that + converts to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, [1]); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js index 640d447b1..55e75ee3f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a String Object that converts to a string
- */
-
-
-function testcase() {
- var obj = { "Hello": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello"));
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a String Object + that converts to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "Hello": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello")); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js index 969088008..f5b4e992a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is null that converts to string 'null'
- */
-
-
-function testcase() {
- var obj = { "null": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, null);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is null that + converts to string 'null' +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "null": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, null); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js index b3cd4dca7..6d7d9c188 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a Boolean Object that converts to a string
- */
-
-
-function testcase() {
- var obj = { "true": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true));
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a Boolean Object + that converts to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "true": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true)); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js index 801638df3..1659c6530 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a Number Object that converts to a string
- */
-
-
-function testcase() {
- var obj = { "123": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, new Number(123));
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a Number Object + that converts to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "123": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, new Number(123)); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js index de1cf2023..f6286e96b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js @@ -1,25 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString method
- */
-
-
-function testcase() {
- var obj = { "abc": 1 };
-
- var ownProp = {
- toString: function () {
- return "abc";
- }
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an object which + has an own toString method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "abc": 1 }; + + var ownProp = { + toString: function () { + return "abc"; + } + }; + + var desc = Object.getOwnPropertyDescriptor(obj, ownProp); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js index ca0d2aaee..d11e8d628 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js @@ -1,25 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own valueOf method
- */
-
-
-function testcase() {
- var obj = { "[object Object]": 1, "abc" : 2 };
-
- var ownProp = {
- valueOf: function () {
- return "abc";
- }
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an object which + has an own valueOf method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "[object Object]": 1, "abc" : 2 }; + + var ownProp = { + valueOf: function () { + return "abc"; + } + }; + + var desc = Object.getOwnPropertyDescriptor(obj, ownProp); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js index 1430f5dfb..46546cadf 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js @@ -1,32 +1,35 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an object that has an own toString method that returns an object and toValue method that returns a primitive value
- */
-
-
-function testcase() {
- var obj = { "abc": 1 };
- var valueOfAccessed = false;
- var toStringAccessed = false;
-
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
-
- return desc.value === 1 && valueOfAccessed && toStringAccessed;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an object that + has an own toString method that returns an object and toValue + method that returns a primitive value +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "abc": 1 }; + var valueOfAccessed = false; + var toStringAccessed = false; + + var ownProp = { + toString: function () { + toStringAccessed = true; + return {}; + }, + valueOf: function () { + valueOfAccessed = true; + return "abc"; + } + }; + + var desc = Object.getOwnPropertyDescriptor(obj, ownProp); + + return desc.value === 1 && valueOfAccessed && toStringAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js index ee887d33f..ec9a78ba4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js @@ -1,30 +1,32 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString and valueOf method
- */
-
-
-function testcase() {
- var obj = { "bbq": 1, "abc": 2 };
- var valueOfAccessed = false;
-
- var ownProp = {
- toString: function () {
- return "bbq";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
-
- return desc.value === 1 && !valueOfAccessed;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is an object which + has an own toString and valueOf method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "bbq": 1, "abc": 2 }; + var valueOfAccessed = false; + + var ownProp = { + toString: function () { + return "bbq"; + }, + valueOf: function () { + valueOfAccessed = true; + return "abc"; + } + }; + + var desc = Object.getOwnPropertyDescriptor(obj, ownProp); + + return desc.value === 1 && !valueOfAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js index b6eb5f64d..0c4045c63 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js @@ -1,35 +1,38 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js
- * @description Object.getOwnPropertyDescriptor - TypeError exception was thrown when 'P' is an object that both toString and valueOf wouldn't return primitive value
- */
-
-
-function testcase() {
- var obj = { "1": 1 };
- var toStringAccessed = false;
- var valueOfAccessed = false;
-
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return [1];
- },
- valueOf: function () {
- valueOfAccessed = true;
- return [1];
- }
- };
-
- try {
- Object.getOwnPropertyDescriptor(obj, ownProp);
- return false;
- } catch (e) {
- return toStringAccessed && valueOfAccessed && e instanceof TypeError;
- }
- }
-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: > + Object.getOwnPropertyDescriptor - TypeError exception was thrown + when 'P' is an object that both toString and valueOf wouldn't + return primitive value +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "1": 1 }; + var toStringAccessed = false; + var valueOfAccessed = false; + + var ownProp = { + toString: function () { + toStringAccessed = true; + return [1]; + }, + valueOf: function () { + valueOfAccessed = true; + return [1]; + } + }; + + try { + Object.getOwnPropertyDescriptor(obj, ownProp); + return false; + } catch (e) { + return toStringAccessed && valueOfAccessed && e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js index 2428abae1..008e1a6c4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js @@ -1,35 +1,38 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js
- * @description Object.getOwnPropertyDescriptor - uses inherited toString method when 'P' is an object with an own valueOf and inherited toString methods
- */
-
-
-function testcase() {
- var proto = {};
- var valueOfAccessed = false;
- var toStringAccessed = false;
-
- proto.toString = function () {
- toStringAccessed = true;
- return "test";
- };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "10";
- };
- var obj = { "10": "length1", "test": "length2" };
- var desc = Object.getOwnPropertyDescriptor(obj, child);
-
- return desc.value === "length2" && toStringAccessed && !valueOfAccessed;
- }
-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: > + Object.getOwnPropertyDescriptor - uses inherited toString method + when 'P' is an object with an own valueOf and inherited toString + methods +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + var valueOfAccessed = false; + var toStringAccessed = false; + + proto.toString = function () { + toStringAccessed = true; + return "test"; + }; + + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + child.valueOf = function () { + valueOfAccessed = true; + return "10"; + }; + var obj = { "10": "length1", "test": "length2" }; + var desc = Object.getOwnPropertyDescriptor(obj, child); + + return desc.value === "length2" && toStringAccessed && !valueOfAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js index 87742841e..80876bbaa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is false
- */
-
-
-function testcase() {
- var obj = { "false": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, false);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose + value is false +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "false": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, false); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js index 25604a243..4d5aeff8d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is true
- */
-
-
-function testcase() {
- var obj = { "true": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, true);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose + value is true +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "true": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, true); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js index eb27dda50..cbe48fd4a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is NaN)
- */
-
-
-function testcase() {
- var obj = { "NaN": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, NaN);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "NaN": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, NaN); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js index 60f5ff25d..719d34636 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0)
- */
-
-
-function testcase() {
- var obj = { "0": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, 0);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is 0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, 0); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js index d12b8e2ed..9c0c7f8d1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js
- * @description Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +0)
- */
-
-
-function testcase() {
- var obj = { "0": 1 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, +0);
-
- return desc.value === 1;
- }
-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: > + Object.getOwnPropertyDescriptor - argument 'P' is a number that + converts to a string (value is +0) +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "0": 1 }; + + var desc = Object.getOwnPropertyDescriptor(obj, +0); + + return desc.value === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js index a10a10a53..80dce4cbf 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.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.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own data property
- */
-
-
-function testcase() {
-
- var obj = {
- property: "ownDataProperty"
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.value === "ownDataProperty";
- }
-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: Object.getOwnPropertyDescriptor - 'P' is own data property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = { + property: "ownDataProperty" + }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.value === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js index 4068ab06d..d25d4f6a3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.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.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js
- * @description Object.getOwnPropertyDescriptor - 'P' is not an existing property
- */
-
-
-function testcase() {
-
- var obj = {
- property: "ownDataProperty"
- };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist");
-
- return typeof desc === "undefined";
- }
-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: Object.getOwnPropertyDescriptor - 'P' is not an existing property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = { + property: "ownDataProperty" + }; + + var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist"); + + return typeof desc === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js index dd626f7e4..f908bf2e7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.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.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js
- * @description Object.getOwnPropertyDescriptor applied to the Arguments object which implements its own property get method
- */
-
-
-function testcase() {
-
- var arg = (function () {
- return arguments;
- }("ownProperty", true));
-
- var desc = Object.getOwnPropertyDescriptor(arg, "0");
-
- return desc.value === "ownProperty" && desc.writable === true && desc.enumerable === true && desc.configurable === 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: > + Object.getOwnPropertyDescriptor applied to the Arguments object + which implements its own property get method +includes: [runTestCase.js] +---*/ + +function testcase() { + + var arg = (function () { + return arguments; + }("ownProperty", true)); + + var desc = Object.getOwnPropertyDescriptor(arg, "0"); + + return desc.value === "ownProperty" && desc.writable === true && desc.enumerable === true && desc.configurable === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js index 02cbf85b9..4e30181d3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js @@ -1,20 +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.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js
- * @description Object.getOwnPropertyDescriptor applied to a String object which implements its own property get method
- */
-
-
-function testcase() {
-
- var str = new String("123");
-
- var desc = Object.getOwnPropertyDescriptor(str, "2");
-
- return desc.value === "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: > + Object.getOwnPropertyDescriptor applied to a String object which + implements its own property get method +includes: [runTestCase.js] +---*/ + +function testcase() { + + var str = new String("123"); + + var desc = Object.getOwnPropertyDescriptor(str, "2"); + + return desc.value === "3"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js index 3ee5b76f0..663539398 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js
- * @description Object.getOwnPropertyDescriptor applied to a Function object which implements its own property get method
- */
-
-
-function testcase() {
-
- var obj = function (a, b) {
- return a + b;
- };
- obj[1] = "ownProperty";
-
- var desc = Object.getOwnPropertyDescriptor(obj, "1");
-
- return desc.value === "ownProperty";
- }
-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: > + Object.getOwnPropertyDescriptor applied to a Function object which + implements its own property get method +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = function (a, b) { + return a + b; + }; + obj[1] = "ownProperty"; + + var desc = Object.getOwnPropertyDescriptor(obj, "1"); + + return desc.value === "ownProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js index 04bc6f3c6..d7daa6112 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js @@ -1,27 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js
- * @description Object.getOwnPropertyDescriptor - 'P' is inherited data property
- */
-
-
-function testcase() {
-
- var proto = {
- property: "inheritedDataProperty"
- };
-
- var Con = function () { };
- Con.ptototype = proto;
-
- var child = new Con();
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return typeof desc === "undefined";
- }
-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: Object.getOwnPropertyDescriptor - 'P' is inherited data property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + property: "inheritedDataProperty" + }; + + var Con = function () { }; + Con.ptototype = proto; + + var child = new Con(); + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return typeof desc === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js index 819915886..6a21efe93 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js @@ -1,28 +1,30 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited data property
- */
-
-
-function testcase() {
-
- var proto = {
- property: "inheritedDataProperty"
- };
-
- var Con = function () { };
- Con.ptototype = proto;
-
- var child = new Con();
- child.property = "ownDataProperty";
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return desc.value === "ownDataProperty";
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is own data property that + overrides an inherited data property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + property: "inheritedDataProperty" + }; + + var Con = function () { }; + Con.ptototype = proto; + + var child = new Con(); + child.property = "ownDataProperty"; + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return desc.value === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js index d01040304..a571ebc23 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js @@ -1,35 +1,37 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited accessor property
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "property", {
- get: function () {
- return "inheritedDataProperty";
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.ptototype = proto;
-
- var child = new Con();
- Object.defineProperty(child, "property", {
- value: "ownDataProperty",
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return desc.value === "ownDataProperty";
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is own data property that + overrides an inherited accessor property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "property", { + get: function () { + return "inheritedDataProperty"; + }, + configurable: true + }); + + var Con = function () { }; + Con.ptototype = proto; + + var child = new Con(); + Object.defineProperty(child, "property", { + value: "ownDataProperty", + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return desc.value === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js index 27e53a1f3..a802d2a11 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js @@ -1,27 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own accessor property
- */
-
-
-function testcase() {
-
- var obj = {};
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.get === fun;
- }
-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: Object.getOwnPropertyDescriptor - 'P' is own accessor property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = {}; + var fun = function () { + return "ownAccessorProperty"; + }; + Object.defineProperty(obj, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.get === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js index 3fc884bd0..e083e6fa4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js @@ -1,32 +1,34 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js
- * @description Object.getOwnPropertyDescriptor - 'P' is inherited accessor property
- */
-
-
-function testcase() {
-
- var proto = {};
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(proto, "property", {
- get: fun,
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return typeof desc === "undefined";
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is inherited accessor + property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + var fun = function () { + return "ownAccessorProperty"; + }; + Object.defineProperty(proto, "property", { + get: fun, + configurable: true + }); + + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return typeof desc === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js index 1837b9e94..2e98db346 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js @@ -1,34 +1,36 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited data property
- */
-
-
-function testcase() {
-
- var proto = {
- property: "inheritedDataProperty"
- };
-
- var Con = function () { };
- Con.ptototype = proto;
-
- var child = new Con();
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(child, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return desc.get === fun;
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is own accessor property + that overrides an inherited data property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + property: "inheritedDataProperty" + }; + + var Con = function () { }; + Con.ptototype = proto; + + var child = new Con(); + var fun = function () { + return "ownAccessorProperty"; + }; + Object.defineProperty(child, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return desc.get === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js index 4703cf90f..70e762801 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js @@ -1,38 +1,40 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited accessor property
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "property", {
- get: function () {
- return "inheritedAccessorProperty";
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.ptototype = proto;
-
- var child = new Con();
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(child, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(child, "property");
-
- return desc.get === fun;
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is own accessor property + that overrides an inherited accessor property +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "property", { + get: function () { + return "inheritedAccessorProperty"; + }, + configurable: true + }); + + var Con = function () { }; + Con.ptototype = proto; + + var child = new Con(); + var fun = function () { + return "ownAccessorProperty"; + }; + Object.defineProperty(child, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(child, "property"); + + return desc.get === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js index 539c6ce4d..9f87d6141 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js @@ -1,25 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js
- * @description Object.getOwnPropertyDescriptor - 'P' is own accessor property without a get function
- */
-
-
-function testcase() {
-
- var obj = {};
- var fun = function () { };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.set === fun;
- }
-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: > + Object.getOwnPropertyDescriptor - 'P' is own accessor property + without a get function +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = {}; + var fun = function () { }; + Object.defineProperty(obj, "property", { + set: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.set === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js index 8398cfaa9..74e421997 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js @@ -1,26 +1,28 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js
- * @description Object.getOwnPropertyDescriptor returns an object representing a data desc for valid data valued properties
- */
-
-
-function testcase() {
- var o = {};
- o["foo"] = 101;
-
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
- if (desc.value === 101 &&
- desc.enumerable === true &&
- desc.writable === true &&
- desc.configurable === true &&
- !desc.hasOwnProperty("get") &&
- !desc.hasOwnProperty("set")) {
- 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: > + Object.getOwnPropertyDescriptor returns an object representing a + data desc for valid data valued properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + o["foo"] = 101; + + var desc = Object.getOwnPropertyDescriptor(o, "foo"); + if (desc.value === 101 && + desc.enumerable === true && + desc.writable === true && + desc.configurable === true && + !desc.hasOwnProperty("get") && + !desc.hasOwnProperty("set")) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js index fba505307..856ea95fb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURIComponent)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent");
- if (desc.value === global.decodeURIComponent &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.decodeURIComponent) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent"); + if (desc.value === global.decodeURIComponent && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js index 5a01c8f9b..88ab14fe9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan2)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "atan2");
- if (desc.value === Math.atan2 &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.atan2) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "atan2"); + if (desc.value === Math.atan2 && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js index c56a59603..899cae54c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.ceil)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "ceil");
- if (desc.value === Math.ceil &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.ceil) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "ceil"); + if (desc.value === Math.ceil && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js index 231baf3bf..649664633 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.cos)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "cos");
- if (desc.value === Math.cos &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.cos) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "cos"); + if (desc.value === Math.cos && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js index 037426b59..64cc34a7f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.exp)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "exp");
- if (desc.value === Math.exp &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.exp) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "exp"); + if (desc.value === Math.exp && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js index 74699a54e..62ac52ffa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.floor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "floor");
- if (desc.value === Math.floor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.floor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "floor"); + if (desc.value === Math.floor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js index 0ad153fec..7942c9dc5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.log)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "log");
- if (desc.value === Math.log &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.log) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "log"); + if (desc.value === Math.log && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js index 2a2a15a35..d2c0ea32d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.max)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "max");
- if (desc.value === Math.max &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.max) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "max"); + if (desc.value === Math.max && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js index 0f7c1205c..732a745d5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.min)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "min");
- if (desc.value === Math.min &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.min) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "min"); + if (desc.value === Math.min && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js index 8c944cdac..534a5dc4f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.pow)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "pow");
- if (desc.value === Math.pow &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.pow) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "pow"); + if (desc.value === Math.pow && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js index 413710aaa..1a8064693 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.random)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "random");
- if (desc.value === Math.random &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.random) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "random"); + if (desc.value === Math.random && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js index 361325ca4..d735ded32 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.encodeURIComponent)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent");
- if (desc.value === global.encodeURIComponent &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.encodeURIComponent) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent"); + if (desc.value === global.encodeURIComponent && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js index adb28cfa3..e03c8fef2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.round)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "round");
- if (desc.value === Math.round &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.round) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "round"); + if (desc.value === Math.round && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js index 0e0d035a1..ee72e7f20 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sin)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "sin");
- if (desc.value === Math.sin &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.sin) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "sin"); + if (desc.value === Math.sin && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js index e3326f72d..dd5dbc909 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sqrt)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "sqrt");
- if (desc.value === Math.sqrt &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.sqrt) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "sqrt"); + if (desc.value === Math.sqrt && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js index e5d81563c..88426629a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.tan)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "tan");
- if (desc.value === Math.tan &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.tan) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "tan"); + if (desc.value === Math.tan && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js index f7e3795ad..11ed19f69 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.parse)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date, "parse");
- if (desc.value === Date.parse &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.parse) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date, "parse"); + if (desc.value === Date.parse && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js index b4504523a..2336cffc5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.UTC)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date, "UTC");
- if (desc.value === Date.UTC &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.UTC) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date, "UTC"); + if (desc.value === Date.UTC && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js index adbceea98..9694a198b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor");
- if (desc.value === Date.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor"); + if (desc.value === Date.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js index a7284c86c..a9993f4c8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTime)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime");
- if (desc.value === Date.prototype.getTime &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getTime) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime"); + if (desc.value === Date.prototype.getTime && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js index 6ce64ab64..294669765 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTimezoneOffset)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset");
- if (desc.value === Date.prototype.getTimezoneOffset &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getTimezoneOffset) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset"); + if (desc.value === Date.prototype.getTimezoneOffset && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js index d41084703..158b42a60 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getFullYear)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear");
- if (desc.value === Date.prototype.getFullYear &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getFullYear) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear"); + if (desc.value === Date.prototype.getFullYear && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js index 610480294..83f8012b7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMonth)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth");
- if (desc.value === Date.prototype.getMonth &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getMonth) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth"); + if (desc.value === Date.prototype.getMonth && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js index ed5d7b2c6..c3583899b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDate)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate");
- if (desc.value === Date.prototype.getDate &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getDate) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate"); + if (desc.value === Date.prototype.getDate && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js index 8629000b0..53fb2c0ad 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDay)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay");
- if (desc.value === Date.prototype.getDay &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getDay) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay"); + if (desc.value === Date.prototype.getDay && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js index ca806f89d..565c2c836 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getHours)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours");
- if (desc.value === Date.prototype.getHours &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getHours) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours"); + if (desc.value === Date.prototype.getHours && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js index 42afd43cd..709883af0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMinutes)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes");
- if (desc.value === Date.prototype.getMinutes &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getMinutes) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes"); + if (desc.value === Date.prototype.getMinutes && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js index 4809e2e5c..96a08ca8f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getSeconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds");
- if (desc.value === Date.prototype.getSeconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getSeconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds"); + if (desc.value === Date.prototype.getSeconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js index 2c61b997a..2b0355d9e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMilliseconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds");
- if (desc.value === Date.prototype.getMilliseconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getMilliseconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds"); + if (desc.value === Date.prototype.getMilliseconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js index a67692e44..7c9d0d98f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCFullYear)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear");
- if (desc.value === Date.prototype.getUTCFullYear &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCFullYear) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear"); + if (desc.value === Date.prototype.getUTCFullYear && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js index 69f98f88e..4ad0cf51c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMonth)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth");
- if (desc.value === Date.prototype.getUTCMonth &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCMonth) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth"); + if (desc.value === Date.prototype.getUTCMonth && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js index 70b05d952..89775d5b8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDate)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate");
- if (desc.value === Date.prototype.getUTCDate &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCDate) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate"); + if (desc.value === Date.prototype.getUTCDate && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js index 4bd3592f3..97bf06822 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDay)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay");
- if (desc.value === Date.prototype.getUTCDay &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCDay) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay"); + if (desc.value === Date.prototype.getUTCDay && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js index da55c4aa5..a5071a741 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCHours)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours");
- if (desc.value === Date.prototype.getUTCHours &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCHours) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours"); + if (desc.value === Date.prototype.getUTCHours && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js index 5f1b961a0..f6b378d12 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMinutes)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes");
- if (desc.value === Date.prototype.getUTCMinutes &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCMinutes) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes"); + if (desc.value === Date.prototype.getUTCMinutes && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js index f892aac1c..6912ee5d8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCSeconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds");
- if (desc.value === Date.prototype.getUTCSeconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCSeconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds"); + if (desc.value === Date.prototype.getUTCSeconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js index 33d686bb2..6ada9e4ba 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMilliseconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds");
- if (desc.value === Date.prototype.getUTCMilliseconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.getUTCMilliseconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds"); + if (desc.value === Date.prototype.getUTCMilliseconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js index 69f130c85..2374b2969 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setTime)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime");
- if (desc.value === Date.prototype.setTime &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setTime) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime"); + if (desc.value === Date.prototype.setTime && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js index f53971a8e..f0cf80268 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setFullYear)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear");
- if (desc.value === Date.prototype.setFullYear &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setFullYear) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear"); + if (desc.value === Date.prototype.setFullYear && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js index 80b43fa72..e31fc131c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMonth)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth");
- if (desc.value === Date.prototype.setMonth &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setMonth) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth"); + if (desc.value === Date.prototype.setMonth && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js index bdc8ef957..524314157 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getPrototypeOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
- if (desc.value === Object.getPrototypeOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.getPrototypeOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); + if (desc.value === Object.getPrototypeOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js index 5136cf6e1..6ba5aa72d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setDate)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate");
- if (desc.value === Date.prototype.setDate &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setDate) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate"); + if (desc.value === Date.prototype.setDate && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js index c8d9529d7..d820c6adf 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setHours)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours");
- if (desc.value === Date.prototype.setHours &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setHours) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours"); + if (desc.value === Date.prototype.setHours && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js index 0743743fb..4d77b8eb7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMinutes)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes");
- if (desc.value === Date.prototype.setMinutes &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setMinutes) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes"); + if (desc.value === Date.prototype.setMinutes && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js index 1e6121ea0..5d9879a00 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setSeconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds");
- if (desc.value === Date.prototype.setSeconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setSeconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds"); + if (desc.value === Date.prototype.setSeconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js index 7bb4cbe17..1d3b2c900 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMilliseconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds");
- if (desc.value === Date.prototype.setMilliseconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setMilliseconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds"); + if (desc.value === Date.prototype.setMilliseconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js index 0201d81c6..f3a9b68a8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCFullYear)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear");
- if (desc.value === Date.prototype.setUTCFullYear &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCFullYear) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear"); + if (desc.value === Date.prototype.setUTCFullYear && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js index 3750693a2..1b95f319b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMonth)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth");
- if (desc.value === Date.prototype.setUTCMonth &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCMonth) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth"); + if (desc.value === Date.prototype.setUTCMonth && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js index e6120eb7d..64e248322 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCDate)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate");
- if (desc.value === Date.prototype.setUTCDate &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCDate) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate"); + if (desc.value === Date.prototype.setUTCDate && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js index 5dc720b75..bafed00e8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCHours)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours");
- if (desc.value === Date.prototype.setUTCHours &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCHours) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours"); + if (desc.value === Date.prototype.setUTCHours && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js index 2151f2500..fdceed1cd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMinutes)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes");
- if (desc.value === Date.prototype.setUTCMinutes &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCMinutes) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes"); + if (desc.value === Date.prototype.setUTCMinutes && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js index 2287a65ab..7ba64860e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyDescriptor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
- if (desc.value === Object.getOwnPropertyDescriptor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.getOwnPropertyDescriptor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor"); + if (desc.value === Object.getOwnPropertyDescriptor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js index 914f992f0..06778985e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCSeconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds");
- if (desc.value === Date.prototype.setUTCSeconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCSeconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds"); + if (desc.value === Date.prototype.setUTCSeconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js index 24d3adc1b..00da3d604 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMilliseconds)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds");
- if (desc.value === Date.prototype.setUTCMilliseconds &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.setUTCMilliseconds) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds"); + if (desc.value === Date.prototype.setUTCMilliseconds && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js index 869e5acb0..3f91d7820 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString");
- if (desc.value === Date.prototype.toLocaleString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toLocaleString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString"); + if (desc.value === Date.prototype.toLocaleString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js index 051037cf7..2c75f8ee0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString");
- if (desc.value === Date.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString"); + if (desc.value === Date.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js index 3ab333b7f..1a94b548d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toUTCString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString");
- if (desc.value === Date.prototype.toUTCString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toUTCString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString"); + if (desc.value === Date.prototype.toUTCString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js index cf2090aa4..785af8f04 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toTimeString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString");
- if (desc.value === Date.prototype.toTimeString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toTimeString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString"); + if (desc.value === Date.prototype.toTimeString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js index cb71ec841..dd4dc77ca 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toDateString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString");
- if (desc.value === Date.prototype.toDateString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toDateString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString"); + if (desc.value === Date.prototype.toDateString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js index 8d4130dda..789d29867 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleDateString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString");
- if (desc.value === Date.prototype.toLocaleDateString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toLocaleDateString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString"); + if (desc.value === Date.prototype.toLocaleDateString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js index 1774cd06f..8a9283827 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleTimeString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString");
- if (desc.value === Date.prototype.toLocaleTimeString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toLocaleTimeString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString"); + if (desc.value === Date.prototype.toLocaleTimeString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js index bee18c436..2980f0e7c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyNames)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
- if (desc.value === Object.getOwnPropertyNames &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.getOwnPropertyNames) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); + if (desc.value === Object.getOwnPropertyNames && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js index 66aa290ae..280f6c95c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.valueOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf");
- if (desc.value === Date.prototype.valueOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.valueOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf"); + if (desc.value === Date.prototype.valueOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js index 1753888c1..ff5097a38 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toISOString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
- if (desc.value === Date.prototype.toISOString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toISOString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString"); + if (desc.value === Date.prototype.toISOString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js index 5997e4319..405bd5c40 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toJSON)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
- if (desc.value === Date.prototype.toJSON &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Date.prototype.toJSON) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON"); + if (desc.value === Date.prototype.toJSON && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js index cb5cf9cde..c9f6e2061 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor");
- if (desc.value === RegExp.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (RegExp.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor"); + if (desc.value === RegExp.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js index def342d43..6a592efc7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.exec)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec");
- if (desc.value === RegExp.prototype.exec &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (RegExp.prototype.exec) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec"); + if (desc.value === RegExp.prototype.exec && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js index 71b2f614e..bda1139df 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.test)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test");
- if (desc.value === RegExp.prototype.test &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (RegExp.prototype.test) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test"); + if (desc.value === RegExp.prototype.test && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js index 5804dbc65..a45461254 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString");
- if (desc.value === RegExp.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (RegExp.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString"); + if (desc.value === RegExp.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js index 0c762967f..b5e9c5b73 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor");
- if (desc.value === Error.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Error.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor"); + if (desc.value === Error.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js index 3814cdc4f..3ef0c1cba 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString");
- if (desc.value === Error.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Error.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString"); + if (desc.value === Error.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js index da331ff96..15966e21e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.create)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "create");
- if (desc.value === Object.create &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.create) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "create"); + if (desc.value === Object.create && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js index b5287f0a9..aa5b4f5b3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (EvalError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor");
- if (desc.value === EvalError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (EvalError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor"); + if (desc.value === EvalError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js index 32aaf397e..d8eb49e16 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RangeError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor");
- if (desc.value === RangeError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (RangeError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor"); + if (desc.value === RangeError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js index b102aaab8..828c79d2d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (ReferenceError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor");
- if (desc.value === ReferenceError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (ReferenceError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor"); + if (desc.value === ReferenceError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js index 71759654b..b27fb4c53 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (SyntaxError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor");
- if (desc.value === SyntaxError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (SyntaxError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor"); + if (desc.value === SyntaxError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js index 6026b00c7..44cb795e3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (TypeError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor");
- if (desc.value === TypeError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (TypeError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor"); + if (desc.value === TypeError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js index 20dec3447..68ce36430 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (URIError.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor");
- if (desc.value === URIError.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (URIError.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor"); + if (desc.value === URIError.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js index da2d77e4c..b28d19d3d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.stringify)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(JSON, "stringify");
- if (desc.value === JSON.stringify &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (JSON.stringify) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(JSON, "stringify"); + if (desc.value === JSON.stringify && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js index 85020b029..f8ededf0a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.parse)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(JSON, "parse");
- if (desc.value === JSON.parse &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (JSON.parse) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(JSON, "parse"); + if (desc.value === JSON.parse && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js index 92b653434..8e82d029a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js @@ -1,25 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.NaN)
- */
-
-
-function testcase() {
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "NaN");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === false) {
- return true;
- }
- return 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Global.NaN) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + // in non-strict mode, 'this' is bound to the global object. + var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "NaN"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js index 15b4386e9..9128861f6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js @@ -1,25 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.Infinity)
- */
-
-
-function testcase() {
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "Infinity");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === false) {
- return true;
- }
- return 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Global.Infinity) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + // in non-strict mode, 'this' is bound to the global object. + var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "Infinity"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js index 83bedcf81..0ca7f2f0d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperty)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
- if (desc.value === Object.defineProperty &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.defineProperty) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty"); + if (desc.value === Object.defineProperty && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js index af88996f5..5e56f59a1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js @@ -1,25 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.undefined)
- */
-
-
-function testcase() {
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "undefined");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === false) {
- return true;
- }
- return 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Global.undefined) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + // in non-strict mode, 'this' is bound to the global object. + var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "undefined"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js index 59fc6b96f..1acaf538f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Object.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Object.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js index 393351600..869fca093 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js @@ -1,20 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js
- * @description Object.getOwnPropertyDescriptor returns undefined for non-existent property (arguments_1) on built-in object (Function)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1");
-
- if (desc === undefined)
- return true;
- else
- return 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: > + Object.getOwnPropertyDescriptor returns undefined for non-existent + property (arguments_1) on built-in object (Function) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1"); + + if (desc === undefined) + return true; + else + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js index bacda16a2..17bb8fa9c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js @@ -1,20 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js
- * @description Object.getOwnPropertyDescriptor returns undefined for non-existent property (caller) on built-in object (Math)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "caller");
-
- if (desc === undefined)
- return true;
- else
- return 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: > + Object.getOwnPropertyDescriptor returns undefined for non-existent + property (caller) on built-in object (Math) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "caller"); + + if (desc === undefined) + return true; + else + return false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js index 069fce14c..9d8c83ba3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Function.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js index f5bde9083..0708b526b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.length)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Function.length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js index 973f44624..800bcf809 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js @@ -1,25 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function (instance).length)
- */
-
-
-function testcase() {
- var f = Function('return 42;');
-
- var desc = Object.getOwnPropertyDescriptor(f, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Function (instance).length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = Function('return 42;'); + + var desc = Object.getOwnPropertyDescriptor(f, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js index f68671ea6..88a5637e1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.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.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js
- * @description Object.getOwnPropertyDescriptor returns undefined for non-existent properties on built-ins (Function (instance).name)
- */
-
-
-function testcase() {
- var f = Function('return 42;');
- var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist");
- return desc === undefined;
- }
-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: > + Object.getOwnPropertyDescriptor returns undefined for non-existent + properties on built-ins (Function (instance).name) +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = Function('return 42;'); + var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist"); + return desc === undefined; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js index 2d6cb2eaf..6bd5e1e54 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Array.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Array.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js index 3cdeb71af..6500eefe1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperties)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
- if (desc.value === Object.defineProperties &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.defineProperties) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); + if (desc.value === Object.defineProperties && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js index efb4893f7..ff09db02f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (String.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js index ba4702589..3edff1769 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.length)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (String.length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js index fb120d2bd..afe8bc49e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js @@ -1,24 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String (instance).length)
- */
-
-
-function testcase() {
- var s = new String("abc");
- var desc = Object.getOwnPropertyDescriptor(s, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (String (instance).length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("abc"); + var desc = Object.getOwnPropertyDescriptor(s, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js index ab6b993a3..8b940f85d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Boolean.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js index edb3e4bfd..793d33dfa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.length)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Boolean, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Boolean.length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Boolean, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js index 70e836e20..801846038 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js index bac9317e3..97470f93a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MAX_VALUE)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.MAX_VALUE) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js index f99cd2904..862574285 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MIN_VALUE)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.MIN_VALUE) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js index 6b2b838f5..cf7f44471 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NaN)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "NaN");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "NaN"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js index 0e21ff80e..bd9fe65e4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NEGATIVE_INFINITY)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.NEGATIVE_INFINITY) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js index 67e85d0a6..34e546f67 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js @@ -1,20 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js
- * @description Object.getOwnPropertyDescriptor returns undefined for non-existent properties
- */
-
-
-function testcase() {
- var o = {};
-
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
- if (desc === undefined) {
- 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: > + Object.getOwnPropertyDescriptor returns undefined for non-existent + properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + + var desc = Object.getOwnPropertyDescriptor(o, "foo"); + if (desc === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js index 14b51387c..efdfd644a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.seal)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "seal");
- if (desc.value === Object.seal &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.seal) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "seal"); + if (desc.value === Object.seal && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js index c9854d54a..78ac5fb63 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.POSITIVE_INFINITY)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.POSITIVE_INFINITY) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js index 97910f48f..73f3939bc 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.length)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number, "length");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Number.length) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number, "length"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js index 91e5e0ac9..81043c373 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.E)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "E");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.E) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "E"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js index 60cf6e552..75d9eec80 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN10)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "LN10");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.LN10) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "LN10"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js index ef4bd2939..4b6c96451 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN2)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "LN2");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.LN2) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "LN2"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js index 80892253d..ee57ca91e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG2E)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.LOG2E) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js index 01c6ad2c2..cc2190297 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG10E)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.LOG10E) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js index e8f042b85..c7347cad2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.PI)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "PI");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.PI) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "PI"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js index a27109c43..808c03646 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT1_2)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.SQRT1_2) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js index 5b7163e00..f60e8c75b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT2)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Math.SQRT2) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js index 2d2022c89..115b332bb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.freeze)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
- if (desc.value === Object.freeze &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.freeze) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); + if (desc.value === Object.freeze && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js index 610997aa7..23ce27b84 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Date.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Date, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Date.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Date, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js index 510a95543..c86d13ed8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RegExp.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js index 937e90fa1..a609e7da2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.source)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RegExp.prototype.source) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js index a90517b66..6c9badd55 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.global)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RegExp.prototype.global) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js index 9808f7f87..ef7e33aa9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.ignoreCase)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RegExp.prototype.ignoreCase) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js index 5a53c0e09..076833803 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.multiline)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RegExp.prototype.multiline) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js index 7e94fe568..38abae2c2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Error.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Error, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (Error.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Error, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js index 9fc072808..6a1b09b81 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (EvalError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (EvalError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js index 16047d9d7..8d1f4fa8d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RangeError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (RangeError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js index dc0f29563..b0e67fd01 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (ReferenceError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (ReferenceError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js index 67d4557d2..f238b0710 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.preventExtensions)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
- if (desc.value === Object.preventExtensions &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.preventExtensions) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); + if (desc.value === Object.preventExtensions && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js index aa62bba97..851ba121a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (SyntaxError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (SyntaxError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js index b1584381f..03fe2d83c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (TypeError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (TypeError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js index 523dda074..79f06c5b8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js @@ -1,23 +1,25 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js
- * @description Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (URIError.prototype)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(URIError, "prototype");
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false &&
- desc.hasOwnProperty('get') === false &&
- desc.hasOwnProperty('set') === 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: > + Object.getOwnPropertyDescriptor returns data desc (all false) for + properties on built-ins (URIError.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(URIError, "prototype"); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false && + desc.hasOwnProperty('get') === false && + desc.hasOwnProperty('set') === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js index 2721117a4..c09bd2ded 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.value === "ownDataProperty";
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'value' property of + returned object is data property with correct 'value' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.value === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js index 5f47b06a9..eb996db9c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js @@ -1,24 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'writable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.value = "overwriteDataProperty";
- return desc.value === "overwriteDataProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'value' property of + returned object is data property with correct 'writable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.value = "overwriteDataProperty"; + return desc.value === "overwriteDataProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js index 7e12f1f4d..fb072aae9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js @@ -1,26 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var prop in desc) {
- if (prop === "value") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'value' property of + returned object is data property with correct 'enumerable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var prop in desc) { + if (prop === "value") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js index 6eb5b2eda..245b9b762 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js @@ -1,28 +1,31 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = "value" in desc;
-
- try {
- delete desc.value;
- var propDeleted = "value" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'value' property of + returned object is data property with correct 'configurable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = "value" in desc; + + try { + delete desc.value; + var propDeleted = "value" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js index 09fa0be24..2719f6b1f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.writable === 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: > + Object.getOwnPropertyDescriptor - ensure that 'writable' property + of returned object is data property with correct 'value' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.writable === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js index 501d7e22f..81748bba9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js @@ -1,23 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'writable' attribute
- */
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.writable = "overwriteDataProperty";
- return desc.writable === "overwriteDataProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'writable' property + of returned object is data property with correct 'writable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.writable = "overwriteDataProperty"; + return desc.writable === "overwriteDataProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js index e2ab0d79a..4147269cc 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js @@ -1,26 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var props in desc) {
- if (props === "writable") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'writable' property + of returned object is data property with correct 'enumerable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var props in desc) { + if (props === "writable") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js index af70e6a22..4d30ef763 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isSealed)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
- if (desc.value === Object.isSealed &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.isSealed) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); + if (desc.value === Object.isSealed && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js index 3b4c65749..f88abf5e9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js @@ -1,28 +1,31 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = ("writable" in desc);
-
- try {
- delete desc.writable;
- var propDeleted = "writable" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'writable' property + of returned object is data property with correct 'configurable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = ("writable" in desc); + + try { + delete desc.writable; + var propDeleted = "writable" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js index ea52d5879..87aa41ea8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.enumerable === 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: > + Object.getOwnPropertyDescriptor - ensure that 'enumerable' + property of returned object is data property with correct 'value' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.enumerable === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js index 61a0895fd..62f6e01a7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js @@ -1,24 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'writable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.enumerable = "overwriteDataProperty";
- return desc.enumerable === "overwriteDataProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'enumerable' + property of returned object is data property with correct + 'writable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.enumerable = "overwriteDataProperty"; + return desc.enumerable === "overwriteDataProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js index 1f38286d9..96dd31e09 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js @@ -1,26 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var props in desc) {
- if (props === "enumerable") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'enumerable' + property of returned object is data property with correct + 'enumerable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var props in desc) { + if (props === "enumerable") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js index c496889bb..4d9508f80 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js @@ -1,28 +1,31 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = "enumerable" in desc;
-
- try {
- delete desc.enumerable;
- var propDeleted = "enumerable" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'enumerable' + property of returned object is data property with correct + 'configurable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = "enumerable" in desc; + + try { + delete desc.enumerable; + var propDeleted = "enumerable" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js index d4c1a45a9..868ef106b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.configurable === 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: > + Object.getOwnPropertyDescriptor - ensure that 'configurable' + property of returned object is data property with correct 'value' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.configurable === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js index 8158a8c3d..1962cdaa4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js @@ -1,24 +1,27 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'writable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.writable = "overwriteDataProperty";
- return desc.writable === "overwriteDataProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'configurable' + property of returned object is data property with correct + 'writable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.writable = "overwriteDataProperty"; + return desc.writable === "overwriteDataProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js index 7a310c9ab..7c800738d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js @@ -1,26 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var prop in desc) {
- if (prop === "configurable") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'configurable' + property of returned object is data property with correct + 'enumerable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var prop in desc) { + if (prop === "configurable") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js index 268870f76..7ed922570 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js @@ -1,28 +1,31 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = { "property": "ownDataProperty" };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = "configurable" in desc;
-
- try {
- delete desc.configurable;
- var propDeleted = "configurable" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'configurable' + property of returned object is data property with correct + 'configurable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": "ownDataProperty" }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = "configurable" in desc; + + try { + delete desc.configurable; + var propDeleted = "configurable" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js index 55ff355e6..5c5bb15cd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js @@ -1,26 +1,28 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.get === fun;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'get' property of + returned object is data property with correct 'value' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownDataProperty"; + }; + Object.defineProperty(obj, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.get === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js index 043aa1dd8..2ab0e145d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isFrozen)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
- if (desc.value === Object.isFrozen &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.isFrozen) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); + if (desc.value === Object.isFrozen && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js index 299b94037..4b605fb3e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js @@ -1,31 +1,33 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'writable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownGetProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.get = "overwriteGetProperty";
- return desc.get === "overwriteGetProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'get' property of + returned object is data property with correct 'writable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownGetProperty"; + }; + Object.defineProperty(obj, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.get = "overwriteGetProperty"; + return desc.get === "overwriteGetProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js index ed2552ba0..527e0f5a0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js @@ -1,33 +1,36 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var prop in desc) {
- if (prop === "get") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'get' property of + returned object is data property with correct 'enumerable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownDataProperty"; + }; + Object.defineProperty(obj, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var prop in desc) { + if (prop === "get") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js index f792dec2e..8260002b9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js @@ -1,35 +1,38 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = "get" in desc;
-
- try {
- delete desc.get;
- var propDeleted = "get" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'get' property of + returned object is data property with correct 'configurable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownDataProperty"; + }; + Object.defineProperty(obj, "property", { + get: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = "get" in desc; + + try { + delete desc.get; + var propDeleted = "get" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js index 3ae753338..02831c153 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js @@ -1,26 +1,28 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'value' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc.set === fun;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'set' property of + returned object is data property with correct 'value' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownSetProperty"; + }; + Object.defineProperty(obj, "property", { + set: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc.set === fun; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js index ddf9e9834..285f3d55e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js @@ -1,31 +1,33 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'writable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- try {
- desc.set = "overwriteSetProperty";
- return desc.set === "overwriteSetProperty";
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'set' property of + returned object is data property with correct 'writable' attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownSetProperty"; + }; + Object.defineProperty(obj, "property", { + set: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + try { + desc.set = "overwriteSetProperty"; + return desc.set === "overwriteSetProperty"; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js index 58636233f..b98ee69e0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js @@ -1,33 +1,36 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'enumerable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
-
- for (var prop in desc) {
- if (prop === "set") {
- accessed = true;
- }
- }
-
- return accessed;
- }
-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: > + Object.getOwnPropertyDescriptor - ensure that 'set' property of + returned object is data property with correct 'enumerable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownSetProperty"; + }; + Object.defineProperty(obj, "property", { + set: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + var accessed = false; + + for (var prop in desc) { + if (prop === "set") { + accessed = true; + } + } + + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js index d64c42c40..e9afcc29f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js @@ -1,35 +1,38 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js
- * @description Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'configurable' attribute
- */
-
-
-function testcase() {
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- var propDefined = "set" in desc;
-
- try {
- delete desc.set;
- var propDeleted = "set" in desc;
-
- return propDefined && !propDeleted;
- } catch (e) {
- return 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: > + Object.getOwnPropertyDescriptor - ensure that 'set' property of + returned object is data property with correct 'configurable' + attribute +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var fun = function () { + return "ownSetProperty"; + }; + Object.defineProperty(obj, "property", { + set: fun, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + var propDefined = "set" in desc; + + try { + delete desc.set; + var propDeleted = "set" in desc; + + return propDefined && !propDeleted; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js index dc93e8dde..f5ace4046 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js @@ -1,19 +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.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js
- * @description Object.getOwnPropertyDescriptor - returned value is an instance of object
- */
-
-
-function testcase() {
- var obj = { "property": 100 };
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return desc instanceof Object;
- }
-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: > + Object.getOwnPropertyDescriptor - returned value is an instance of + object +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { "property": 100 }; + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return desc instanceof Object; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js index 6257adbd3..ada93615a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js @@ -1,23 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js
- * @description Object.getOwnPropertyDescriptor - returned object contains the property 'value' if the value of property 'value' is not explicitly specified when defined by Object.defineProperty
- */
-
-
-function testcase() {
- var obj = {};
- Object.defineProperty(obj, "property", {
- writable: true,
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return "value" in desc;
- }
-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: > + Object.getOwnPropertyDescriptor - returned object contains the + property 'value' if the value of property 'value' is not + explicitly specified when defined by Object.defineProperty +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + Object.defineProperty(obj, "property", { + writable: true, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return "value" in desc; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js index ef013f414..e2e95991a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js @@ -1,23 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js
- * @description Object.getOwnPropertyDescriptor - returned object contains the property 'set' if the value of property 'set' is not explicitly specified when defined by Object.defineProperty.
- */
-
-
-function testcase() {
- var obj = {};
- Object.defineProperty(obj, "property", {
- get: function () { },
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return "set" in desc;
- }
-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: > + Object.getOwnPropertyDescriptor - returned object contains the + property 'set' if the value of property 'set' is not explicitly + specified when defined by Object.defineProperty. +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + Object.defineProperty(obj, "property", { + get: function () { }, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return "set" in desc; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js index ed54baa3e..4e3c623ae 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isExtensible)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
- if (desc.value === Object.isExtensible &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.isExtensible) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); + if (desc.value === Object.isExtensible && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js index 8a6cdbf87..cb7ad8da3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js @@ -1,23 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js
- * @description Object.getOwnPropertyDescriptor - returned object contains the property 'get' if the value of property 'get' is not explicitly specified when defined by Object.defineProperty.
- */
-
-
-function testcase() {
- var obj = {};
- Object.defineProperty(obj, "property", {
- set: function () {},
- configurable: true
- });
-
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
-
- return "get" in desc;
- }
-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: > + Object.getOwnPropertyDescriptor - returned object contains the + property 'get' if the value of property 'get' is not explicitly + specified when defined by Object.defineProperty. +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + Object.defineProperty(obj, "property", { + set: function () {}, + configurable: true + }); + + var desc = Object.getOwnPropertyDescriptor(obj, "property"); + + return "get" in desc; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js index f2cf7912d..edc05298c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.keys)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object, "keys");
- if (desc.value === Object.keys &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.keys) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object, "keys"); + if (desc.value === Object.keys && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js index 0adaeeb61..896bb3ee3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
- if (desc.value === Object.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor"); + if (desc.value === Object.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js index 06c7ec874..3b49dd2cb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString");
- if (desc.value === Object.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString"); + if (desc.value === Object.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js index 990a852fd..a29c5a44e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.valueOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf");
- if (desc.value === Object.prototype.valueOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.valueOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf"); + if (desc.value === Object.prototype.valueOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js index ad8e9c019..e71ffe5a1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js @@ -1,29 +1,31 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js
- * @description Object.getOwnPropertyDescriptor returns an object representing an accessor desc for valid accessor properties
- */
-
-
-function testcase() {
- var o = {};
-
- // dummy getter
- var getter = function () { return 1; }
- var d = { get: getter };
-
- Object.defineProperty(o, "foo", d);
-
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
- if (desc.get === getter &&
- desc.set === undefined &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns an object representing an + accessor desc for valid accessor properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + + // dummy getter + var getter = function () { return 1; } + var d = { get: getter }; + + Object.defineProperty(o, "foo", d); + + var desc = Object.getOwnPropertyDescriptor(o, "foo"); + if (desc.get === getter && + desc.set === undefined && + desc.enumerable === false && + desc.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js index f4795e2ae..ace3550cb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.isPrototypeOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf");
- if (desc.value === Object.prototype.isPrototypeOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.isPrototypeOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf"); + if (desc.value === Object.prototype.isPrototypeOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js index 56830b62a..60a6ab712 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.hasOwnProperty)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty");
- if (desc.value === Object.prototype.hasOwnProperty &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.hasOwnProperty) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty"); + if (desc.value === Object.prototype.hasOwnProperty && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js index 412910300..802e88528 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.propertyIsEnumerable)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable");
- if (desc.value === Object.prototype.propertyIsEnumerable &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.propertyIsEnumerable) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable"); + if (desc.value === Object.prototype.propertyIsEnumerable && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js index c122b45c3..57e8a3857 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toLocaleString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString");
- if (desc.value === Object.prototype.toLocaleString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Object.prototype.toLocaleString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString"); + if (desc.value === Object.prototype.toLocaleString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js index 155c150d5..6e2754f39 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor");
- if (desc.value === Function.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Function.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor"); + if (desc.value === Function.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js index 319376d53..7071f2a6c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
- if (desc.value === Function.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Function.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString"); + if (desc.value === Function.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js index e8df9e6e6..24c54de7f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.apply)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply");
- if (desc.value === Function.prototype.apply &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Function.prototype.apply) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply"); + if (desc.value === Function.prototype.apply && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js index f6330a4ca..3e08ed8a1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.call)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call");
- if (desc.value === Function.prototype.call &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Function.prototype.call) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call"); + if (desc.value === Function.prototype.call && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js index 702da9218..58dbb37d1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.bind)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
- if (desc.value === Function.prototype.bind &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Function.prototype.bind) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); + if (desc.value === Function.prototype.bind && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js index ad42d3a3b..d1c86f9e5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor");
- if (desc.value === Array.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor"); + if (desc.value === Array.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js index d0526e482..e97c46458 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.eval)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "eval");
- if (desc.value === global.eval &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.eval) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "eval"); + if (desc.value === global.eval && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js index 99d7a880b..34dc57189 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.concat)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat");
- if (desc.value === Array.prototype.concat &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.concat) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat"); + if (desc.value === Array.prototype.concat && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js index e53738ed3..d2d65d397 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.join)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join");
- if (desc.value === Array.prototype.join &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.join) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join"); + if (desc.value === Array.prototype.join && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js index 5da001d78..6a0bd213b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reverse)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse");
- if (desc.value === Array.prototype.reverse &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.reverse) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse"); + if (desc.value === Array.prototype.reverse && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js index 9bef18be9..fd466f859 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.slice)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice");
- if (desc.value === Array.prototype.slice &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.slice) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice"); + if (desc.value === Array.prototype.slice && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js index 5851791d4..8a69f69db 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.sort)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort");
- if (desc.value === Array.prototype.sort &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.sort) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort"); + if (desc.value === Array.prototype.sort && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js index bb31d63b7..b76a23bc9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString");
- if (desc.value === Array.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString"); + if (desc.value === Array.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js index cfa4a14dc..41a958f1a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.push)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push");
- if (desc.value === Array.prototype.push &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.push) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push"); + if (desc.value === Array.prototype.push && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js index fc4806147..3a8d6f6c9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.pop)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop");
- if (desc.value === Array.prototype.pop &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.pop) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop"); + if (desc.value === Array.prototype.pop && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js index d6f6e8074..218469932 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.shift)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift");
- if (desc.value === Array.prototype.shift &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.shift) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift"); + if (desc.value === Array.prototype.shift && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js index 79c96545c..33fdae571 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.unshift)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift");
- if (desc.value === Array.prototype.unshift &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.unshift) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift"); + if (desc.value === Array.prototype.unshift && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js index ce8e102a0..7fb2b2106 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseInt)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "parseInt");
- if (desc.value === global.parseInt &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.parseInt) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "parseInt"); + if (desc.value === global.parseInt && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js index e07a10ae6..6006e91e2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.splice)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice");
- if (desc.value === Array.prototype.splice &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.splice) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice"); + if (desc.value === Array.prototype.splice && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js index 883b13cbd..19e1d7926 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toLocaleString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString");
- if (desc.value === Array.prototype.toLocaleString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.toLocaleString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString"); + if (desc.value === Array.prototype.toLocaleString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js index c5bf6318f..514f3e3fb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.indexOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
- if (desc.value === Array.prototype.indexOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.indexOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf"); + if (desc.value === Array.prototype.indexOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js index d410f3c51..403484590 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.lastIndexOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
- if (desc.value === Array.prototype.lastIndexOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.lastIndexOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf"); + if (desc.value === Array.prototype.lastIndexOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js index 57c34af71..070cb6995 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.every)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
- if (desc.value === Array.prototype.every &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.every) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every"); + if (desc.value === Array.prototype.every && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js index 544cb3332..e0d64109e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.some)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
- if (desc.value === Array.prototype.some &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.some) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some"); + if (desc.value === Array.prototype.some && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js index b21caca52..94c34de0d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.forEach)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
- if (desc.value === Array.prototype.forEach &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.forEach) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach"); + if (desc.value === Array.prototype.forEach && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js index f067208b5..fa5ddc37d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.map)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
- if (desc.value === Array.prototype.map &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.map) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map"); + if (desc.value === Array.prototype.map && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js index 5b2db2cb7..8f0256c38 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.filter)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
- if (desc.value === Array.prototype.filter &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.filter) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter"); + if (desc.value === Array.prototype.filter && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js index be10d32eb..c546cfa42 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduce)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
- if (desc.value === Array.prototype.reduce &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.reduce) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); + if (desc.value === Array.prototype.reduce && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js index 84f811112..0d4372521 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseFloat)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "parseFloat");
- if (desc.value === global.parseFloat &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.parseFloat) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "parseFloat"); + if (desc.value === global.parseFloat && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js index 47cf5192e..fc0a7edae 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduceRight)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
- if (desc.value === Array.prototype.reduceRight &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Array.prototype.reduceRight) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight"); + if (desc.value === Array.prototype.reduceRight && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js index b0cf0c740..07b743f8f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.fromCharCode)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode");
- if (desc.value === String.fromCharCode &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.fromCharCode) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode"); + if (desc.value === String.fromCharCode && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js index a908db273..9710555c7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor");
- if (desc.value === String.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor"); + if (desc.value === String.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js index 26da43a49..98ca80e3c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charAt)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt");
- if (desc.value === String.prototype.charAt &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.charAt) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt"); + if (desc.value === String.prototype.charAt && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js index 05a6ba670..690975a76 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charCodeAt)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt");
- if (desc.value === String.prototype.charCodeAt &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.charCodeAt) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt"); + if (desc.value === String.prototype.charCodeAt && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js index d569aaf48..d425272e8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.concat)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat");
- if (desc.value === String.prototype.concat &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.concat) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat"); + if (desc.value === String.prototype.concat && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js index 9491205b2..fda929368 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.indexOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf");
- if (desc.value === String.prototype.indexOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.indexOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf"); + if (desc.value === String.prototype.indexOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js index 8fa3c12dc..544e46fff 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.lastIndexOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf");
- if (desc.value === String.prototype.lastIndexOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.lastIndexOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf"); + if (desc.value === String.prototype.lastIndexOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js index 457f0ac84..960b552ef 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.match)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "match");
- if (desc.value === String.prototype.match &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.match) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "match"); + if (desc.value === String.prototype.match && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js index 6e8eaa3fb..b1b8a5f27 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.replace)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace");
- if (desc.value === String.prototype.replace &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.replace) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace"); + if (desc.value === String.prototype.replace && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js index 73d430e21..777872666 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isNaN)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "isNaN");
- if (desc.value === global.isNaN &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.isNaN) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "isNaN"); + if (desc.value === global.isNaN && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js index 12e6aff97..c09e230aa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.search)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "search");
- if (desc.value === String.prototype.search &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.search) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "search"); + if (desc.value === String.prototype.search && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js index ce1a61fa4..88972951e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.slice)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice");
- if (desc.value === String.prototype.slice &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.slice) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice"); + if (desc.value === String.prototype.slice && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js index 9ce23e85d..edd3c0847 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.split)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "split");
- if (desc.value === String.prototype.split &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.split) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "split"); + if (desc.value === String.prototype.split && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js index aeac26f13..717eaffbd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substring)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring");
- if (desc.value === String.prototype.substring &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.substring) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring"); + if (desc.value === String.prototype.substring && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js index 989e91f65..37d910ab5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLowerCase)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase");
- if (desc.value === String.prototype.toLowerCase &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.toLowerCase) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase"); + if (desc.value === String.prototype.toLowerCase && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js index 590c5988a..aca53752a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString");
- if (desc.value === String.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString"); + if (desc.value === String.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js index 00d7401fa..5a27c1d9d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toUpperCase)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase");
- if (desc.value === String.prototype.toUpperCase &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.toUpperCase) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase"); + if (desc.value === String.prototype.toUpperCase && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js index 3b534ba9f..883cbb4c6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.valueOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf");
- if (desc.value === String.prototype.valueOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.valueOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf"); + if (desc.value === String.prototype.valueOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js index aa02707ec..3ad252cda 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleLowerCase)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase");
- if (desc.value === String.prototype.toLocaleLowerCase &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.toLocaleLowerCase) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase"); + if (desc.value === String.prototype.toLocaleLowerCase && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js index b44c9a241..5e14341f2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isFinite)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "isFinite");
- if (desc.value === global.isFinite &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.isFinite) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "isFinite"); + if (desc.value === global.isFinite && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js index 43389a461..9e26f1bd9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleUpperCase)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase");
- if (desc.value === String.prototype.toLocaleUpperCase &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.toLocaleUpperCase) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase"); + if (desc.value === String.prototype.toLocaleUpperCase && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js index e83d30541..e683214cb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.localeCompare)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare");
- if (desc.value === String.prototype.localeCompare &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.localeCompare) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare"); + if (desc.value === String.prototype.localeCompare && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js index ac2ca0118..d87579616 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.trim)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
- if (desc.value === String.prototype.trim &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (String.prototype.trim) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim"); + if (desc.value === String.prototype.trim && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js index cd9a503c3..b060a4161 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor");
- if (desc.value === Boolean.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Boolean.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor"); + if (desc.value === Boolean.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js index f29629938..befb05b7c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString");
- if (desc.value === Boolean.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Boolean.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString"); + if (desc.value === Boolean.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js index 5357b4646..6c8bd0212 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.valueOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf");
- if (desc.value === Boolean.prototype.valueOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Boolean.prototype.valueOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf"); + if (desc.value === Boolean.prototype.valueOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js index c5bc87945..a4e6efc12 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.constructor)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor");
- if (desc.value === Number.prototype.constructor &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor"); + if (desc.value === Number.prototype.constructor && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js index 1cff28ecb..ef56ee8a3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString");
- if (desc.value === Number.prototype.toString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.toString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString"); + if (desc.value === Number.prototype.toString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js index 2f57361e1..7019f43ad 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js @@ -1,22 +1,26 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURI)
- */
-
-
-function testcase() {
- var global = fnGlobalObject();
- var desc = Object.getOwnPropertyDescriptor(global, "decodeURI");
- if (desc.value === global.decodeURI &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Global.decodeURI) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "decodeURI"); + if (desc.value === global.decodeURI && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js index 15f66c6fa..929d4a395 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toLocaleString)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString");
- if (desc.value === Number.prototype.toLocaleString &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.toLocaleString) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString"); + if (desc.value === Number.prototype.toLocaleString && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js index 05bc0e995..2ef4d84ba 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toFixed)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed");
- if (desc.value === Number.prototype.toFixed &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.toFixed) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed"); + if (desc.value === Number.prototype.toFixed && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js index 682cef875..29e5f018f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toExponential)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential");
- if (desc.value === Number.prototype.toExponential &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.toExponential) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential"); + if (desc.value === Number.prototype.toExponential && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js index eb8dc281f..06e6e1b83 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toPrecision)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision");
- if (desc.value === Number.prototype.toPrecision &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.toPrecision) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision"); + if (desc.value === Number.prototype.toPrecision && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js index 87158de92..ac71ff7a7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.valueOf)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf");
- if (desc.value === Number.prototype.valueOf &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Number.prototype.valueOf) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf"); + if (desc.value === Number.prototype.valueOf && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js index f51feb9c8..3758a33eb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.abs)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "abs");
- if (desc.value === Math.abs &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.abs) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "abs"); + if (desc.value === Math.abs && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js index 06e3eb9f1..07e4b5366 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.acos)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "acos");
- if (desc.value === Math.acos &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.acos) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "acos"); + if (desc.value === Math.acos && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js index 41267fb1f..462dc675a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.asin)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "asin");
- if (desc.value === Math.asin &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.asin) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "asin"); + if (desc.value === Math.asin && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js index 88bdc41bb..50816ca81 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js @@ -1,21 +1,23 @@ -/// 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.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js
- * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Math, "atan");
- if (desc.value === Math.atan &&
- desc.writable === true &&
- desc.enumerable === false &&
- desc.configurable === 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: > + Object.getOwnPropertyDescriptor returns data desc for functions on + built-ins (Math.atan) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(Math, "atan"); + if (desc.value === Math.atan && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); |