diff options
Diffstat (limited to 'test/suite/ch15/15.2/15.2.3/15.2.3.5')
314 files changed, 9792 insertions, 9018 deletions
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-1.js index dfa779fa2..b9f551356 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-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.5/15.2.3.5-0-1.js
- * @description Object.create must exist as a function
- */
-
-
-function testcase() {
- if (typeof(Object.create) === "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.create must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + if (typeof(Object.create) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-2.js index f80b68210..faacba9e7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-0-2.js
- * @description Object.create must exist as a function taking 2 parameters
- */
-
-
-function testcase() {
- if (Object.create.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.create must exist as a function taking 2 parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + if (Object.create.length === 2) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-1.js index db8875217..196cbb2d8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-1.js @@ -1,21 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-1.js
- * @description Object.create throws TypeError if 'O' is undefined
- */
-
-
-function testcase() {
-
- try {
- Object.create(undefined);
- return false;
- } 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.create throws TypeError if 'O' is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create(undefined); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-2.js index 4b6fca4d3..da0bd9db4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-2.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.5/15.2.3.5-1-2.js
- * @description Object.create TypeError is not thrown if 'O' is null
- */
-
-
-function testcase() {
- try {
- Object.create(null);
- return true;
- } 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.create TypeError is not thrown if 'O' is null +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create(null); + return true; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-3.js index a4de55a2e..8bb7f42c1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-3.js @@ -1,21 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-3.js
- * @description Object.create throws TypeError if 'O' is a boolean primitive
- */
-
-
-function testcase() {
-
- try {
- Object.create(true);
- return false;
- } 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.create throws TypeError if 'O' is a boolean primitive +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create(true); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-4.js index 61170283f..f2e7765b1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-4.js @@ -1,21 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1-4.js
- * @description Object.create throws TypeError if 'O' is a number primitive
- */
-
-
-function testcase() {
-
- try {
- Object.create(2);
- return false;
- } 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.create throws TypeError if 'O' is a number primitive +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create(2); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1.js index b88724082..8deb5e9e3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-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.5/15.2.3.5-1.js
- * @description Object.create throws TypeError if type of first param is not Object
- */
-
-
-function testcase() {
- try {
- Object.create(0);
- }
- 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.create throws TypeError if type of first param is not Object +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create(0); + } + catch (e) { + if (e instanceof TypeError) { + return true; + } + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-1.js index 9e36ee730..5c14d60c9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-1.js @@ -1,25 +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.
-/**
- * create sets the [[Prototype]] of the created object to first parameter.
- * This can be checked using isPrototypeOf, or getPrototypeOf.
- *
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-1.js
- * @description Object.create creates new Object
- */
-
-
-function testcase() {
- function base() {}
- var b = new base();
- var prop = new Object();
- var d = Object.create(b);
-
- if (typeof d === 'object') {
- 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. + +/*--- +info: > + create sets the [[Prototype]] of the created object to first parameter. + This can be checked using isPrototypeOf, or getPrototypeOf. +description: Object.create creates new Object +includes: [runTestCase.js] +---*/ + +function testcase() { + function base() {} + var b = new base(); + var prop = new Object(); + var d = Object.create(b); + + if (typeof d === 'object') { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-2.js index d91ece076..298d9ca45 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-2-2.js
- * @description Object.create - returned object is an instance of Object
- */
-
-
-function testcase() {
-
- var newObj = Object.create({});
- return newObj 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.create - returned object is an instance of Object +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}); + return newObj instanceof Object; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-3-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-3-1.js index 87381b28e..8a1f05705 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-3-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-3-1.js @@ -1,25 +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.
-/**
- * create sets the [[Prototype]] of the created object to first parameter.
- * This can be checked using isPrototypeOf, or getPrototypeOf.
- *
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-3-1.js
- * @description Object.create sets the prototype of the passed-in object
- */
-
-
-function testcase() {
- function base() {}
- var b = new base();
- var d = Object.create(b);
-
- if (Object.getPrototypeOf(d) === b &&
- b.isPrototypeOf(d) === 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. + +/*--- +info: > + create sets the [[Prototype]] of the created object to first parameter. + This can be checked using isPrototypeOf, or getPrototypeOf. +description: Object.create sets the prototype of the passed-in object +includes: [runTestCase.js] +---*/ + +function testcase() { + function base() {} + var b = new base(); + var d = Object.create(b); + + if (Object.getPrototypeOf(d) === b && + b.isPrototypeOf(d) === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-1.js index 4c0d6c331..db7ba49e5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-1.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.
-/**
- * create sets the [[Prototype]] of the created object to first parameter.
- * This can be checked using isPrototypeOf, or getPrototypeOf.
- *
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-1.js
- * @description Object.create sets the prototype of the passed-in object and adds new properties
- */
-
-
-function testcase() {
- function base() {}
- var b = new base();
- var prop = new Object();
- var d = Object.create(b,{ "x": {value: true,writable: false},
- "y": {value: "str",writable: false} });
-
- if (Object.getPrototypeOf(d) === b &&
- b.isPrototypeOf(d) === true &&
- d.x === true &&
- d.y === "str" &&
- b.x === undefined &&
- b.y === 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. + +/*--- +info: > + create sets the [[Prototype]] of the created object to first parameter. + This can be checked using isPrototypeOf, or getPrototypeOf. +description: > + Object.create sets the prototype of the passed-in object and adds + new properties +includes: [runTestCase.js] +---*/ + +function testcase() { + function base() {} + var b = new base(); + var prop = new Object(); + var d = Object.create(b,{ "x": {value: true,writable: false}, + "y": {value: "str",writable: false} }); + + if (Object.getPrototypeOf(d) === b && + b.isPrototypeOf(d) === true && + d.x === true && + d.y === "str" && + b.x === undefined && + b.y === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-10.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-10.js index 24f542426..6ad445417 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-10.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-10.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.5/15.2.3.5-4-10.js
- * @description Object.create - argument 'Properties' is the Math object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var result = false;
- Object.defineProperty(Math, "prop", {
- get: function () {
- result = (this === Math);
- return {};
- },
- enumerable: true,
- configurable: true
- });
-
- try {
- var newObj = Object.create({}, Math);
- return result && newObj.hasOwnProperty("prop");
- } finally {
- delete Math.prop;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is the Math object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var result = false; + Object.defineProperty(Math, "prop", { + get: function () { + result = (this === Math); + return {}; + }, + enumerable: true, + configurable: true + }); + + try { + var newObj = Object.create({}, Math); + return result && newObj.hasOwnProperty("prop"); + } finally { + delete Math.prop; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-100.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-100.js index f2ec925e9..61e9fde44 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-100.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-100.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.5/15.2.3.5-4-100.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is not present (8.10.5 step 4)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- value: "ownDataProperty"
- }
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is not present (8.10.5 step 4) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + value: "ownDataProperty" + } + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-101.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-101.js index fc189c047..d3c1cb92a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-101.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-101.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.5/15.2.3.5-4-101.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own data property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: false
- }
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own data property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: false + } + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-102.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-102.js index 37da96bde..f1d9bfa40 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-102.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-102.js @@ -1,33 +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.5/15.2.3.5-4-102.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an inherited data property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {
- configurable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is an inherited data property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + configurable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-103.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-103.js index 8a0ab5825..30e97f1d8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-103.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-103.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.5/15.2.3.5-4-103.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {
- configurable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "configurable", {
- value: false
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own data property that overrides an inherited data + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + configurable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "configurable", { + value: false + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-104.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-104.js index 1a0ceb2d1..4bdc6da2d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-104.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-104.js @@ -1,38 +1,41 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-104.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "configurable", {
- value: false
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own data property that overrides an inherited + accessor property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "configurable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "configurable", { + value: false + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-105.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-105.js index 57fd329d4..e7c77133e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-105.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-105.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.5/15.2.3.5-4-105.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own accessor property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
- Object.defineProperty(descObj, "configurable", {
- get: function () {
- return true;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own accessor property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + Object.defineProperty(descObj, "configurable", { + get: function () { + return true; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-106.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-106.js index 8885749da..3ec686490 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-106.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-106.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.5/15.2.3.5-4-106.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is an inherited accessor property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "configurable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-107.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-107.js index 703236a0f..3788eb3ad 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-107.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-107.js @@ -1,37 +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.5/15.2.3.5-4-107.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {
- configurable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own accessor property that overrides an inherited + data property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + configurable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "configurable", { + get: function () { + return false; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-108.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-108.js index fa58eefb8..93ba554a8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-108.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-108.js @@ -1,40 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-108.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own accessor property that overrides an inherited + accessor property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "configurable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "configurable", { + get: function () { + return false; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-109.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-109.js index df4ca63d3..6b4a15479 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-109.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-109.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.5/15.2.3.5-4-109.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
- Object.defineProperty(descObj, "configurable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own accessor property without a get function + (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + Object.defineProperty(descObj, "configurable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-11.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-11.js index 68c465b25..e20f19640 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-11.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-11.js @@ -1,27 +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.5/15.2.3.5-4-11.js
- * @description Object.create - argument 'Properties' is a Date object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var props = new Date();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Date;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
- return result && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a Date object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Date(); + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Date; + return {}; + }, + enumerable: true + }); + var newObj = Object.create({}, props); + return result && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-110.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-110.js index 2952f0de8..0e4762c5d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-110.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-110.js @@ -1,38 +1,41 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-110.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "configurable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is own accessor property without a get function, + which overrides an inherited accessor property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "configurable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "configurable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-111.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-111.js index f18ba9488..2a12ba3b1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-111.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-111.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.5/15.2.3.5-4-111.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "configurable", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is an inherited accessor property without a get + function (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "configurable", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-112.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-112.js index c10c6e052..5371270ad 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-112.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-112.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.5/15.2.3.5-4-112.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = function () { };
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the + 'configurable' property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = function () { }; + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-113.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-113.js index e00bb78ce..0be6c569c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-113.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-113.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.5/15.2.3.5-4-113.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = [];
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = []; + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-114.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-114.js index 256c43518..b6033afc0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-114.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-114.js @@ -1,27 +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.5/15.2.3.5-4-114.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new String();
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new String(); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-115.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-115.js index 969c9a462..9b2e2820a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-115.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-115.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.5/15.2.3.5-4-115.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new Boolean(false);
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new Boolean(false); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-116.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-116.js index e0a983c3c..9bb72f78c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-116.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-116.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.5/15.2.3.5-4-116.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new Number(-9);
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new Number(-9); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-117.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-117.js index 906f30e04..c66dd185e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-117.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-117.js @@ -1,30 +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.5/15.2.3.5-4-117.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- try {
- Math.configurable = true;
-
- var newObj = Object.create({}, {
- prop: Math
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === false;
- } finally {
- delete Math.configurable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Math.configurable = true; + + var newObj = Object.create({}, { + prop: Math + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } finally { + delete Math.configurable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-118.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-118.js index 5c130f8c3..2b9ec74f8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-118.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-118.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.5/15.2.3.5-4-118.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new Date();
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'configurable' property + (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new Date(); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-119.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-119.js index 95d2f1bd4..fba4af5b8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-119.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-119.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.5/15.2.3.5-4-119.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new RegExp();
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'configurable' property + (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new RegExp(); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-12.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-12.js index 588572161..965bc1242 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-12.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-12.js @@ -1,27 +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.5/15.2.3.5-4-12.js
- * @description Object.create - argument 'Properties' is a RegExp object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var props = new RegExp();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof RegExp;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
- return result && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a RegExp object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new RegExp(); + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof RegExp; + return {}; + }, + enumerable: true + }); + var newObj = Object.create({}, props); + return result && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-120.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-120.js index 494b5d490..178d8724d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-120.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-120.js @@ -1,30 +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.5/15.2.3.5-4-120.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- try {
- JSON.configurable = true;
-
- var newObj = Object.create({}, {
- prop: JSON
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === false;
- } finally {
- delete JSON.configurable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + JSON.configurable = true; + + var newObj = Object.create({}, { + prop: JSON + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } finally { + delete JSON.configurable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-121.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-121.js index de6cc0831..61660e804 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-121.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-121.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.5/15.2.3.5-4-121.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var descObj = new Error();
-
- descObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = new Error(); + + descObj.configurable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-122.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-122.js index 4dd19de0a..cbc8b238a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-122.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-122.js @@ -1,27 +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.5/15.2.3.5-4-122.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- argObj.configurable = true;
-
- var newObj = Object.create({}, {
- prop: argObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the + 'configurable' property (8.10.5 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + argObj.configurable = true; + + var newObj = Object.create({}, { + prop: argObj + }); + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-124.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-124.js index 14a98e4ab..2ed0e0239 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-124.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-124.js @@ -1,30 +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.5/15.2.3.5-4-124.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a)
- */
-
-
-function testcase() {
-
- try {
- fnGlobalObject().configurable = true;
-
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === false;
- } finally {
- delete fnGlobalObject().configurable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'configurable' + property (8.10.5 step 4.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + try { + fnGlobalObject().configurable = true; + + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } finally { + delete fnGlobalObject().configurable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-125.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-125.js index d4f253bd4..b9c6b7714 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-125.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-125.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.5/15.2.3.5-4-125.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is undefined (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: undefined
- }
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is undefined (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: undefined + } + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-126.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-126.js index 625b1d810..a86598d7a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-126.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-126.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.5/15.2.3.5-4-126.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is null (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: null
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is null (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: null + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-127.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-127.js index c36ad97c1..cb1989d6b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-127.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-127.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.5/15.2.3.5-4-127.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is true (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: true
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is true (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: true + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-128.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-128.js index c13961a8e..4885b4fa0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-128.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-128.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.5/15.2.3.5-4-128.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is false (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: false
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is false (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: false + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-129.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-129.js index aae9f820ff..2a28a0b4b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-129.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-129.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.5/15.2.3.5-4-129.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is 0 (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: 0
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is 0 (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: 0 + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-13.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-13.js index 78288dabf..eb497c734 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-13.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-13.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.5/15.2.3.5-4-13.js
- * @description Object.create - argument 'Properties' is the JSON object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var result = false;
-
- Object.defineProperty(JSON, "prop", {
- get: function () {
- result = (this === JSON);
- return {};
- },
- enumerable: true,
- configurable: true
- });
-
- try {
- var newObj = Object.create({}, JSON);
- return result && newObj.hasOwnProperty("prop");
- } finally {
- delete JSON.prop;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is the JSON object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var result = false; + + Object.defineProperty(JSON, "prop", { + get: function () { + result = (this === JSON); + return {}; + }, + enumerable: true, + configurable: true + }); + + try { + var newObj = Object.create({}, JSON); + return result && newObj.hasOwnProperty("prop"); + } finally { + delete JSON.prop; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-130.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-130.js index 7bd59a67b..729111019 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-130.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-130.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.5/15.2.3.5-4-130.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is +0 (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: +0
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is +0 (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: +0 + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-131.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-131.js index 0360cf0c7..55f391696 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-131.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-131.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.5/15.2.3.5-4-131.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is -0 (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: -0
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is -0 (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: -0 + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-132.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-132.js index 9abb4ec06..30ae6f416 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-132.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-132.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.5/15.2.3.5-4-132.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is NaN (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: NaN
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is NaN (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: NaN + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-133.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-133.js index 35feac6e7..b306886a1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-133.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-133.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.5/15.2.3.5-4-133.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a positive number (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: 123
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a positive number (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: 123 + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-134.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-134.js index 2da25728f..581d7eeb2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-134.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-134.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.5/15.2.3.5-4-134.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a negative number (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: -123
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a negative number (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: -123 + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-135.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-135.js index b9532c0c7..b87ee2336 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-135.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-135.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.5/15.2.3.5-4-135.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an empty string (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: ""
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is an empty string (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: "" + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-136.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-136.js index 3c675e41a..23776f215 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-136.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-136.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.5/15.2.3.5-4-136.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a non-empty string (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: "abc"
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a non-empty string (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: "abc" + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-137.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-137.js index b217fb1cf..26a4cf662 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-137.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-137.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.5/15.2.3.5-4-137.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a Function object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: function () { }
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a Function object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: function () { } + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-138.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-138.js index fd7f2fef2..6e15104c2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-138.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-138.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.5/15.2.3.5-4-138.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an Array object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: []
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is an Array object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: [] + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-139.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-139.js index 03b20dbc4..f9932aae0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-139.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-139.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.5/15.2.3.5-4-139.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a String object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new String("abc")
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a String object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new String("abc") + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-14.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-14.js index 4fe1b9988..6484f3969 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-14.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-14.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.5/15.2.3.5-4-14.js
- * @description Object.create - argument 'Properties' is an Error object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var props = new Error("test");
- var result = false;
-
- (Object.getOwnPropertyNames(props)).forEach(function(name){
- props[name] = {value:11, configurable:true}
- });
-
- Object.defineProperty(props, "prop15_2_3_5_4_14", {
- get: function () {
- result = this instanceof Error;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
- return result && newObj.hasOwnProperty("prop15_2_3_5_4_14");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is an Error object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Error("test"); + var result = false; + + (Object.getOwnPropertyNames(props)).forEach(function(name){ + props[name] = {value:11, configurable:true} + }); + + Object.defineProperty(props, "prop15_2_3_5_4_14", { + get: function () { + result = this instanceof Error; + return {}; + }, + enumerable: true + }); + var newObj = Object.create({}, props); + return result && newObj.hasOwnProperty("prop15_2_3_5_4_14"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-140.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-140.js index 1a3d6babb..e05ab4c2d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-140.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-140.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.5/15.2.3.5-4-140.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a Boolean object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new Boolean(true)
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a Boolean object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new Boolean(true) + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-141.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-141.js index c32d0c707..7ca0a82ab 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-141.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-141.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.5/15.2.3.5-4-141.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a Number object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new Number(123)
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a Number object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new Number(123) + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-142.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-142.js index c762596a2..c4aca5ea7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-142.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-142.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.5/15.2.3.5-4-142.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is the Math object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: Math
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is the Math object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: Math + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-143.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-143.js index f525ab9fe..2723a8f9e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-143.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-143.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.5/15.2.3.5-4-143.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a Date object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new Date()
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a Date object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new Date() + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-144.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-144.js index b3d4ed283..6e03121a4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-144.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-144.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.5/15.2.3.5-4-144.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a RegExp object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new RegExp()
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a RegExp object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new RegExp() + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-145.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-145.js index 889da7d22..da121110c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-145.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-145.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.5/15.2.3.5-4-145.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is the JSON object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: JSON
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is the JSON object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: JSON + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-146.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-146.js index 92ca90398..f481055d6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-146.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-146.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.5/15.2.3.5-4-146.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an Error object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new Error()
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is an Error object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new Error() + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-147.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-147.js index a4947e2fa..950dd4251 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-147.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-147.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.5/15.2.3.5-4-147.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is an Arguments object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- var newObj = Object.create({}, {
- prop: {
- configurable: argObj
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is an Arguments object (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + var newObj = Object.create({}, { + prop: { + configurable: argObj + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-149.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-149.js index dfd50d46a..ae14eb384 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-149.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-149.js @@ -1,28 +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.5/15.2.3.5-4-149.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is the global object (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: fnGlobalObject()
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is the global object (8.10.5 step 4.b) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: fnGlobalObject() + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-15.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-15.js index 20ba02141..187138e54 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-15.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-15.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.5/15.2.3.5-4-15.js
- * @description Object.create - argument 'Properties' is the Aguments object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var result = false;
-
- var argObj = (function () { return arguments; })();
-
- Object.defineProperty(argObj, "prop", {
- get: function () {
- result = ('[object Arguments]' === Object.prototype.toString.call(this));
- return {};
- },
- enumerable: true
- });
-
- var newObj = Object.create({}, argObj);
- return result && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is the Aguments object + (15.2.3.7 step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var result = false; + + var argObj = (function () { return arguments; })(); + + Object.defineProperty(argObj, "prop", { + get: function () { + result = ('[object Arguments]' === Object.prototype.toString.call(this)); + return {}; + }, + enumerable: true + }); + + var newObj = Object.create({}, argObj); + return result && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-150.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-150.js index 77d3e7434..9811bd7e5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-150.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-150.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.5/15.2.3.5-4-150.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is a string (value is 'false') which is treated as the value true (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: "false"
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is a string (value is 'false') which is treated as + the value true (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: "false" + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-151.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-151.js index 95f9c4231..659aa0276 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-151.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-151.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.5/15.2.3.5-4-151.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is new Boolean(false) which is treated as the value true (8.10.5 step 4.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: new Boolean(false)
- }
- });
-
- var beforeDeleted = newObj.hasOwnProperty("prop");
-
- delete newObj.prop;
-
- var afterDeleted = newObj.hasOwnProperty("prop");
-
- return beforeDeleted === true && afterDeleted === 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.create - 'configurable' property of one property in + 'Properties' is new Boolean(false) which is treated as the value + true (8.10.5 step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: new Boolean(false) + } + }); + + var beforeDeleted = newObj.hasOwnProperty("prop"); + + delete newObj.prop; + + var afterDeleted = newObj.hasOwnProperty("prop"); + + return beforeDeleted === true && afterDeleted === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-152.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-152.js index 50d8ed414..2a509baa1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-152.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-152.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.5/15.2.3.5-4-152.js
- * @description Object.create - 'value' property of one property in 'Properties' is present (8.10.5 step 5)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- value: 100
- }
- });
-
- return newObj.prop === 100;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is present (8.10.5 step 5) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + value: 100 + } + }); + + return newObj.prop === 100; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-153.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-153.js index 6decc9821..bec6beefa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-153.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-153.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.5/15.2.3.5-4-153.js
- * @description Object.create - 'value' property of one property in 'Properties' is not present (8.10.5 step 5)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {}
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'value' property of one property in 'Properties' + is not present (8.10.5 step 5) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: {} + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-154.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-154.js index 4b1fefb8e..709828207 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-154.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-154.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.5/15.2.3.5-4-154.js
- * @description Object.create - 'value' property of one property in 'Properties' is own data property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- value: "ownDataProperty"
- }
- });
-
- return newObj.prop === "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.create - 'value' property of one property in 'Properties' + is own data property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + value: "ownDataProperty" + } + }); + + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-155.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-155.js index ad79f31a5..568230247 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-155.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-155.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.5/15.2.3.5-4-155.js
- * @description Object.create - 'value' property of one property in 'Properties' is an inherited data property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {
- value: "inheritedDataProperty"
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "inheritedDataProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is an inherited data property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + value: "inheritedDataProperty" + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "inheritedDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-156.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-156.js index 20846a496..31c2b6dbd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-156.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-156.js @@ -1,31 +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.5/15.2.3.5-4-156.js
- * @description Object.create - 'value' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {
- value: "inheritedDataProperty"
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- descObj.value = "ownDataProperty";
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "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.create - 'value' property of one property in 'Properties' + is own data property that overrides an inherited data property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + value: "inheritedDataProperty" + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + descObj.value = "ownDataProperty"; + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-157.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-157.js index f4d1cfee9..06523b5e3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-157.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-157.js @@ -1,39 +1,42 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-157.js
- * @description Object.create - 'value' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownDataProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "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.create - 'value' property of one property in 'Properties' + is own data property that overrides an inherited accessor property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "value", { + get: function () { + return "inheritedAccessorProperty"; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "value", { + get: function () { + return "ownDataProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-158.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-158.js index 8b7afa595..bf3df5425 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-158.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-158.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.5/15.2.3.5-4-158.js
- * @description Object.create - 'value' property of one property in 'Properties' is own accessor property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
-
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is own accessor property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + + Object.defineProperty(descObj, "value", { + get: function () { + return "ownAccessorProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-159.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-159.js index 1c6d3aa68..f1b5c9610 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-159.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-159.js @@ -1,33 +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.5/15.2.3.5-4-159.js
- * @description Object.create - 'value' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "inheritedAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is an inherited accessor property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "value", { + get: function () { + return "inheritedAccessorProperty"; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "inheritedAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-16.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-16.js index c2d6df51c..e090341af 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-16.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-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.5/15.2.3.5-4-16.js
- * @description Object.create - own enumerable data property in 'Properties' is defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {}
- });
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable data property in 'Properties' is + defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: {} + }); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-160.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-160.js index 5079bda92..2a273a2a4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-160.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-160.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.5/15.2.3.5-4-160.js
- * @description Object.create - 'value' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {
- value: "inheritedDataProperty"
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is own accessor property that overrides an inherited data property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + value: "inheritedDataProperty" + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "value", { + get: function () { + return "ownAccessorProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-161.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-161.js index 0998ac349..69dc33a48 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-161.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-161.js @@ -1,39 +1,42 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-161.js
- * @description Object.create - 'value' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'value' property of one property in 'Properties' + is own accessor property that overrides an inherited accessor + property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "value", { + get: function () { + return "inheritedAccessorProperty"; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "value", { + get: function () { + return "ownAccessorProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-162.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-162.js index 2cc3f6659..b1af60438 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-162.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-162.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.5/15.2.3.5-4-162.js
- * @description Object.create - 'value' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
-
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'value' property of one property in 'Properties' + is own accessor property without a get function (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + + Object.defineProperty(descObj, "value", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-163.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-163.js index c20bf0e0e..4cdbede50 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-163.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-163.js @@ -1,37 +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.5/15.2.3.5-4-163.js
- * @description Object.create - 'value' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'value' property of one property in 'Properties' + is own accessor property without a get function, which overrides + an inherited accessor property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "value", { + get: function () { + return "inheritedAccessorProperty"; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "value", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-164.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-164.js index 506bf44fb..1de1f2acf 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-164.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-164.js @@ -1,31 +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.5/15.2.3.5-4-164.js
- * @description Object.create - 'value' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "value", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'value' property of one property in 'Properties' + is an inherited accessor property without a get function (8.10.5 + step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "value", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-165.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-165.js index 57beb5c0c..178bd4825 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-165.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-165.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.5/15.2.3.5-4-165.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var Func = function (a, b) {
- return a + b;
- };
-
- var fun = new Func();
- fun.value = "FunValue";
-
- var newObj = Object.create({}, {
- prop: fun
- });
- return newObj.prop === "FunValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the 'value' + property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var Func = function (a, b) { + return a + b; + }; + + var fun = new Func(); + fun.value = "FunValue"; + + var newObj = Object.create({}, { + prop: fun + }); + return newObj.prop === "FunValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-166.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-166.js index 445c08ed3..891335632 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-166.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-166.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.5/15.2.3.5-4-166.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var arr = [1, 2, 3];
-
- arr.value = "ArrValue";
-
- var newObj = Object.create({}, {
- prop: arr
- });
-
- return newObj.prop === "ArrValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var arr = [1, 2, 3]; + + arr.value = "ArrValue"; + + var newObj = Object.create({}, { + prop: arr + }); + + return newObj.prop === "ArrValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-167.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-167.js index dd9bef6a8..bc3063253 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-167.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-167.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.5/15.2.3.5-4-167.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var str = new String("abc");
-
- str.value = "StrValue";
-
- var newObj = Object.create({}, {
- prop: str
- });
-
- return newObj.prop === "StrValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var str = new String("abc"); + + str.value = "StrValue"; + + var newObj = Object.create({}, { + prop: str + }); + + return newObj.prop === "StrValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-168.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-168.js index 396d599f3..65f1125cb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-168.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-168.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.5/15.2.3.5-4-168.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var booleanObj = new Boolean(false);
-
- booleanObj.value = "BooleanValue";
-
- var newObj = Object.create({}, {
- prop: booleanObj
- });
-
- return newObj.prop === "BooleanValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var booleanObj = new Boolean(false); + + booleanObj.value = "BooleanValue"; + + var newObj = Object.create({}, { + prop: booleanObj + }); + + return newObj.prop === "BooleanValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-169.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-169.js index 5cc5366ec..86a73d759 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-169.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-169.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.5/15.2.3.5-4-169.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var numObj = new Number(123);
-
- numObj.value = "NumValue";
-
- var newObj = Object.create({}, {
- prop: numObj
- });
-
- return newObj.prop === "NumValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var numObj = new Number(123); + + numObj.value = "NumValue"; + + var newObj = Object.create({}, { + prop: numObj + }); + + return newObj.prop === "NumValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-17.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-17.js index b92c513ed..26c993992 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-17.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-17.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.5/15.2.3.5-4-17.js
- * @description Object.create - own data property in 'Properties' which is not enumerable is not defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var props = {};
- Object.defineProperty(props, "prop", {
- value: {},
- enumerable: false
- });
- var newObj = Object.create({}, props);
-
- return !newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own data property in 'Properties' which is not + enumerable is not defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + Object.defineProperty(props, "prop", { + value: {}, + enumerable: false + }); + var newObj = Object.create({}, props); + + return !newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-170.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-170.js index fbb3c76c2..50838931e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-170.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-170.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.5/15.2.3.5-4-170.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- try {
- Math.value = "MathValue";
-
- var newObj = Object.create({}, {
- prop: Math
- });
-
- return newObj.prop === "MathValue";
- } finally {
- delete Math.value;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Math.value = "MathValue"; + + var newObj = Object.create({}, { + prop: Math + }); + + return newObj.prop === "MathValue"; + } finally { + delete Math.value; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-171.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-171.js index ba18b8505..dd5bd5d29 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-171.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-171.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.5/15.2.3.5-4-171.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var dateObj = new Date();
-
- dateObj.value = "DateValue";
-
- var newObj = Object.create({}, {
- prop: dateObj
- });
-
- return newObj.prop === "DateValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var dateObj = new Date(); + + dateObj.value = "DateValue"; + + var newObj = Object.create({}, { + prop: dateObj + }); + + return newObj.prop === "DateValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-172.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-172.js index 8dd2f53ae..9c9adee2c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-172.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-172.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.5/15.2.3.5-4-172.js
- * @description Object.create - one property in 'Properties' is a RegExp object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var regObj = new RegExp();
-
- regObj.value = "RegExpValue";
-
- var newObj = Object.create({}, {
- prop: regObj
- });
-
- return newObj.prop === "RegExpValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a RegExp object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var regObj = new RegExp(); + + regObj.value = "RegExpValue"; + + var newObj = Object.create({}, { + prop: regObj + }); + + return newObj.prop === "RegExpValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-173.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-173.js index 76fc77b5e..2465e25b8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-173.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-173.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.5/15.2.3.5-4-173.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- try {
- JSON.value = "JSONValue";
-
- var newObj = Object.create({}, {
- prop: JSON
- });
-
- return newObj.prop === "JSONValue";
- } finally {
- delete JSON.value;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + JSON.value = "JSONValue"; + + var newObj = Object.create({}, { + prop: JSON + }); + + return newObj.prop === "JSONValue"; + } finally { + delete JSON.value; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-174.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-174.js index 54cd9f718..4eed88a34 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-174.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-174.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.5/15.2.3.5-4-174.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var errorObj = new Error();
-
- errorObj.value = "ErrorValue";
-
- var newObj = Object.create({}, {
- prop: errorObj
- });
-
- return newObj.prop === "ErrorValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var errorObj = new Error(); + + errorObj.value = "ErrorValue"; + + var newObj = Object.create({}, { + prop: errorObj + }); + + return newObj.prop === "ErrorValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-175.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-175.js index 9216a1a5e..a10c404da 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-175.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-175.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.5/15.2.3.5-4-175.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- argObj.value = "ArgValue";
-
- var newObj = Object.create({}, {
- prop: argObj
- });
-
- return newObj.prop === "ArgValue";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the + 'value' property (8.10.5 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + argObj.value = "ArgValue"; + + var newObj = Object.create({}, { + prop: argObj + }); + + return newObj.prop === "ArgValue"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-177.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-177.js index d54ef7c16..e707598e9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-177.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-177.js @@ -1,26 +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.5/15.2.3.5-4-177.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'value' property (8.10.5 step 5.a)
- */
-
-
-function testcase() {
-
- try {
- fnGlobalObject().value = "GlobalValue";
-
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
-
- return newObj.prop === "GlobalValue";
- } finally {
- delete fnGlobalObject().value;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'value' property + (8.10.5 step 5.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + try { + fnGlobalObject().value = "GlobalValue"; + + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + + return newObj.prop === "GlobalValue"; + } finally { + delete fnGlobalObject().value; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-178.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-178.js index b181a8c9e..32e7d05de 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-178.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-178.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.5/15.2.3.5-4-178.js
- * @description Object.create - 'writable' property of one property in 'Properties' is true (8.10.5 step 6)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
-
- var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"));
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is true (8.10.5 step 6) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: true + } + }); + + var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined")); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-179.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-179.js index 31f23bc28..eaccecbc1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-179.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-179.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.5/15.2.3.5-4-179.js
- * @description Object.create - 'writable' property of one property in 'Properties' is not present (8.10.5 step 6)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- value: 100
- }
- });
-
- var beforeWrite = (newObj.prop === 100);
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === 100);
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is not present (8.10.5 step 6) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + value: 100 + } + }); + + var beforeWrite = (newObj.prop === 100); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === 100); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-18.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-18.js index 93da06268..695fed325 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-18.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-18.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.5/15.2.3.5-4-18.js
- * @description Object.create - an enumerable inherited data property in 'Properties' is not defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- proto.prop = {};
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
-
- var newObj = Object.create({}, child);
-
- return !newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - an enumerable inherited data property in + 'Properties' is not defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + proto.prop = {}; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + + var newObj = Object.create({}, child); + + return !newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-180.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-180.js index c12b3fc84..529987f29 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-180.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-180.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.5/15.2.3.5-4-180.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own data property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own data property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: true + } + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-181.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-181.js index 8a55a03f7..d947c00cf 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-181.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-181.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.5/15.2.3.5-4-181.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an inherited data property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {
- writable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is an inherited data property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + writable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-182.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-182.js index 86c16dc28..cec7d4258 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-182.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-182.js @@ -1,37 +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.5/15.2.3.5-4-182.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {
- writable: false
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- descObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own data property that overrides an inherited data + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + writable: false + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + descObj.writable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-183.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-183.js index 7b75feb13..13650c0f3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-183.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-183.js @@ -1,43 +1,46 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-183.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "writable", {
- get: function () {
- return false;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "writable", {
- value: true
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own data property that overrides an inherited + accessor property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "writable", { + get: function () { + return false; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "writable", { + value: true + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-184.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-184.js index d841acd7a..7952b9315 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-184.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-184.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.5/15.2.3.5-4-184.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own accessor property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
-
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own accessor property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + + Object.defineProperty(descObj, "writable", { + get: function () { + return true; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-185.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-185.js index 81e2443a6..b3eac77ca 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-185.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-185.js @@ -1,39 +1,41 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-185.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is an inherited accessor property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "writable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-186.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-186.js index 9c9433a54..6bb811e03 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-186.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-186.js @@ -1,41 +1,44 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-186.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {
- writable: false
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own accessor property that overrides an inherited + data property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + writable: false + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "writable", { + get: function () { + return true; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-187.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-187.js index 785a7d457..b1a93783a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-187.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-187.js @@ -1,45 +1,48 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-187.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "writable", {
- get: function () {
- return false;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own accessor property that overrides an inherited + accessor property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "writable", { + get: function () { + return false; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "writable", { + get: function () { + return true; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-188.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-188.js index c8f7e940b..0e24611e3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-188.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-188.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.5/15.2.3.5-4-188.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var descObj = { value: 100 };
-
- Object.defineProperty(descObj, "writable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.prop === 100);
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === 100);
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own accessor property without a get function + (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = { value: 100 }; + + Object.defineProperty(descObj, "writable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.prop === 100); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === 100); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-189.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-189.js index e1f91c994..da1905b80 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-189.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-189.js @@ -1,43 +1,46 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-189.js
- * @description Object.create - 'writable' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "writable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is own accessor property without a get function, + which overrides an inherited accessor property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "writable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "writable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === false; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-19.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-19.js index fc85fe26c..b8cae8f1e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-19.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-19.js @@ -1,27 +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.5/15.2.3.5-4-19.js
- * @description Object.create - own enumerable accessor property in 'Properties' is defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var props = {};
-
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
-
- var newObj = Object.create({}, props);
-
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable accessor property in 'Properties' + is defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + + Object.defineProperty(props, "prop", { + get: function () { + return {}; + }, + enumerable: true + }); + + var newObj = Object.create({}, props); + + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-190.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-190.js index d05311921..21c9d1763 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-190.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-190.js @@ -1,37 +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.5/15.2.3.5-4-190.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var proto = { value: 100 };
-
- Object.defineProperty(proto, "writable", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var beforeWrite = (newObj.prop === 100);
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === 100);
-
- return beforeWrite === true && afterWrite === 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.create - 'writable' property of one property in + 'Properties' is an inherited accessor property without a get + function (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { value: 100 }; + + Object.defineProperty(proto, "writable", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + var beforeWrite = (newObj.prop === 100); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === 100); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-191.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-191.js index 790c8f575..bed0d5349 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-191.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-191.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.5/15.2.3.5-4-191.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var Func = function (a, b) {
- return a + b;
- };
-
- var fun = new Func();
- fun.writable = true;
-
- var newObj = Object.create({}, {
- prop: fun
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var Func = function (a, b) { + return a + b; + }; + + var fun = new Func(); + fun.writable = true; + + var newObj = Object.create({}, { + prop: fun + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-192.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-192.js index 9c10fc7ba..2a6539b6c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-192.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-192.js @@ -1,30 +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.5/15.2.3.5-4-192.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var array = [1, 2, 3];
-
- array.writable = true;
-
- var newObj = Object.create({}, {
- prop: array
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var array = [1, 2, 3]; + + array.writable = true; + + var newObj = Object.create({}, { + prop: array + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-193.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-193.js index 9528db032..d3c436f9c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-193.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-193.js @@ -1,30 +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.5/15.2.3.5-4-193.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var str = new String("abc");
-
- str.writable = true;
-
- var newObj = Object.create({}, {
- prop: str
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var str = new String("abc"); + + str.writable = true; + + var newObj = Object.create({}, { + prop: str + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-194.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-194.js index 4c8abc4e2..5be7ca980 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-194.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-194.js @@ -1,30 +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.5/15.2.3.5-4-194.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var booleanObj = new Boolean(false);
-
- booleanObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: booleanObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var booleanObj = new Boolean(false); + + booleanObj.writable = true; + + var newObj = Object.create({}, { + prop: booleanObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-195.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-195.js index a3e33add9..411cbae7c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-195.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-195.js @@ -1,30 +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.5/15.2.3.5-4-195.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var numObj = new Number(123);
-
- numObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: numObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var numObj = new Number(123); + + numObj.writable = true; + + var newObj = Object.create({}, { + prop: numObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-196.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-196.js index 324c612cf..1a6a79e21 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-196.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-196.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.5/15.2.3.5-4-196.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- try {
- Math.writable = true;
-
- var newObj = Object.create({}, {
- prop: Math
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === true;
- } finally {
- delete Math.writable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Math.writable = true; + + var newObj = Object.create({}, { + prop: Math + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } finally { + delete Math.writable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-197.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-197.js index cc5ed3743..b048f00de 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-197.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-197.js @@ -1,30 +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.5/15.2.3.5-4-197.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var dateObj = new Date();
-
- dateObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: dateObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'writable' property + (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var dateObj = new Date(); + + dateObj.writable = true; + + var newObj = Object.create({}, { + prop: dateObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-198.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-198.js index 4b0424b15..c9fd1d669 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-198.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-198.js @@ -1,30 +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.5/15.2.3.5-4-198.js
- * @description Object.create - one property in 'Properties' is a RegExp object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var regObj = new RegExp();
-
- regObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: regObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is a RegExp object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var regObj = new RegExp(); + + regObj.writable = true; + + var newObj = Object.create({}, { + prop: regObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-199.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-199.js index b74e37546..3b2707315 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-199.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-199.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.5/15.2.3.5-4-199.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- try {
- JSON.writable = true;
-
- var newObj = Object.create({}, {
- prop: JSON
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === true;
- } finally {
- delete JSON.writable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + JSON.writable = true; + + var newObj = Object.create({}, { + prop: JSON + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } finally { + delete JSON.writable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-2.js index e84197ba5..d5511d8c0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-2.js
- * @description Object.create - 'Properties' is undefined
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, undefined);
- return (newObj 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.create - 'Properties' is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, undefined); + return (newObj instanceof Object); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-20.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-20.js index dbff16f38..ddce4152d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-20.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-20.js @@ -1,27 +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.5/15.2.3.5-4-20.js
- * @description Object.create - own accessor property in 'Properties' which is not enumerable is not defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var props = {};
-
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: false
- });
-
- var newObj = Object.create({}, props);
-
- return !newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own accessor property in 'Properties' which is not + enumerable is not defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + + Object.defineProperty(props, "prop", { + get: function () { + return {}; + }, + enumerable: false + }); + + var newObj = Object.create({}, props); + + return !newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-200.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-200.js index 197e4c49f..ca9585cd4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-200.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-200.js @@ -1,30 +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.5/15.2.3.5-4-200.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var errorObj = new Error();
-
- errorObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: errorObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var errorObj = new Error(); + + errorObj.writable = true; + + var newObj = Object.create({}, { + prop: errorObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-201.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-201.js index 35224d933..0b13f7865 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-201.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-201.js @@ -1,31 +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.5/15.2.3.5-4-201.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- argObj.writable = true;
-
- var newObj = Object.create({}, {
- prop: argObj
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === 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.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the + 'writable' property (8.10.5 step 6.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + argObj.writable = true; + + var newObj = Object.create({}, { + prop: argObj + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-203.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-203.js index 785d33ed3..e1179403a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-203.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-203.js @@ -1,32 +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.5/15.2.3.5-4-203.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'writable' property (8.10.5 step 6.a)
- */
-
-
-function testcase() {
-
- try {
- fnGlobalObject().writable = true;
-
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
-
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
-
- newObj.prop = "isWritable";
-
- var afterWrite = (newObj.prop === "isWritable");
-
- return beforeWrite === true && afterWrite === true;
- } finally {
- delete fnGlobalObject().writable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'writable' + property (8.10.5 step 6.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + try { + fnGlobalObject().writable = true; + + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); + + newObj.prop = "isWritable"; + + var afterWrite = (newObj.prop === "isWritable"); + + return beforeWrite === true && afterWrite === true; + } finally { + delete fnGlobalObject().writable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-204.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-204.js index d75cb5260..a08555209 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-204.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-204.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.5/15.2.3.5-4-204.js
- * @description Object.create - 'writable' property of one property in 'Properties' is undefined (8.10.5 step 6.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- writable: undefined
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is undefined (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + writable: undefined + } + }); + + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-205.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-205.js index c26712998..aacc4445f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-205.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-205.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.5/15.2.3.5-4-205.js
- * @description Object.create - 'writable' property of one property in 'Properties' is null (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: null
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is null (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: null + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-206.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-206.js index 3a924b98b..dc2a25a74 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-206.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-206.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.5/15.2.3.5-4-206.js
- * @description Object.create - 'writable' property of one property in 'Properties' is true (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is true (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: true + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-207.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-207.js index 47f3d64d6..efdbedd54 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-207.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-207.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.5/15.2.3.5-4-207.js
- * @description Object.create - 'writable' property of one property in 'Properties' is false (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: false
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is false (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: false + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-208.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-208.js index 8c9779649..13e50c099 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-208.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-208.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.5/15.2.3.5-4-208.js
- * @description Object.create - 'writable' property of one property in 'Properties' is 0 (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: 0
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is 0 (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: 0 + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-209.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-209.js index bf07b6c57..522377a05 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-209.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-209.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.5/15.2.3.5-4-209.js
- * @description Object.create - 'writable' property of one property in 'Properties' is +0 (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: +0
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is +0 (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: +0 + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-21.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-21.js index c7fa1e92a..ffed87727 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-21.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-21.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.5/15.2.3.5-4-21.js
- * @description Object.create - an enumerable inherited accessor property in 'Properties' is not defined in 'obj' (15.2.3.7 step 3)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
-
- var newObj = Object.create({}, child);
-
- return !newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - an enumerable inherited accessor property in + 'Properties' is not defined in 'obj' (15.2.3.7 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "prop", { + get: function () { + return {}; + }, + enumerable: true + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + + var newObj = Object.create({}, child); + + return !newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-210.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-210.js index 421cfdc37..d6e9d599c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-210.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-210.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.5/15.2.3.5-4-210.js
- * @description Object.create - 'writable' property of one property in 'Properties' is -0 (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: -0
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is -0 (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: -0 + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-211.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-211.js index 4a68d59a1..ab20eeb22 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-211.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-211.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.5/15.2.3.5-4-211.js
- * @description Object.create - 'writable' property of one property in 'Properties' is NaN (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: NaN
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is NaN (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: NaN + } + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-212.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-212.js index 8c13a3ee3..1bddc8af2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-212.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-212.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.5/15.2.3.5-4-212.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a positive number primitive (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: 12
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a positive number primitive (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: 12 + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-213.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-213.js index d902f2aab..335ba037f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-213.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-213.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.5/15.2.3.5-4-213.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a negative number primitive (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: -9
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a negative number primitive (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: -9 + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-214.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-214.js index e50a42e18..033523048 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-214.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-214.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.5/15.2.3.5-4-214.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an empty string (8.10.5 step 6.b)
- */
-
-
-function testcase() {
- var descObj = {
- writable: ""
- };
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined";
-
- newObj.prop = 121;
-
- return hasProperty && typeof newObj.prop === "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.create - 'writable' property of one property in + 'Properties' is an empty string (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var descObj = { + writable: "" + }; + + var newObj = Object.create({}, { + prop: descObj + }); + var hasProperty = newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + + newObj.prop = 121; + + return hasProperty && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-215.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-215.js index 70a00ee95..f5849eee3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-215.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-215.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.5/15.2.3.5-4-215.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a non-empty string (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: "abc"
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a non-empty string (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: "abc" + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-216.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-216.js index 254a7670e..f0fa6ddb3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-216.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-216.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.5/15.2.3.5-4-216.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a Function object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: function () { }
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a Function object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: function () { } + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-217.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-217.js index afe29e01d..3b3ee5b20 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-217.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-217.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.5/15.2.3.5-4-217.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an Array object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: []
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is an Array object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: [] + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-218.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-218.js index b12f46fb4..2dab06c30 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-218.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-218.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.5/15.2.3.5-4-218.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a String object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new String()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a String object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new String() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-219.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-219.js index 960f20727..7efa9aea7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-219.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-219.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.5/15.2.3.5-4-219.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a Boolean object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new Boolean()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a Boolean object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new Boolean() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-22.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-22.js index a04dd654e..5c100e67c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-22.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-22.js @@ -1,30 +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.5/15.2.3.5-4-22.js
- * @description Object.create - own enumerable data property that overrides an enumerable inherited data property in 'Properties' is defined in 'obj' (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- proto.prop = {
- value: "abc"
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- child.prop = {
- value: "bbq"
- };
- var newObj = Object.create({}, child);
-
- return newObj.hasOwnProperty("prop") && newObj.prop === "bbq";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable data property that overrides an + enumerable inherited data property in 'Properties' is defined in + 'obj' (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + proto.prop = { + value: "abc" + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + child.prop = { + value: "bbq" + }; + var newObj = Object.create({}, child); + + return newObj.hasOwnProperty("prop") && newObj.prop === "bbq"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-220.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-220.js index 786f2c90c..53d67300d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-220.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-220.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.5/15.2.3.5-4-220.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a Number object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new Number()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a Number object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new Number() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-221.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-221.js index cdc0f2b27..4ad0ea78f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-221.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-221.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.5/15.2.3.5-4-221.js
- * @description Object.create - 'writable' property of one property in 'Properties' is the Math object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: Math
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is the Math object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: Math + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-222.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-222.js index 3f6c18829..75aa71796 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-222.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-222.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.5/15.2.3.5-4-222.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a Date object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new Date()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a Date object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new Date() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-223.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-223.js index ca4e6edad..0526bbc4e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-223.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-223.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.5/15.2.3.5-4-223.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a RegExp object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new RegExp()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a RegExp object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new RegExp() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-224.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-224.js index 6a4db59e6..748c53c18 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-224.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-224.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.5/15.2.3.5-4-224.js
- * @description Object.create - 'writable' property of one property in 'Properties' is the JSON object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: JSON
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is the JSON object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: JSON + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + newObj.prop = 121; + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-225.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-225.js index 4e0e1c3cf..adf75074d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-225.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-225.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.5/15.2.3.5-4-225.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an Error object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new Error()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is an Error object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new Error() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + newObj.prop = 121; + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-226.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-226.js index 749b73101..90efb60df 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-226.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-226.js @@ -1,27 +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.5/15.2.3.5-4-226.js
- * @description Object.create - 'writable' property of one property in 'Properties' is an Arguments object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- var newObj = Object.create({}, {
- prop: {
- writable: argObj
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is an Arguments object (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + var newObj = Object.create({}, { + prop: { + writable: argObj + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-228.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-228.js index 00bff9b85..9c4230c31 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-228.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-228.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.5/15.2.3.5-4-228.js
- * @description Object.create - 'writable' property of one property in 'Properties' is the global object (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: fnGlobalObject()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is the global object (8.10.5 step 6.b) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: fnGlobalObject() + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-229.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-229.js index de5600fce..42ddfa190 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-229.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-229.js @@ -1,25 +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.5/15.2.3.5-4-229.js
- * @description Object.create - 'writable' property of one property in 'Properties' is a string (value is 'false') which is treated as the value true (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: "false"
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is a string (value is 'false') which is treated as + the value true (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: "false" + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-23.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-23.js index c39f80739..c4f200488 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-23.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-23.js @@ -1,36 +1,39 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-23.js
- * @description Object.create - own enumerable data property that overrides an enumerable inherited accessor property in 'Properties' is defined in 'obj' (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return { value: 9 };
- },
- enumerable: true
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- value: {
- value: 12
- },
- enumerable: true
- });
- var newObj = Object.create({}, child);
-
- return newObj.hasOwnProperty("prop") && newObj.prop === 12;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable data property that overrides an + enumerable inherited accessor property in 'Properties' is defined + in 'obj' (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "prop", { + get: function () { + return { value: 9 }; + }, + enumerable: true + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true + }); + var newObj = Object.create({}, child); + + return newObj.hasOwnProperty("prop") && newObj.prop === 12; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-230.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-230.js index 2fecebb08..8610b7d1d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-230.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-230.js @@ -1,25 +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.5/15.2.3.5-4-230.js
- * @description Object.create - 'writable' property of one property in 'Properties' is new Boolean(false) which is treated as the value true (8.10.5 step 6.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- writable: new Boolean(false)
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 121;
-
- return hasProperty && newObj.prop === 121;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'writable' property of one property in + 'Properties' is new Boolean(false) which is treated as the value + true (8.10.5 step 6.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + writable: new Boolean(false) + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 121; + + return hasProperty && newObj.prop === 121; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-231.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-231.js index 563b4596d..92001895b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-231.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-231.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.5/15.2.3.5-4-231.js
- * @description Object.create - 'get' property of one property in 'Properties' is present (8.10.5 step 7)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "present";
- }
- }
- });
- return newObj.prop === "present";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + present (8.10.5 step 7) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + get: function () { + return "present"; + } + } + }); + return newObj.prop === "present"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-232.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-232.js index 270f70370..cfe046816 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-232.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-232.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.5/15.2.3.5-4-232.js
- * @description Object.create - 'get' property of one property in 'Properties' is not present (8.10.5 step 7)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {}
- });
- return typeof (newObj.prop) === "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.create - 'get' property of one property in 'Properties' is + not present (8.10.5 step 7) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: {} + }); + return typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-233.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-233.js index bc12eabb9..fe3c22903 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-233.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-233.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.5/15.2.3.5-4-233.js
- * @description Object.create - 'get' property of one property in 'Properties' is own data property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "ownDataProperty";
- }
- }
- });
- return newObj.prop === "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.create - 'get' property of one property in 'Properties' is + own data property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + get: function () { + return "ownDataProperty"; + } + } + }); + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-234.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-234.js index 5f257cc1c..ab9e6cac9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-234.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-234.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.5/15.2.3.5-4-234.js
- * @description Object.create - 'get' property of one property in 'Properties' is an inherited data property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "inheritedDataProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + an inherited data property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + get: function () { + return "inheritedDataProperty"; + } + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "inheritedDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-235.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-235.js index 54a15bcaa..38ffaf83a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-235.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-235.js @@ -1,37 +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.5/15.2.3.5-4-235.js
- * @description Object.create - 'get' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "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.create - 'get' property of one property in 'Properties' is + own data property that overrides an inherited data property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = { + get: function () { + return "inheritedDataProperty"; + } + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "get", { + value: function () { + return "ownDataProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-236.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-236.js index 5ef7fe074..fce1e81ce 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-236.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-236.js @@ -1,40 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-236.js
- * @description Object.create - 'get' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "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.create - 'get' property of one property in 'Properties' is + own data property that overrides an inherited accessor property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "get", { + get: function () { + return function () { + return "inheritedAccessorProperty"; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "get", { + value: function () { + return "ownDataProperty"; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownDataProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-237.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-237.js index 5dee0cb40..0d0e19c28 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-237.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-237.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.5/15.2.3.5-4-237.js
- * @description Object.create - 'get' property of one property in 'Properties' is own accessor property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var descObj = {};
-
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + own accessor property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var descObj = {}; + + Object.defineProperty(descObj, "get", { + get: function () { + return function () { + return "ownAccessorProperty"; + }; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-238.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-238.js index 5ad3d4ea4..772ee301f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-238.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-238.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.5/15.2.3.5-4-238.js
- * @description Object.create - 'get' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "inheritedAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + an inherited accessor property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + Object.defineProperty(proto, "get", { + get: function () { + return function () { + return "inheritedAccessorProperty"; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "inheritedAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-239.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-239.js index cc3fdb8cc..fff32869a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-239.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-239.js @@ -1,37 +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.5/15.2.3.5-4-239.js
- * @description Object.create - 'get' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + own accessor property that overrides an inherited data property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = { + get: function () { + return "inheritedDataProperty"; + } + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "get", { + get: function () { + return function () { + return "ownAccessorProperty"; + }; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-24.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-24.js index 5caa0bc7e..976e4b78b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-24.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-24.js @@ -1,36 +1,39 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-24.js
- * @description Object.create - own enumerable accessor property that overrides an enumerable inherited data property in 'Properties' is defined in 'obj' (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- proto.prop = {
- value: 12
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: true
- });
-
- var newObj = Object.create({}, child);
-
- return newObj.hasOwnProperty("prop") && newObj.prop === 9;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable accessor property that overrides an + enumerable inherited data property in 'Properties' is defined in + 'obj' (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + proto.prop = { + value: 12 + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + get: function () { + return { + value: 9 + }; + }, + enumerable: true + }); + + var newObj = Object.create({}, child); + + return newObj.hasOwnProperty("prop") && newObj.prop === 9; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-240.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-240.js index 40c32e1a9..d66572e19 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-240.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-240.js @@ -1,41 +1,44 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-240.js
- * @description Object.create - 'get' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.prop === "ownAccessorProperty";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'get' property of one property in 'Properties' is + own accessor property that overrides an inherited accessor + property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + + Object.defineProperty(proto, "get", { + get: function () { + return function () { + return "inheritedAccessorProperty"; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "get", { + get: function () { + return function () { + return "ownAccessorProperty"; + }; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.prop === "ownAccessorProperty"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-241.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-241.js index 7b6e4c8eb..b8403acd4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-241.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-241.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.5/15.2.3.5-4-241.js
- * @description Object.create - 'get' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var descObj = {};
-
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'get' property of one property in 'Properties' is + own accessor property without a get function (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var descObj = {}; + + Object.defineProperty(descObj, "get", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-242.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-242.js index 839000b38..98784a606 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-242.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-242.js @@ -1,37 +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.5/15.2.3.5-4-242.js
- * @description Object.create - 'get' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof newObj.prop === "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.create - 'get' property of one property in 'Properties' is + own accessor property without a get function, which overrides an + inherited accessor property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + + Object.defineProperty(proto, "get", { + get: function () { + return function () { + return "inheritedAccessorProperty"; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "get", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-243.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-243.js index 90c37b42d..6ea47a13e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-243.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-243.js @@ -1,29 +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.5/15.2.3.5-4-243.js
- * @description Object.create - 'get' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'get' property of one property in 'Properties' is + an inherited accessor property without a get function (8.10.5 step + 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + + Object.defineProperty(proto, "get", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-244.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-244.js index c12424851..e79d42584 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-244.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-244.js @@ -1,25 +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.5/15.2.3.5-4-244.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var funObj = function () {};
-
- funObj.get = function () {
- return "VerifyFunctionObject";
- };
-
- var newObj = Object.create({}, {
- prop: funObj
- });
-
- return newObj.prop === "VerifyFunctionObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the 'get' + property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = function () {}; + + funObj.get = function () { + return "VerifyFunctionObject"; + }; + + var newObj = Object.create({}, { + prop: funObj + }); + + return newObj.prop === "VerifyFunctionObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-245.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-245.js index fe74ad3d6..dfbe53530 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-245.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-245.js @@ -1,25 +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.5/15.2.3.5-4-245.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var arrayObj = [1, 2, 3];
-
- arrayObj.get = function () {
- return "VerifyArrayObject";
- };
-
- var newObj = Object.create({}, {
- prop: arrayObj
- });
-
- return newObj.prop === "VerifyArrayObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var arrayObj = [1, 2, 3]; + + arrayObj.get = function () { + return "VerifyArrayObject"; + }; + + var newObj = Object.create({}, { + prop: arrayObj + }); + + return newObj.prop === "VerifyArrayObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-246.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-246.js index fe6804268..a66fa650a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-246.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-246.js @@ -1,25 +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.5/15.2.3.5-4-246.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var strObj = new String("abc");
-
- strObj.get = function () {
- return "VerifyStringObject";
- };
-
- var newObj = Object.create({}, {
- prop: strObj
- });
-
- return newObj.prop === "VerifyStringObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = new String("abc"); + + strObj.get = function () { + return "VerifyStringObject"; + }; + + var newObj = Object.create({}, { + prop: strObj + }); + + return newObj.prop === "VerifyStringObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-247.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-247.js index 69d46240a..032e09a5c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-247.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-247.js @@ -1,25 +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.5/15.2.3.5-4-247.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var boolObj = new Boolean(true);
-
- boolObj.get = function () {
- return "VerifyBooleanObject";
- };
-
- var newObj = Object.create({}, {
- prop: boolObj
- });
-
- return newObj.prop === "VerifyBooleanObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var boolObj = new Boolean(true); + + boolObj.get = function () { + return "VerifyBooleanObject"; + }; + + var newObj = Object.create({}, { + prop: boolObj + }); + + return newObj.prop === "VerifyBooleanObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-248.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-248.js index 95e559fe0..2917144dd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-248.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-248.js @@ -1,25 +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.5/15.2.3.5-4-248.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var numObj = new Number(5);
-
- numObj.get = function () {
- return "VerifyNumberObject";
- };
-
- var newObj = Object.create({}, {
- prop: numObj
- });
-
- return newObj.prop === "VerifyNumberObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var numObj = new Number(5); + + numObj.get = function () { + return "VerifyNumberObject"; + }; + + var newObj = Object.create({}, { + prop: numObj + }); + + return newObj.prop === "VerifyNumberObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-249.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-249.js index 8f6b48813..bcd99bcdd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-249.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-249.js @@ -1,25 +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.5/15.2.3.5-4-249.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var dateObj = new Date();
-
- dateObj.get = function () {
- return "VerifyDateObject";
- };
-
- var newObj = Object.create({}, {
- prop: dateObj
- });
-
- return newObj.prop === "VerifyDateObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'get' property (8.10.5 + step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var dateObj = new Date(); + + dateObj.get = function () { + return "VerifyDateObject"; + }; + + var newObj = Object.create({}, { + prop: dateObj + }); + + return newObj.prop === "VerifyDateObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-25.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-25.js index d5da21111..be7e809d0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-25.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-25.js @@ -1,40 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-25.js
- * @description Object.create - own enumerable accessor property that overrides an enumerable inherited accessor property in 'Properties' is defined in 'obj' (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: true
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 12
- };
- },
- enumerable: true
- });
- var newObj = Object.create({}, child);
-
- return newObj.hasOwnProperty("prop") && newObj.prop === 12;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - own enumerable accessor property that overrides an + enumerable inherited accessor property in 'Properties' is defined + in 'obj' (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "prop", { + get: function () { + return { + value: 9 + }; + }, + enumerable: true + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + get: function () { + return { + value: 12 + }; + }, + enumerable: true + }); + var newObj = Object.create({}, child); + + return newObj.hasOwnProperty("prop") && newObj.prop === 12; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-250.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-250.js index 525228bf4..cdac7c4b4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-250.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-250.js @@ -1,25 +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.5/15.2.3.5-4-250.js
- * @description Object.create - one property in 'Properties' is a RegExp object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var regObj = new RegExp();
-
- regObj.get = function () {
- return "VerifyRegExpObject";
- };
-
- var newObj = Object.create({}, {
- prop: regObj
- });
-
- return newObj.prop === "VerifyRegExpObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a RegExp object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var regObj = new RegExp(); + + regObj.get = function () { + return "VerifyRegExpObject"; + }; + + var newObj = Object.create({}, { + prop: regObj + }); + + return newObj.prop === "VerifyRegExpObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-251.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-251.js index 9f1b6a574..5e434c063 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-251.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-251.js @@ -1,27 +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.5/15.2.3.5-4-251.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- try {
- Math.get = function () {
- return "VerifyMathObject";
- };
-
- var newObj = Object.create({}, {
- prop: Math
- });
-
- return newObj.prop === "VerifyMathObject";
- } finally {
- delete Math.get;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Math.get = function () { + return "VerifyMathObject"; + }; + + var newObj = Object.create({}, { + prop: Math + }); + + return newObj.prop === "VerifyMathObject"; + } finally { + delete Math.get; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-252.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-252.js index 60f9fb848..6b53ebf58 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-252.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-252.js @@ -1,27 +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.5/15.2.3.5-4-252.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- JSON.get = function () {
- return "VerifyJSONObject";
- };
-
- try {
- var newObj = Object.create({}, {
- prop: JSON
- });
-
- return newObj.prop === "VerifyJSONObject";
- } finally {
- delete JSON.get;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + JSON.get = function () { + return "VerifyJSONObject"; + }; + + try { + var newObj = Object.create({}, { + prop: JSON + }); + + return newObj.prop === "VerifyJSONObject"; + } finally { + delete JSON.get; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-253.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-253.js index eec06cea9..a426d805f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-253.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-253.js @@ -1,25 +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.5/15.2.3.5-4-253.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- var errObj = new Error("error");
-
- errObj.get = function () {
- return "VerifyErrorObject";
- };
-
- var newObj = Object.create({}, {
- prop: errObj
- });
-
- return newObj.prop === "VerifyErrorObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var errObj = new Error("error"); + + errObj.get = function () { + return "VerifyErrorObject"; + }; + + var newObj = Object.create({}, { + prop: errObj + }); + + return newObj.prop === "VerifyErrorObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-254.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-254.js index abe6d7b39..2a5d30663 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-254.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-254.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.5/15.2.3.5-4-254.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- argObj.get = function () {
- return "VerifyArgumentsObject";
- };
-
- var newObj = Object.create({}, {
- prop: argObj
- });
-
- return newObj.prop === "VerifyArgumentsObject";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the 'get' + property (8.10.5 step 7.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + argObj.get = function () { + return "VerifyArgumentsObject"; + }; + + var newObj = Object.create({}, { + prop: argObj + }); + + return newObj.prop === "VerifyArgumentsObject"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-256.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-256.js index fb5e46f11..d686fa1a4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-256.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-256.js @@ -1,27 +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.5/15.2.3.5-4-256.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'get' property (8.10.5 step 7.a)
- */
-
-
-function testcase() {
- fnGlobalObject().get = function () {
- return "VerifyGlobalObject";
- };
-
- try {
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
-
- return newObj.prop === "VerifyGlobalObject";
- } finally {
- delete fnGlobalObject().get;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'get' property + (8.10.5 step 7.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + fnGlobalObject().get = function () { + return "VerifyGlobalObject"; + }; + + try { + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + + return newObj.prop === "VerifyGlobalObject"; + } finally { + delete fnGlobalObject().get; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-257.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-257.js index 7c698e03d..38a7e276a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-257.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-257.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.5/15.2.3.5-4-257.js
- * @description Object.create - 'get' property of one property in 'Properties' is undefined (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- get: undefined
- }
- });
-
- return newObj.hasOwnProperty("prop") && typeof newObj.prop === "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.create - 'get' property of one property in 'Properties' is + undefined (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + get: undefined + } + }); + + return newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-258.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-258.js index 40f29ef16..c3e45edde 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-258.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-258.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.5/15.2.3.5-4-258.js
- * @description Object.create - 'get' property of one property in 'Properties' is the primitive value null (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- try {
- Object.create({}, {
- prop: {
- get: null
- }
- });
-
- return false;
- } 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.create - 'get' property of one property in 'Properties' is + the primitive value null (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create({}, { + prop: { + get: null + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-259.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-259.js index 6003ac32d..761e65ff8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-259.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-259.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.5/15.2.3.5-4-259.js
- * @description Object.create - 'get' property of one property in 'Properties' is a boolean primitive (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- try {
- Object.create({}, {
- prop: {
- get: false
- }
- });
-
- return false;
- } 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.create - 'get' property of one property in 'Properties' is + a boolean primitive (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create({}, { + prop: { + get: false + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-26.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-26.js index 70ab28e62..66fdf48c5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-26.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-26.js @@ -1,27 +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.5/15.2.3.5-4-26.js
- * @description Object.create - TypeError is thrown when own enumerable accessor property of 'Properties' without a get function (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = {};
- Object.defineProperty(props, "prop", {
- set: function () { },
- enumerable: true
- });
- try {
- Object.create({}, props);
-
- return false;
- } catch (ex) {
- return ex 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.create - TypeError is thrown when own enumerable accessor + property of 'Properties' without a get function (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + Object.defineProperty(props, "prop", { + set: function () { }, + enumerable: true + }); + try { + Object.create({}, props); + + return false; + } catch (ex) { + return ex instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-260.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-260.js index 387516da4..ec9fdbdea 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-260.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-260.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.5/15.2.3.5-4-260.js
- * @description Object.create - 'get' property of one property in 'Properties' is a number primitive (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- try {
- Object.create({}, {
- prop: {
- get: 123
- }
- });
-
- return false;
- } 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.create - 'get' property of one property in 'Properties' is + a number primitive (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create({}, { + prop: { + get: 123 + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-261.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-261.js index d4573c34f..8b521d4ee 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-261.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-261.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.5/15.2.3.5-4-261.js
- * @description Object.create - 'get' property of one property in 'Properties' is a primitive string (8.10.5 step 7.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- get: "string"
- }
- });
-
- return false;
- } 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.create - 'get' property of one property in 'Properties' is + a primitive string (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + get: "string" + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-262.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-262.js index 7f479f80c..9b9662fd2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-262.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-262.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.5/15.2.3.5-4-262.js
- * @description Object.create - 'get' property of one property in 'Properties' is an Array object (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- try {
- Object.create({}, {
- prop: {
- get: [1, 2, 3]
- }
- });
-
- return false;
- } 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.create - 'get' property of one property in 'Properties' is + an Array object (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.create({}, { + prop: { + get: [1, 2, 3] + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-263.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-263.js index dcf5354e1..47090d6e2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-263.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-263.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.5/15.2.3.5-4-263.js
- * @description Object.create - 'get' property of one property in 'Properties' is a function (8.10.5 step 7.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- get: function () { }
- }
- });
-
- return newObj.hasOwnProperty("prop") && typeof newObj.prop === "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.create - 'get' property of one property in 'Properties' is + a function (8.10.5 step 7.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + get: function () { } + } + }); + + return newObj.hasOwnProperty("prop") && typeof newObj.prop === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-266.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-266.js index 565bf3a3a..248c824e5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-266.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-266.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.5/15.2.3.5-4-266.js
- * @description Object.create - 'set' property of one property in 'Properties' is present (8.10.5 step 8)
- */
-
-
-function testcase() {
- var data = "data";
-
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + present (8.10.5 step 8) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + + var newObj = Object.create({}, { + prop: { + set: function (value) { + data = value; + } + } + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-267.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-267.js index 560e1410b..6ee5b2ace 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-267.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-267.js @@ -1,27 +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.5/15.2.3.5-4-267.js
- * @description Object.create - 'set' property of one property in 'Properties' is not present (8.10.5 step 8)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "data";
- }
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && newObj.prop === "data";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + not present (8.10.5 step 8) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + get: function () { + return "data"; + } + } + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && newObj.prop === "data"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-268.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-268.js index c5ddeb9d3..4c978a9bb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-268.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-268.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.5/15.2.3.5-4-268.js
- * @description Object.create - 'set' property of one property in 'Properties' is own data property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
-
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own data property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + + var newObj = Object.create({}, { + prop: { + set: function (value) { + data = value; + } + } + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-269.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-269.js index 43346cf4f..19853c711 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-269.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-269.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.5/15.2.3.5-4-269.js
- * @description Object.create - 'set' property of one property in 'Properties' is an inherited data property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
- var proto = {
- set: function (value) {
- data = value;
- }
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + an inherited data property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + var proto = { + set: function (value) { + data = value; + } + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-27.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-27.js index e6b9a1f11..7b4d53f98 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-27.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-27.js @@ -1,39 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-27.js
- * @description Object.create - own enumerable accessor property in 'Properties' without a get function that overrides an enumerable inherited accessor property in 'Properties' is defined in 'obj' (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- set: function () { },
- enumerable: true
- });
-
- try {
- Object.create({}, child);
-
- return false;
- } catch (ex) {
- return ex 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.create - own enumerable accessor property in 'Properties' + without a get function that overrides an enumerable inherited + accessor property in 'Properties' is defined in 'obj' (15.2.3.7 + step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.defineProperty(proto, "prop", { + get: function () { + return {}; + }, + enumerable: true + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + set: function () { }, + enumerable: true + }); + + try { + Object.create({}, child); + + return false; + } catch (ex) { + return ex instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-270.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-270.js index f44ffb81f..50a3e84c8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-270.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-270.js @@ -1,38 +1,41 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-270.js
- * @description Object.create - 'set' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data1 = "data";
- var data2 = "data";
- var proto = {
- set: function (value) {
- data2 = value;
- }
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.set = function (value) {
- data1 = value;
- };
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data1 === "overrideData" && data2 === "data";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own data property that overrides an inherited data property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data1 = "data"; + var data2 = "data"; + var proto = { + set: function (value) { + data2 = value; + } + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + child.set = function (value) { + data1 = value; + }; + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data1 === "overrideData" && data2 === "data"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-271.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-271.js index 1a1e62347..a99a5a73c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-271.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-271.js @@ -1,44 +1,47 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-271.js
- * @description Object.create - 'set' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- value: function (value) {
- data1 = value;
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data1 === "overrideData" && data2 === "data";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own data property that overrides an inherited accessor property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data1 = "data"; + var data2 = "data"; + + var proto = {}; + Object.defineProperty(proto, "set", { + get: function () { + return function (value) { + data2 = value; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + Object.defineProperty(child, "set", { + value: function (value) { + data1 = value; + } + }); + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data1 === "overrideData" && data2 === "data"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-272.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-272.js index 92170eef9..f38841718 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-272.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-272.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.5/15.2.3.5-4-272.js
- * @description Object.create - 'set' property of one property in 'Properties' is own accessor property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
- var descObj = {};
-
- Object.defineProperty(descObj, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own accessor property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + var descObj = {}; + + Object.defineProperty(descObj, "set", { + get: function () { + return function (value) { + data = value; + }; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-273.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-273.js index 91d99740e..d14a05260 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-273.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-273.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.5/15.2.3.5-4-273.js
- * @description Object.create - 'set' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
- var proto = {};
-
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + an inherited accessor property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + var proto = {}; + + Object.defineProperty(proto, "set", { + get: function () { + return function (value) { + data = value; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-274.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-274.js index 5228d52cd..48e01d918 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-274.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-274.js @@ -1,42 +1,45 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-274.js
- * @description Object.create - 'set' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- proto.set = function (value) {
- data2 = value;
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data1 === "overrideData" && data2 === "data";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own accessor property that overrides an inherited data property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data1 = "data"; + var data2 = "data"; + + var proto = {}; + proto.set = function (value) { + data2 = value; + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + Object.defineProperty(child, "set", { + get: function () { + return function (value) { + data1 = value; + }; + } + }); + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data1 === "overrideData" && data2 === "data"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-275.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-275.js index e43323920..8fd1b165b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-275.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-275.js @@ -1,46 +1,49 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-275.js
- * @description Object.create - 'set' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data1 = "data";
- var data2 = "data";
- var proto = {};
-
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data1 === "overrideData" && data2 === "data";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + own accessor property that overrides an inherited accessor + property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data1 = "data"; + var data2 = "data"; + var proto = {}; + + Object.defineProperty(proto, "set", { + get: function () { + return function (value) { + data2 = value; + }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + Object.defineProperty(child, "set", { + get: function () { + return function (value) { + data1 = value; + }; + } + }); + + var newObj = Object.create({}, { + prop: child + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data1 === "overrideData" && data2 === "data"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-276.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-276.js index 20ccea5b7..7288ab87a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-276.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-276.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.5/15.2.3.5-4-276.js
- * @description Object.create - 'set' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var descObj = {};
- Object.defineProperty(descObj, "set", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
-
- return hasProperty && typeof desc.set === "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.create - 'set' property of one property in 'Properties' is + own accessor property without a get function (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var descObj = {}; + Object.defineProperty(descObj, "set", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); + + return hasProperty && typeof desc.set === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-277.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-277.js index 1c8bbf310..0588aaa94 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-277.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-277.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.5/15.2.3.5-4-277.js
- * @description Object.create - 'set' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function () { };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
-
- return newObj.hasOwnProperty("prop") && typeof desc.set === "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.create - 'set' property of one property in 'Properties' is + own accessor property without a get function, which overrides an + inherited accessor property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + Object.defineProperty(proto, "set", { + get: function () { + return function () { }; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + Object.defineProperty(child, "set", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: child + }); + + var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); + + return newObj.hasOwnProperty("prop") && typeof desc.set === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-278.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-278.js index aa19e57db..7c12c34bc 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-278.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-278.js @@ -1,30 +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.5/15.2.3.5-4-278.js
- * @description Object.create - 'set' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var proto = {};
- Object.defineProperty(proto, "set", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
-
- return newObj.hasOwnProperty("prop") && typeof desc.set === "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.create - 'set' property of one property in 'Properties' is + an inherited accessor property without a get function (8.10.5 step + 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var proto = {}; + Object.defineProperty(proto, "set", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + + var newObj = Object.create({}, { + prop: child + }); + + var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); + + return newObj.hasOwnProperty("prop") && typeof desc.set === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-279.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-279.js index 06c1c6283..b01c8c273 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-279.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-279.js @@ -1,29 +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.5/15.2.3.5-4-279.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var funObj = function () { };
- var data = "data";
- funObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: funObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the 'set' + property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = function () { }; + var data = "data"; + funObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: funObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-28.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-28.js index 30895d1e7..ddbf33bdd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-28.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-28.js @@ -1,22 +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.5/15.2.3.5-4-28.js
- * @description Object.create - 'Properties' is a Function object which implements its own [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = function () { };
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a Function object which implements + its own [[Get]] method to access own enumerable property (15.2.3.7 + step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = function () { }; + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-280.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-280.js index ff4a32ad4..32840be58 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-280.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-280.js @@ -1,29 +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.5/15.2.3.5-4-280.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var arrObj = [];
- var data = "data";
- arrObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: arrObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var arrObj = []; + var data = "data"; + arrObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: arrObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-281.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-281.js index c14253c0a..e3c6f12a8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-281.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-281.js @@ -1,29 +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.5/15.2.3.5-4-281.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var strObj = new String();
- var data = "data";
- strObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: strObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = new String(); + var data = "data"; + strObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: strObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-282.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-282.js index 8c69c3283..14b894d74 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-282.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-282.js @@ -1,29 +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.5/15.2.3.5-4-282.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var boolObj = new Boolean(true);
- var data = "data";
- boolObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: boolObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var boolObj = new Boolean(true); + var data = "data"; + boolObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: boolObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-283.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-283.js index 0cb3a87e7..dae320db3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-283.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-283.js @@ -1,29 +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.5/15.2.3.5-4-283.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var numObj = new Number(5);
- var data = "data";
- numObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: numObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var numObj = new Number(5); + var data = "data"; + numObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: numObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-284.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-284.js index 1759ec79a..0f58587fa 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-284.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-284.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.5/15.2.3.5-4-284.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
-
- try {
- Math.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: Math
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- } finally {
- delete Math.set;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + + try { + Math.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: Math + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } finally { + delete Math.set; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-285.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-285.js index f23fe8589..1e7857a55 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-285.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-285.js @@ -1,29 +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.5/15.2.3.5-4-285.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var dateObj = new Date();
- var data = "data";
- dateObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: dateObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'set' property (8.10.5 + step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var dateObj = new Date(); + var data = "data"; + dateObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: dateObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-286.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-286.js index 1ec11bff3..c6236a4ec 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-286.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-286.js @@ -1,29 +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.5/15.2.3.5-4-286.js
- * @description Object.create - one property in 'Properties' is a RegExp object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var regObj = new RegExp();
- var data = "data";
- regObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: regObj
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is a RegExp object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var regObj = new RegExp(); + var data = "data"; + regObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: regObj + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-287.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-287.js index 948e89339..61bbfd44e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-287.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-287.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.5/15.2.3.5-4-287.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
-
- try {
- JSON.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: JSON
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- } finally {
- delete JSON.set;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + + try { + JSON.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: JSON + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } finally { + delete JSON.set; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-288.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-288.js index 4651085b1..dabfb60c8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-288.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-288.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.5/15.2.3.5-4-288.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var errObj = new Error("error");
- var data = "data";
-
- errObj.set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: errObj
- });
-
- newObj.prop = "overrideData";
-
- return newObj.hasOwnProperty("prop") && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var errObj = new Error("error"); + var data = "data"; + + errObj.set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: errObj + }); + + newObj.prop = "overrideData"; + + return newObj.hasOwnProperty("prop") && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-289.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-289.js index 5615feb34..87208b6a4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-289.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-289.js @@ -1,31 +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.5/15.2.3.5-4-289.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var argObj = (function () { return arguments; })();
-
- var data = "data";
-
- argObj.set = function (value) {
- data = value;
- };
-
- var newobj = Object.create({}, {
- prop: argObj
- });
-
- var hasProperty = newobj.hasOwnProperty("prop");
-
- newobj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the 'set' + property (8.10.5 step 8.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + var argObj = (function () { return arguments; })(); + + var data = "data"; + + argObj.set = function (value) { + data = value; + }; + + var newobj = Object.create({}, { + prop: argObj + }); + + var hasProperty = newobj.hasOwnProperty("prop"); + + newobj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-29.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-29.js index 62c39eb12..c09e1e2d6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-29.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-29.js @@ -1,22 +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.5/15.2.3.5-4-29.js
- * @description Object.create - 'Properties' is an Array object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = [];
- props.prop = {
- value: {},
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is an Array object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = []; + props.prop = { + value: {}, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-291.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-291.js index d3c24c0b0..d31d6ece5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-291.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-291.js @@ -1,33 +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.5/15.2.3.5-4-291.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a)
- */
-
-
-function testcase() {
- var data = "data";
-
- try {
- fnGlobalObject().set = function (value) {
- data = value;
- };
-
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
-
- return hasProperty && data === "overrideData";
- } finally {
- delete fnGlobalObject().set;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'set' property + (8.10.5 step 8.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var data = "data"; + + try { + fnGlobalObject().set = function (value) { + data = value; + }; + + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = "overrideData"; + + return hasProperty && data === "overrideData"; + } finally { + delete fnGlobalObject().set; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-292.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-292.js index de777cc66..ffe21c9d1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-292.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-292.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.5/15.2.3.5-4-292.js
- * @description Object.create - 'set' property of one property in 'Properties' is undefined (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- set: undefined
- }
- });
-
- newObj.prop = "overrideData";
-
- return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "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.create - 'set' property of one property in 'Properties' is + undefined (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + set: undefined + } + }); + + newObj.prop = "overrideData"; + + return newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-293.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-293.js index 53eaf6613..1562d69db 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-293.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-293.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.5/15.2.3.5-4-293.js
- * @description Object.create - 'set' property of one property in 'Properties' is a primitive value null (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: null
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + a primitive value null (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: null + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-294.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-294.js index 2a0d4f64d..8e11e6bd9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-294.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-294.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.5/15.2.3.5-4-294.js
- * @description Object.create - 'set' property of one property in 'Properties' is a primitive boolean value true (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: true
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + a primitive boolean value true (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: true + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-295.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-295.js index 18c78c5c6..ed51fad40 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-295.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-295.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.5/15.2.3.5-4-295.js
- * @description Object.create - 'set' property of one property in 'Properties' is a primitive number value (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: 123
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + a primitive number value (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: 123 + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-296.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-296.js index 9ad65bdfa..21884b825 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-296.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-296.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.5/15.2.3.5-4-296.js
- * @description Object.create - 'set' property of one property in 'Properties' is a primitive string value (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: "abc"
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + a primitive string value (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: "abc" + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-297.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-297.js index 0160ba6e7..776c254f3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-297.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-297.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.5/15.2.3.5-4-297.js
- * @description Object.create - 'set' property of one property in 'Properties' is an Date object (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: new Date()
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + an Date object (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: new Date() + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-298.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-298.js index 01a6d857f..d8b20df27 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-298.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-298.js @@ -1,27 +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.5/15.2.3.5-4-298.js
- * @description Object.create - 'set' property of one property in 'Properties' is a function (8.10.5 step 8.b)
- */
-
-
-function testcase() {
- var data = "data";
-
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
-
- newObj.prop = "overrideData";
-
- return newObj.hasOwnProperty("prop") && data === "overrideData";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'set' property of one property in 'Properties' is + a function (8.10.5 step 8.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var data = "data"; + + var newObj = Object.create({}, { + prop: { + set: function (value) { + data = value; + } + } + }); + + newObj.prop = "overrideData"; + + return newObj.hasOwnProperty("prop") && data === "overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-3.js index 27fb1e897..cd6d080e1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-3.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.5/15.2.3.5-4-3.js
- * @description Object.create throws TypeError if 'Properties' is null (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, null);
- return false;
- } 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.create throws TypeError if 'Properties' is null (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, null); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-30.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-30.js index 9c6898b2f..a0d8faf02 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-30.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-30.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.5/15.2.3.5-4-30.js
- * @description Object.create - 'Properties' is a String object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new String();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
-
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a String object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new String(); + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-300.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-300.js index e73359cb4..8db74f8c4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-300.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-300.js @@ -1,26 +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.5/15.2.3.5-4-300.js
- * @description Object.create - 'set' property of one property in 'Properties' is a host object that isn't callable (8.10.5 step 8.b)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: fnGlobalObject()
- }
- });
-
- return false;
- } 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.create - 'set' property of one property in 'Properties' is + a host object that isn't callable (8.10.5 step 8.b) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: fnGlobalObject() + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-301.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-301.js index 8af3f6b72..ba6e11728 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-301.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-301.js @@ -1,27 +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.5/15.2.3.5-4-301.js
- * @description Object.create - TypeError is thrown if both 'set' property and 'value' property of one property in 'Properties' are present (8.10.5 step 9.a)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: function () { },
- value: 100
- }
- });
-
- return false;
- } 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.create - TypeError is thrown if both 'set' property and + 'value' property of one property in 'Properties' are present + (8.10.5 step 9.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: function () { }, + value: 100 + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-302.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-302.js index aa7798cd5..b2b5a41c8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-302.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-302.js @@ -1,27 +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.5/15.2.3.5-4-302.js
- * @description Object.create - TypeError is thrown if both 'set' property and 'writable' property of one property in 'Properties' are present (8.10.5 step 9.a)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- set: function () { },
- writable: true
- }
- });
-
- return false;
- } 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.create - TypeError is thrown if both 'set' property and + 'writable' property of one property in 'Properties' are present + (8.10.5 step 9.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + set: function () { }, + writable: true + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-303.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-303.js index 10c088f83..99d623517 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-303.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-303.js @@ -1,27 +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.5/15.2.3.5-4-303.js
- * @description Object.create - TypeError is thrown if both 'get' property and 'value' property of one property in 'Properties' are present (8.10.5 step 9.a)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- get: function () { },
- value: 100
- }
- });
-
- return false;
- } 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.create - TypeError is thrown if both 'get' property and + 'value' property of one property in 'Properties' are present + (8.10.5 step 9.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + get: function () { }, + value: 100 + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-304.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-304.js index c431a3d19..b10c79f82 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-304.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-304.js @@ -1,27 +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.5/15.2.3.5-4-304.js
- * @description Object.create - TypeError is thrown if both 'get' property and 'writable' property of one property in 'Properties' are present (8.10.5 step 9.a)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: {
- get: function () { },
- writable: true
- }
- });
-
- return false;
- } 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.create - TypeError is thrown if both 'get' property and + 'writable' property of one property in 'Properties' are present + (8.10.5 step 9.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: { + get: function () { }, + writable: true + } + }); + + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-305.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-305.js index 3d6a94e37..e4f80f28c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-305.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-305.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.5/15.2.3.5-4-305.js
- * @description Object.create defines a data property when one property in 'Properties' is generic descriptor (8.12.9 step 4.a)
- */
-
-
-function testcase() {
-
- try {
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
- return newObj.hasOwnProperty("prop");
- } 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.create defines a data property when one property in + 'Properties' is generic descriptor (8.12.9 step 4.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + var newObj = Object.create({}, { + prop: { + enumerable: true + } + }); + return newObj.hasOwnProperty("prop"); + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-306.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-306.js index 329d31a4f..8c980c627 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-306.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-306.js @@ -1,27 +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.5/15.2.3.5-4-306.js
- * @description Object.create - [[Value]] is set as undefined if it is absent in data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
- */
-
-
-function testcase() {
-
- try {
- var newObj = Object.create({}, {
- prop: {
- writable: true,
- configurable: true,
- enumerable: true
- }
- });
- return newObj.hasOwnProperty("prop") && newObj.prop === undefined;
- } 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.create - [[Value]] is set as undefined if it is absent in + data descriptor of one property in 'Properties' (8.12.9 step 4.a.i) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + var newObj = Object.create({}, { + prop: { + writable: true, + configurable: true, + enumerable: true + } + }); + return newObj.hasOwnProperty("prop") && newObj.prop === undefined; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-307.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-307.js index 41e876029..1edcfe152 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-307.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-307.js @@ -1,27 +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.5/15.2.3.5-4-307.js
- * @description Object.create - [[Writable]] is set as false if it is absent in data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- value: 1001,
- configurable: true,
- enumerable: true
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = 12;
-
- return hasProperty && newObj.prop === 1001;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - [[Writable]] is set as false if it is absent in + data descriptor of one property in 'Properties' (8.12.9 step 4.a.i) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + value: 1001, + configurable: true, + enumerable: true + } + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + newObj.prop = 12; + + return hasProperty && newObj.prop === 1001; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-308.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-308.js index d7d8e5b68..5355e79da 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-308.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-308.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.5/15.2.3.5-4-308.js
- * @description Object.create - [[Enumerable]] is set as false if it is absent in data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
- */
-
-
-function testcase() {
- var isEnumerable = false;
-
- var newObj = Object.create({}, {
- prop: {
- value: 1001,
- writable: true,
- configurable: true
- }
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- for (var p in newObj) {
- if (p === "prop") {
- isEnumerable = true;
- }
- }
- return hasProperty && !isEnumerable;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - [[Enumerable]] is set as false if it is absent in + data descriptor of one property in 'Properties' (8.12.9 step 4.a.i) +includes: [runTestCase.js] +---*/ + +function testcase() { + var isEnumerable = false; + + var newObj = Object.create({}, { + prop: { + value: 1001, + writable: true, + configurable: true + } + }); + + var hasProperty = newObj.hasOwnProperty("prop"); + + for (var p in newObj) { + if (p === "prop") { + isEnumerable = true; + } + } + return hasProperty && !isEnumerable; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-309.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-309.js index 0a08caecd..947e5155b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-309.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-309.js @@ -1,31 +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.5/15.2.3.5-4-309.js
- * @description Object.create - [[Configurable]] is set as false if it is absent in data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
- */
-
-
-function testcase() {
- var isNotConfigurable = false;
-
- try {
- var newObj = Object.create({}, {
- prop: {
- value: 1001,
- writable: true,
- enumerable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- isNotConfigurable = newObj.hasOwnProperty("prop");
- return hasProperty && isNotConfigurable;
- } 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.create - [[Configurable]] is set as false if it is absent + in data descriptor of one property in 'Properties' (8.12.9 step + 4.a.i) +includes: [runTestCase.js] +---*/ + +function testcase() { + var isNotConfigurable = false; + + try { + var newObj = Object.create({}, { + prop: { + value: 1001, + writable: true, + enumerable: true + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + delete newObj.prop; + isNotConfigurable = newObj.hasOwnProperty("prop"); + return hasProperty && isNotConfigurable; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-31.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-31.js index ec42b80a7..175868d1c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-31.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-31.js @@ -1,22 +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.5/15.2.3.5-4-31.js
- * @description Object.create - 'Properties' is a Boolean object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new Boolean(false);
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a Boolean object that uses + Object's [[Get]] method to access own enumerable property + (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Boolean(false); + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-310.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-310.js index f84a8e804..7704b629a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-310.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-310.js @@ -1,22 +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.5/15.2.3.5-4-310.js
- * @description Object.create - [[Get]] is set as undefined if it is absent in accessor descriptor of one property in 'Properties' (8.12.9 step 4.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- set: function () { },
- enumerable: true,
- configurable: true
- }
- });
- return newObj.hasOwnProperty("prop") && newObj.prop === 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.create - [[Get]] is set as undefined if it is absent in + accessor descriptor of one property in 'Properties' (8.12.9 step + 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + set: function () { }, + enumerable: true, + configurable: true + } + }); + return newObj.hasOwnProperty("prop") && newObj.prop === undefined; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-311.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-311.js index 3e3806f5d..68917de0c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-311.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-311.js @@ -1,45 +1,48 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-311.js
- * @description Object.create - [[Set]] is set as undefined if it is absent in accessor descriptor of one property in 'Properties' (8.12.9 step 4.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "verifyCreate";
- },
- enumerable: true,
- configurable: true
- }
- });
-
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
- var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined";
-
- var verifyGet = false;
- if (newObj.prop === "verifyCreate") {
- verifyGet = true;
- }
-
- var verifyEnumerable = false;
- for (var p in newObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- var hasProperty = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty;
-
- return verifySet && verifyGet && verifyEnumerable && verifyConfigurable;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - [[Set]] is set as undefined if it is absent in + accessor descriptor of one property in 'Properties' (8.12.9 step + 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + get: function () { + return "verifyCreate"; + }, + enumerable: true, + configurable: true + } + }); + + var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); + var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined"; + + var verifyGet = false; + if (newObj.prop === "verifyCreate") { + verifyGet = true; + } + + var verifyEnumerable = false; + for (var p in newObj) { + if (p === "prop") { + verifyEnumerable = true; + } + } + + var verifyConfigurable = false; + var hasProperty = newObj.hasOwnProperty("prop"); + delete newObj.prop; + verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty; + + return verifySet && verifyGet && verifyEnumerable && verifyConfigurable; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-312.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-312.js index 152f53b70..2b28d978c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-312.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-312.js @@ -1,29 +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.5/15.2.3.5-4-312.js
- * @description Object.create - [[Enumerable]] is set as false if it is absent in accessor descriptor of one property in 'Properties' (8.12.9 step 4.b)
- */
-
-
-function testcase() {
- var isEnumerable = false;
- var newObj = Object.create({}, {
- prop: {
- set: function () { },
- get: function () { },
- configurable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- for (var p in newObj) {
- if (p === "prop") {
- isEnumerable = true;
- }
- }
- return hasProperty && !isEnumerable;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - [[Enumerable]] is set as false if it is absent in + accessor descriptor of one property in 'Properties' (8.12.9 step + 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var isEnumerable = false; + var newObj = Object.create({}, { + prop: { + set: function () { }, + get: function () { }, + configurable: true + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + for (var p in newObj) { + if (p === "prop") { + isEnumerable = true; + } + } + return hasProperty && !isEnumerable; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-313.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-313.js index c9d0a0026..d21f49eeb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-313.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-313.js @@ -1,25 +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.5/15.2.3.5-4-313.js
- * @description Object.create - [[Configurable]] is set as false if it is absent in accessor descriptor of one property in 'Properties' (8.12.9 step 4.b)
- */
-
-
-function testcase() {
- var newObj = Object.create({}, {
- prop: {
- set: function () { },
- get: function () { },
- enumerable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var isNotConfigurable = newObj.hasOwnProperty("prop");
- return hasProperty && isNotConfigurable;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - [[Configurable]] is set as false if it is absent + in accessor descriptor of one property in 'Properties' (8.12.9 + step 4.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + var newObj = Object.create({}, { + prop: { + set: function () { }, + get: function () { }, + enumerable: true + } + }); + var hasProperty = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var isNotConfigurable = newObj.hasOwnProperty("prop"); + return hasProperty && isNotConfigurable; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-314.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-314.js index 5621b4a9b..02a77634f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-314.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-314.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.5/15.2.3.5-4-314.js
- * @description Object.create - some enumerable own property in 'Properties' is empty object (15.2.3.7 step 7)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- foo: {}
- });
- return newObj.hasOwnProperty("foo");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - some enumerable own property in 'Properties' is + empty object (15.2.3.7 step 7) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + foo: {} + }); + return newObj.hasOwnProperty("foo"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-315.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-315.js index da251845a..579d72348 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-315.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-315.js @@ -1,39 +1,44 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-315.js
- * @description Object.create - all properties in 'Properties' are enumerable (data property and accessor property) (15.2.3.7 step 7)
- */
-
-
-function testcase() {
-
- var newObj = {};
- function getFunc() {
- return 10;
- }
- function setFunc(value) {
- newObj.setVerifyHelpProp = value;
- }
-
- newObj = Object.create({}, {
- foo1: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- },
- foo2: {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- }
- });
- return dataPropertyAttributesAreCorrect(newObj, "foo1", 200, true, true, true) &&
- accessorPropertyAttributesAreCorrect(newObj, "foo2", getFunc, setFunc, "setVerifyHelpProp", true, 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.create - all properties in 'Properties' are enumerable + (data property and accessor property) (15.2.3.7 step 7) +includes: + - runTestCase.js + - accessorPropertyAttributesAreCorrect.js + - dataPropertyAttributesAreCorrect.js +---*/ + +function testcase() { + + var newObj = {}; + function getFunc() { + return 10; + } + function setFunc(value) { + newObj.setVerifyHelpProp = value; + } + + newObj = Object.create({}, { + foo1: { + value: 200, + enumerable: true, + writable: true, + configurable: true + }, + foo2: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + } + }); + return dataPropertyAttributesAreCorrect(newObj, "foo1", 200, true, true, true) && + accessorPropertyAttributesAreCorrect(newObj, "foo2", getFunc, setFunc, "setVerifyHelpProp", true, true); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-316.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-316.js index 0601c1fa7..bfa14fcfe 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-316.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-316.js @@ -1,41 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-316.js
- * @description Object.create - enumerable properties of 'Properties' are given numerical names (15.2.3.7 step 7)
- */
-
-
-function testcase() {
-
- function getFunc() {
- return 20;
- }
- function setFunc() { }
-
- var newObj = Object.create({}, {
- 0: {
- value: 100,
- enumerable: true,
- writable: true,
- configurable: true
- },
- 1: {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- },
- 2: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- }
- });
- return newObj[0] === 100 && newObj[1] === 20 && newObj[2] === 200;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - enumerable properties of 'Properties' are given + numerical names (15.2.3.7 step 7) +includes: [runTestCase.js] +---*/ + +function testcase() { + + function getFunc() { + return 20; + } + function setFunc() { } + + var newObj = Object.create({}, { + 0: { + value: 100, + enumerable: true, + writable: true, + configurable: true + }, + 1: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }, + 2: { + value: 200, + enumerable: true, + writable: true, + configurable: true + } + }); + return newObj[0] === 100 && newObj[1] === 20 && newObj[2] === 200; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-32.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-32.js index 5b3aa58a9..788888b28 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-32.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-32.js @@ -1,22 +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.5/15.2.3.5-4-32.js
- * @description Object.create - 'Properties' is a Number object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new Number(-9);
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a Number object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Number(-9); + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-33.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-33.js index 0a60b9f84..9f18eb385 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-33.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-33.js @@ -1,25 +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.5/15.2.3.5-4-33.js
- * @description Object.create - 'Properties' is the Math object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- try {
- Math.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, Math);
- return newObj.hasOwnProperty("prop");
- } finally {
- delete Math.prop;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is the Math object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Math.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, Math); + return newObj.hasOwnProperty("prop"); + } finally { + delete Math.prop; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-34.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-34.js index 8d6c037ab..445769bf5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-34.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-34.js @@ -1,22 +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.5/15.2.3.5-4-34.js
- * @description Object.create - 'Properties' is a Date object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new Date();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a Date object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Date(); + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-35.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-35.js index 766900370..4444418f4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-35.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-35.js @@ -1,22 +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.5/15.2.3.5-4-35.js
- * @description Object.create - 'Properties' is a RegExp object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new RegExp();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is a RegExp object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new RegExp(); + props.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-36.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-36.js index e1a9b8288..cbd66097d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-36.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-36.js @@ -1,25 +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.5/15.2.3.5-4-36.js
- * @description Object.create - 'Properties' is the JSON object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- try {
- JSON.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, JSON);
- return newObj.hasOwnProperty("prop");
- } finally {
- delete JSON.prop;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is the JSON object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + JSON.prop = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, JSON); + return newObj.hasOwnProperty("prop"); + } finally { + delete JSON.prop; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-37.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-37.js index 359ce95f9..ea47baf3d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-37.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-37.js @@ -1,27 +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.5/15.2.3.5-4-37.js
- * @description Object.create - 'Properties' is an Error object that uses Object's [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = new Error("test");
-
- (Object.getOwnPropertyNames(props)).forEach(function(name){
- props[name] = {value:11, configurable:true}
- });
-
- props.prop15_2_3_5_4_37 = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
- return newObj.hasOwnProperty("prop15_2_3_5_4_37");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is an Error object that uses Object's + [[Get]] method to access own enumerable property (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Error("test"); + + (Object.getOwnPropertyNames(props)).forEach(function(name){ + props[name] = {value:11, configurable:true} + }); + + props.prop15_2_3_5_4_37 = { + value: 12, + enumerable: true + }; + var newObj = Object.create({}, props); + return newObj.hasOwnProperty("prop15_2_3_5_4_37"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-38.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-38.js index 57eb1e4e8..6c8b16cc8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-38.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-38.js @@ -1,25 +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.5/15.2.3.5-4-38.js
- * @description Object.create - 'Properties' is an Arguments object which implements its own [[Get]] method to access own enumerable property (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var argObj = (function () { return arguments; })();
-
- argObj.prop = {
- value: 12,
- enumerable: true
- };
-
- var newObj = Object.create({}, argObj);
-
- return newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'Properties' is an Arguments object which + implements its own [[Get]] method to access own enumerable + property (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var argObj = (function () { return arguments; })(); + + argObj.prop = { + value: 12, + enumerable: true + }; + + var newObj = Object.create({}, argObj); + + return newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-39.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-39.js index 8a3f2f2a2..0da05404d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-39.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-39.js @@ -1,34 +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.5/15.2.3.5-4-39.js
- * @description Object.create - ensure that side-effects of gets occur in the same order as they would for: for (P in props) props[P] (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var props = {};
- props.prop1 = { value: 12, enumerable: true };
- props.prop2 = { value: true, enumerable: true };
-
- var tempArray = [];
- for (var p in props) {
- if (props.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
-
- var newObj = Object.create({}, props);
- var index = 0;
- for (var q in newObj) {
- if (tempArray[index++] !== q && newObj.hasOwnProperty(q)) {
- return 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.create - ensure that side-effects of gets occur in the same + order as they would for: for (P in props) props[P] (15.2.3.7 step + 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + props.prop1 = { value: 12, enumerable: true }; + props.prop2 = { value: true, enumerable: true }; + + var tempArray = []; + for (var p in props) { + if (props.hasOwnProperty(p)) { + tempArray.push(p); + } + } + + var newObj = Object.create({}, props); + var index = 0; + for (var q in newObj) { + if (tempArray[index++] !== q && newObj.hasOwnProperty(q)) { + return false; + } + } + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-4.js index 34a09e75a..e0cd6b9a5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-4.js @@ -1,27 +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.5/15.2.3.5-4-4.js
- * @description Object.create - argument 'Properties' is an object (15.2.3.7 step 2).
- */
-
-
-function testcase() {
-
- var props = {};
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Object;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is an object (15.2.3.7 step + 2). +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = {}; + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Object; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-40.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-40.js index 3fd11b832..e38c7a1bd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-40.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-40.js @@ -1,44 +1,47 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-40.js
- * @description Object.create - ensure that if an exception is thrown it occurs in the correct order relative to prior and subsequent side-effects (15.2.3.7 step 5.a)
- */
-
-
-function testcase() {
-
- var newObj = {};
- var props = {};
- var i = 0;
-
- Object.defineProperty(props, "prop1", {
- get: function () {
- i++;
- return {};
- },
- enumerable: true
- });
-
- Object.defineProperty(props, "prop2", {
- get: function () {
- if (1 === i++) {
- throw new RangeError();
- } else {
- return {};
- }
- },
- enumerable: true
- });
-
- try {
- newObj = Object.create({}, props);
- return false;
- } catch (e) {
- return (e instanceof RangeError) && !newObj.hasOwnProperty("prop1") && i === 2;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - ensure that if an exception is thrown it occurs in + the correct order relative to prior and subsequent side-effects + (15.2.3.7 step 5.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = {}; + var props = {}; + var i = 0; + + Object.defineProperty(props, "prop1", { + get: function () { + i++; + return {}; + }, + enumerable: true + }); + + Object.defineProperty(props, "prop2", { + get: function () { + if (1 === i++) { + throw new RangeError(); + } else { + return {}; + } + }, + enumerable: true + }); + + try { + newObj = Object.create({}, props); + return false; + } catch (e) { + return (e instanceof RangeError) && !newObj.hasOwnProperty("prop1") && i === 2; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-41.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-41.js index 26c89d6ff..0fc0ec65a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-41.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-41.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.5/15.2.3.5-4-41.js
- * @description Object.create - value of one property in 'Properties' is undefined (8.10.5 step 1)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: undefined
- });
- return false;
- } 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.create - value of one property in 'Properties' is undefined + (8.10.5 step 1) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: undefined + }); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-42.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-42.js index 9100eaadb..0149f5a35 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-42.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-42.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.5/15.2.3.5-4-42.js
- * @description Object.create - value of one property in 'Properties' is null (8.10.5 step 1)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: null
- });
- return false;
- } 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.create - value of one property in 'Properties' is null + (8.10.5 step 1) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: null + }); + return false; + } catch (e) { + return (e instanceof TypeError); + } + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-43.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-43.js index 4091d5b1c..317c9118a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-43.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-43.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.5/15.2.3.5-4-43.js
- * @description Object.create - value of one property in 'Properties' is false (8.10.5 step 1)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: false
- });
- return false;
- } 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.create - value of one property in 'Properties' is false + (8.10.5 step 1) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: false + }); + return false; + } catch (e) { + return (e instanceof TypeError); + } + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-44.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-44.js index e03eebe48..83d1d715c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-44.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-44.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.5/15.2.3.5-4-44.js
- * @description Object.create - value of one property in 'Properties' is a number primitive (8.10.5 step 1)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: 12
- });
- return false;
- } 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.create - value of one property in 'Properties' is a number + primitive (8.10.5 step 1) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: 12 + }); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-45.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-45.js index 09f357110..545c8efdb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-45.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-45.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.5/15.2.3.5-4-45.js
- * @description Object.create - value of one property in 'Properties' is a string (8.10.5 step 1)
- */
-
-
-function testcase() {
-
- try {
- Object.create({}, {
- prop: "abc"
- });
- return false;
- } 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.create - value of one property in 'Properties' is a string + (8.10.5 step 1) +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.create({}, { + prop: "abc" + }); + return false; + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-46.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-46.js index 7e0a83b8e..82caebf43 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-46.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-46.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.5/15.2.3.5-4-46.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is true (8.10.5 step 3)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is true (8.10.5 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var newObj = Object.create({}, { + prop: { + enumerable: true + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-47.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-47.js index 19c7ec676..9c9a1243e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-47.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-47.js @@ -1,27 +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.5/15.2.3.5-4-47.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is not present (8.10.5 step 3)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {}
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is not present (8.10.5 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: {} + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-48.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-48.js index b9fcfddbc..3632dc474 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-48.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-48.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.5/15.2.3.5-4-48.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own data property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own data property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: true + } + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-49.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-49.js index 44a70fbad..8e997a9d2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-49.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-49.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.5/15.2.3.5-4-49.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an inherited data property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var proto = {
- enumerable: true
- };
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an inherited data property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var proto = { + enumerable: true + }; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-5.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-5.js index a8637ea33..29643aca4 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-5.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-5.js @@ -1,27 +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.5/15.2.3.5-4-5.js
- * @description Object.create - argument 'Properties' is a Function object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var props = function () { };
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Function;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a Function object + (15.2.3.7 step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = function () { }; + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Function; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-50.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-50.js index 353ef477c..bd1b29315 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-50.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-50.js @@ -1,38 +1,41 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-50.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var proto = {
- enumerable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own data property that overrides an inherited data + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var proto = { + enumerable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "enumerable", { + value: false + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-51.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-51.js index 167bbe3e5..5dc9f239c 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-51.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-51.js @@ -1,42 +1,45 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-51.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own data property that overrides an inherited accessor property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- var accessed = false;
-
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own data property that overrides an inherited + accessor property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + var accessed = false; + + Object.defineProperty(proto, "enumerable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "enumerable", { + value: false + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-52.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-52.js index 7eb16331d..e9343b86f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-52.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-52.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.5/15.2.3.5-4-52.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own accessor property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own accessor property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var descObj = {}; + Object.defineProperty(descObj, "enumerable", { + get: function () { + return true; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-53.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-53.js index 605245795..4870c77fd 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-53.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-53.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.5/15.2.3.5-4-53.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an inherited accessor property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- var accessed = false;
-
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an inherited accessor property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + var accessed = false; + + Object.defineProperty(proto, "enumerable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-54.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-54.js index 06271d024..b977963c6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-54.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-54.js @@ -1,39 +1,42 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-54.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own accessor property that overrides an inherited data property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var proto = {
- enumerable: true
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own accessor property that overrides an inherited + data property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var proto = { + enumerable: true + }; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "enumerable", { + get: function () { + return false; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-55.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-55.js index 8b7163da8..15a31acce 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-55.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-55.js @@ -1,42 +1,45 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-55.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own accessor property that overrides an inherited accessor property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own accessor property that overrides an inherited + accessor property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + var accessed = false; + Object.defineProperty(proto, "enumerable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "enumerable", { + get: function () { + return false; + } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-56.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-56.js index ddc9fe388..695396e44 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-56.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-56.js @@ -1,30 +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.5/15.2.3.5-4-56.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own accessor property without a get function (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own accessor property without a get function + (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = {}; + Object.defineProperty(descObj, "enumerable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-57.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-57.js index ca5f25e7f..e2a08b98e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-57.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-57.js @@ -1,40 +1,43 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-57.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is own accessor property without a get function, which overrides an inherited accessor property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is own accessor property without a get function, + which overrides an inherited accessor property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + var accessed = false; + Object.defineProperty(proto, "enumerable", { + get: function () { + return true; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + Object.defineProperty(descObj, "enumerable", { + set: function () { } + }); + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-58.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-58.js index 3596695a7..d7da85d46 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-58.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-58.js @@ -1,36 +1,39 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-58.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an inherited accessor property without a get function (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
-
- var proto = {};
- var accessed = false;
-
- Object.defineProperty(proto, "enumerable", {
- set: function () { }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an inherited accessor property without a get + function (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + + var proto = {}; + var accessed = false; + + Object.defineProperty(proto, "enumerable", { + set: function () { } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-59.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-59.js index 230f15a69..605930650 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-59.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-59.js @@ -1,29 +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.5/15.2.3.5-4-59.js
- * @description Object.create - one property in 'Properties' is a Function object which implements its own [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = function () { };
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a Function object + which implements its own [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = function () { }; + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-6.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-6.js index 718fc1102..46d803a16 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-6.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-6.js @@ -1,27 +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.5/15.2.3.5-4-6.js
- * @description Object.create - argument 'Properties' is an Array object (15.2.3.7 step 2).
- */
-
-
-function testcase() {
-
- var props = [];
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Array;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is an Array object (15.2.3.7 + step 2). +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = []; + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Array; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-60.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-60.js index 2853006b0..9ad8a2692 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-60.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-60.js @@ -1,30 +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.5/15.2.3.5-4-60.js
- * @description Object.create - one property in 'Properties' is an Array object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
-
- var accessed = false;
- var descObj = [];
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is an Array object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + + var accessed = false; + var descObj = []; + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-61.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-61.js index 602c04d98..dc151ad74 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-61.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-61.js @@ -1,29 +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.5/15.2.3.5-4-61.js
- * @description Object.create - one property in 'Properties' is a String object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new String();
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a String object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new String(); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-62.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-62.js index 57a548ff2..d75e06d2a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-62.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-62.js @@ -1,29 +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.5/15.2.3.5-4-62.js
- * @description Object.create - one property in 'Properties' is a Boolean object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new Boolean(false);
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a Boolean object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new Boolean(false); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-63.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-63.js index ec541193f..deca09685 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-63.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-63.js @@ -1,29 +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.5/15.2.3.5-4-63.js
- * @description Object.create - one property in 'Properties' is a Number object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new Number(-9);
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a Number object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new Number(-9); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-64.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-64.js index 4f32bd625..c30775ef5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-64.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-64.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.5/15.2.3.5-4-64.js
- * @description Object.create - one property in 'Properties' is the Math object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- try {
- Math.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: Math
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return accessed;
- } finally {
- delete Math.enumerable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the Math object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + try { + Math.enumerable = true; + + var newObj = Object.create({}, { + prop: Math + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } finally { + delete Math.enumerable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-65.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-65.js index a2dd82fe8..ce18e3b98 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-65.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-65.js @@ -1,29 +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.5/15.2.3.5-4-65.js
- * @description Object.create - one property in 'Properties' is a Date object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new Date();
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a Date object that + uses Object's [[Get]] method to access the 'enumerable' property + (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new Date(); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-66.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-66.js index 8a6541f15..906e372c1 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-66.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-66.js @@ -1,29 +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.5/15.2.3.5-4-66.js
- * @description Object.create - one property in 'Properties' is a RegExp object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new RegExp();
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is a RegExp object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new RegExp(); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-67.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-67.js index 5bbd08d5c..49e17413f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-67.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-67.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.5/15.2.3.5-4-67.js
- * @description Object.create - one property in 'Properties' is the JSON object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- try {
- JSON.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: JSON
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return accessed;
- } finally {
- delete JSON.enumerable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the JSON object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + try { + JSON.enumerable = true; + + var newObj = Object.create({}, { + prop: JSON + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } finally { + delete JSON.enumerable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-68.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-68.js index badddaf53..5449b7b9d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-68.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-68.js @@ -1,29 +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.5/15.2.3.5-4-68.js
- * @description Object.create - one property in 'Properties' is an Error object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var descObj = new Error();
-
- descObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is an Error object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var descObj = new Error(); + + descObj.enumerable = true; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-69.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-69.js index 46651bf00..7dcb4cdf5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-69.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-69.js @@ -1,29 +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.5/15.2.3.5-4-69.js
- * @description Object.create - one property in 'Properties' is an Arguments object which implements its own [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var argObj = (function () { return arguments; })();
-
- argObj.enumerable = true;
-
- var newObj = Object.create({}, {
- prop: argObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - one property in 'Properties' is an Arguments + object which implements its own [[Get]] method to access the + 'enumerable' property (8.10.5 step 3.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var argObj = (function () { return arguments; })(); + + argObj.enumerable = true; + + var newObj = Object.create({}, { + prop: argObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-7.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-7.js index b5a9792ca..f752c1f87 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-7.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-7.js @@ -1,27 +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.5/15.2.3.5-4-7.js
- * @description Object.create - argument 'Properties' is a String object (15.2.3.7 step 2)
- */
-
-
-function testcase() {
-
- var props = new String();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof String;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a String object (15.2.3.7 + step 2) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new String(); + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof String; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-71.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-71.js index 1e0347e1c..06bbbd371 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-71.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-71.js @@ -1,32 +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.5/15.2.3.5-4-71.js
- * @description Object.create - one property in 'Properties' is the global object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- try {
- fnGlobalObject().enumerable = true;
-
- var newObj = Object.create({}, {
- prop: fnGlobalObject()
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return accessed;
- } finally {
- delete fnGlobalObject().enumerable;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - one property in 'Properties' is the global object + that uses Object's [[Get]] method to access the 'enumerable' + property (8.10.5 step 3.a) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + var accessed = false; + + try { + fnGlobalObject().enumerable = true; + + var newObj = Object.create({}, { + prop: fnGlobalObject() + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } finally { + delete fnGlobalObject().enumerable; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-72.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-72.js index 6afff2bdb..b4f75b4c9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-72.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-72.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.5/15.2.3.5-4-72.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is undefined (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: undefined
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is undefined (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: undefined + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-73.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-73.js index 13e38db80..11ca51da2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-73.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-73.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.5/15.2.3.5-4-73.js
- * @description Object.create - value of 'enumerable' property of one property in 'Properties' is null (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: null
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - value of 'enumerable' property of one property in + 'Properties' is null (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: null + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-74.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-74.js index 7124e965c..3541d0418 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-74.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-74.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.5/15.2.3.5-4-74.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is true (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is true (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: true + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-75.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-75.js index 3fd3bc854..48ebe7bb2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-75.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-75.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.5/15.2.3.5-4-75.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is false (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
-
- var accessed = false;
- var descObj = {
- enumerable: false
- };
-
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is false (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + + var accessed = false; + var descObj = { + enumerable: false + }; + + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-76.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-76.js index 9fe510bbd..bb6c21de6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-76.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-76.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.5/15.2.3.5-4-76.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is 0 (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: 0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is 0 (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: 0 + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-77.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-77.js index c5811a2c7..39063d6af 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-77.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-77.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.5/15.2.3.5-4-77.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is +0 (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: +0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is +0 (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: +0 + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-78.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-78.js index ee7a3f7ec..9b7827240 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-78.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-78.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.5/15.2.3.5-4-78.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is -0 (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: -0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is -0 (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: -0 + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-79.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-79.js index 42b52143b..ff7491bea 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-79.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-79.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.5/15.2.3.5-4-79.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is NaN (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: NaN
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is NaN (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: NaN + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-8.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-8.js index e5474954c..1f00adfff 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-8.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-8.js @@ -1,27 +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.5/15.2.3.5-4-8.js
- * @description Object.create - argument 'Properties' is a Boolean object whose primitive value is true (15.2.3.7 step 2).
- */
-
-
-function testcase() {
-
- var props = new Boolean(true);
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Boolean;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a Boolean object whose + primitive value is true (15.2.3.7 step 2). +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Boolean(true); + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Boolean; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-80.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-80.js index e03133dfb..0ebafe8e7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-80.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-80.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.5/15.2.3.5-4-80.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a positive number primitive (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: 12
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a positive number primitive (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: 12 + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-81.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-81.js index 8dc8978b0..85fb9502a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-81.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-81.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.5/15.2.3.5-4-81.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a negative number primitive (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: -9
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a negative number primitive (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: -9 + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-82.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-82.js index d848796ff..0372b89c9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-82.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-82.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.5/15.2.3.5-4-82.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an empty string (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: ""
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
- return !accessed && newObj.hasOwnProperty("prop");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - 'enumerable' property of one property in + 'Properties' is an empty string (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: "" + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return !accessed && newObj.hasOwnProperty("prop"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-83.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-83.js index a77811bd3..637070d10 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-83.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-83.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.5/15.2.3.5-4-83.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a non-empty string (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: "AB\n\\cd"
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a non-empty string (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: "AB\n\\cd" + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-84.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-84.js index 0e460058d..a7718601e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-84.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-84.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.5/15.2.3.5-4-84.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a Function object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: function () { }
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a Function object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: function () { } + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-85.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-85.js index e5ee34145..b26999338 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-85.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-85.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.5/15.2.3.5-4-85.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an Array object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: []
- }
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an Array object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: [] + } + }); + + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-86.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-86.js index 997980119..b26d958e7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-86.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-86.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.5/15.2.3.5-4-86.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a String object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new String()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a String object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new String() + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-87.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-87.js index e3d490612..28b67176a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-87.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-87.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.5/15.2.3.5-4-87.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a Boolean object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Boolean(true)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a Boolean object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new Boolean(true) + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-88.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-88.js index 62914dd6b..2e74cf76d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-88.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-88.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.5/15.2.3.5-4-88.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a Number object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Number(-9)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a Number object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new Number(-9) + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-89.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-89.js index 9d86598f1..e0e577884 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-89.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-89.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.5/15.2.3.5-4-89.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is the Math object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: Math
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is the Math object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: Math + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-9.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-9.js index 4bffa31c2..c694800fb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-9.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-9.js @@ -1,27 +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.5/15.2.3.5-4-9.js
- * @description Object.create - argument 'Properties' is a Number object whose primitive value is any interesting number (15.2.3.7 step 2).
- */
-
-
-function testcase() {
-
- var props = new Number(12);
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Number;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.create - argument 'Properties' is a Number object whose + primitive value is any interesting number (15.2.3.7 step 2). +includes: [runTestCase.js] +---*/ + +function testcase() { + + var props = new Number(12); + var result = false; + + Object.defineProperty(props, "prop", { + get: function () { + result = this instanceof Number; + return {}; + }, + enumerable: true + }); + Object.create({}, props); + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-90.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-90.js index bc778b69f..f47fd9f2f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-90.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-90.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.5/15.2.3.5-4-90.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a Date object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Date()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a Date object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new Date() + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-91.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-91.js index 21766aee0..af77cc162 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-91.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-91.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.5/15.2.3.5-4-91.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a RegExp object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new RegExp()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a RegExp object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new RegExp() + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-92.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-92.js index 9acf9abc5..297afb416 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-92.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-92.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.5/15.2.3.5-4-92.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is the JSON object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: JSON
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is the JSON object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: JSON + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-93.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-93.js index 58bb770d2..4a068a2d9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-93.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-93.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.5/15.2.3.5-4-93.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an Error object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Error()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an Error object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new Error() + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-94.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-94.js index 19cf00808..edc449180 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-94.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-94.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.5/15.2.3.5-4-94.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is an Arguments object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
- var argObj = (function () { return arguments; })();
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: argObj
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is an Arguments object (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + var argObj = (function () { return arguments; })(); + + var newObj = Object.create({}, { + prop: { + enumerable: argObj + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-96.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-96.js index d4f5aa133..cde1bf603 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-96.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-96.js @@ -1,28 +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.5/15.2.3.5-4-96.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is the global object (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: fnGlobalObject()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is the global object (8.10.5 step 3.b) +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: fnGlobalObject() + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-97.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-97.js index 02448d57d..d407ed87b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-97.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-97.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.5/15.2.3.5-4-97.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is a string (value is 'false'), which is treated as the value true (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: "false"
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is a string (value is 'false'), which is treated as + the value true (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: "false" + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-98.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-98.js index f5a56793e..212837f77 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-98.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-98.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.5/15.2.3.5-4-98.js
- * @description Object.create - 'enumerable' property of one property in 'Properties' is new Boolean(false), which is treated as the value true (8.10.5 step 3.b)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Boolean(false)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- 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.create - 'enumerable' property of one property in + 'Properties' is new Boolean(false), which is treated as the value + true (8.10.5 step 3.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var accessed = false; + + var newObj = Object.create({}, { + prop: { + enumerable: new Boolean(false) + } + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } + return accessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-99.js b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-99.js index e2e656f00..6e873bccb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-99.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-99.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.5/15.2.3.5-4-99.js
- * @description Object.create - 'configurable' property of one property in 'Properties' is true (8.10.5 step 4)
- */
-
-
-function testcase() {
-
- var newObj = Object.create({}, {
- prop: {
- configurable: true
- }
- });
-
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
-
- return result1 === true && result2 === 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.create - 'configurable' property of one property in + 'Properties' is true (8.10.5 step 4) +includes: [runTestCase.js] +---*/ + +function testcase() { + + var newObj = Object.create({}, { + prop: { + configurable: true + } + }); + + var result1 = newObj.hasOwnProperty("prop"); + delete newObj.prop; + var result2 = newObj.hasOwnProperty("prop"); + + return result1 === true && result2 === false; + } +runTestCase(testcase); |