diff options
Diffstat (limited to 'test/suite/ch15/15.2/15.2.3/15.2.3.13')
36 files changed, 738 insertions, 703 deletions
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-1.js index a1b8af495..c78ed6ba8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-1.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-1.js
- * @description Object.isExtensible must exist as a function
- */
-
-
-function testcase() {
- var f = Object.isExtensible ;
- if (typeof(f) === "function") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = Object.isExtensible ; + if (typeof(f) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-2.js index 188f3637a..0eb109813 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-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.13/15.2.3.13-0-2.js
- * @description Object.isExtensible must exist as a function taking 1 parameter
- */
-
-
-function testcase() {
- if (Object.isExtensible.length === 1) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible must exist as a function taking 1 parameter +includes: [runTestCase.js] +---*/ + +function testcase() { + if (Object.isExtensible.length === 1) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-3.js index 580a74bc3..a90ab545a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-3.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.
-/**
- * A newly created object using the Object contructor has its [[Extensible]]
- * property set to true by default (15.2.2.1, step 8).
- *
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-0-3.js
- * @description Object.isExtensible is true for objects created using the Object constructor
- */
-
-
-function testcase() {
- var o = new Object();
-
- if (Object.isExtensible(o) === 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: > + A newly created object using the Object contructor has its [[Extensible]] + property set to true by default (15.2.2.1, step 8). +description: > + Object.isExtensible is true for objects created using the Object + constructor +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = new Object(); + + if (Object.isExtensible(o) === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-1.js index 2f56bab0d..062f02ab6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-1.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.13/15.2.3.13-1-1.js
- * @description Object.isExtensible throws TypeError if 'O' is undefined
- */
-
-
-function testcase() {
-
- try {
- Object.isExtensible(undefined);
- } 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.isExtensible throws TypeError if 'O' is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.isExtensible(undefined); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-2.js index bcd5f7109..70d6dc8f9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-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.13/15.2.3.13-1-2.js
- * @description Object.isExtensible throws TypeError if 'O' is null
- */
-
-
-function testcase() {
-
- try {
- Object.isExtensible(null);
- } 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.isExtensible throws TypeError if 'O' is null +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.isExtensible(null); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-3.js index b1dbdac42..046d57720 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-3.js @@ -1,20 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-3.js
- * @description Object.isExtensible throws TypeError if 'O' is a boolean
- */
-
-
-function testcase() {
-
- try {
- Object.isExtensible(true);
- } 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.isExtensible throws TypeError if 'O' is a boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.isExtensible(true); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-4.js index a631c7f67..504e19432 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1-4.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.13/15.2.3.13-1-4.js
- * @description Object.isExtensible throws TypeError if 'O' is a string
- */
-
-
-function testcase() {
-
- try {
- Object.isExtensible("abc");
- } 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.isExtensible throws TypeError if 'O' is a string +includes: [runTestCase.js] +---*/ + +function testcase() { + + try { + Object.isExtensible("abc"); + } catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1.js index 40b06312a..4de2443af 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-1.js
- * @description Object.isExtensible throws TypeError if type of first param is not Object
- */
-
-
-function testcase() {
- try {
- Object.isExtensible(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.isExtensible throws TypeError if type of first param is not + Object +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.isExtensible(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.13/15.2.3.13-2-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-1.js index db28c866a..e9a9c30e0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-1.js @@ -1,19 +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.13/15.2.3.13-2-1.js
- * @description Object.isExtensible returns true for all built-in objects (Global)
- */
-
-global = this;
-function testcase() {
- // in non-strict mode, 'this' is bound to the global object.
- var e = Object.isExtensible(this);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Global) +includes: [runTestCase.js] +---*/ + +global = this; +function testcase() { + // in non-strict mode, 'this' is bound to the global object. + var e = Object.isExtensible(this); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-10.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-10.js index be96e68f7..cef59132f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-10.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-10.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-10.js
- * @description Object.isExtensible returns true for all built-in objects (RegExp)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(RegExp);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (RegExp) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(RegExp); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-11.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-11.js index 02e67cabe..1cda8522b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-11.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-11.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-11.js
- * @description Object.isExtensible returns true for all built-in objects (Error)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Error);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Error) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Error); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-12.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-12.js index 03fe35383..d5b0103e7 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-12.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-12.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-12.js
- * @description Object.isExtensible returns true for all built-in objects (JSON)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(JSON);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (JSON) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(JSON); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js index 48199f682..607259cf3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js
- * @description Object.isExtensible returns true for all built-in objects (Function.constructor)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Function.constructor);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Function.constructor) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Function.constructor); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-14.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-14.js index ce00b6893..034a42c84 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-14.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-14.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-14.js
- * @description Object.isExtensible returns true for all built-in objects (Function.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Function.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Function.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Function.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-15.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-15.js index dffd187d2..1fdb6bfc8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-15.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-15.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-15.js
- * @description Object.isExtensible returns true for all built-in objects (Array.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Array.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Array.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Array.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-16.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-16.js index 787f80d9f..8b0509439 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-16.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-16.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-16.js
- * @description Object.isExtensible returns true for all built-in objects (String.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(String.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (String.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(String.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-17.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-17.js index b08e5b31d..d14686542 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-17.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-17.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-17.js
- * @description Object.isExtensible returns true for all built-in objects (Boolean.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Boolean.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Boolean.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Boolean.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-18.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-18.js index eba331547..0140e17fb 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-18.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-18.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-18.js
- * @description Object.isExtensible returns true for all built-in objects (Number.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Number.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Number.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Number.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-19.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-19.js index 1d03541fa..14770fec0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-19.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-19.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-19.js
- * @description Object.isExtensible returns true for all built-in objects (Date.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Date.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Date.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Date.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-2.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-2.js index bb7295b87..6aafa0602 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-2.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-2.js @@ -1,19 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-2.js
- * @description Object.isExtensible returns true for all built-in objects (Object)
- */
-
-
-function testcase() {
- var o = {};
- var e = Object.isExtensible(o);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Object) +includes: [runTestCase.js] +---*/ + +function testcase() { + var o = {}; + var e = Object.isExtensible(o); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-20.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-20.js index 6c927bbf3..84f036e5a 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-20.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-20.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-20.js
- * @description Object.isExtensible returns true for all built-in objects (RegExp.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(RegExp.prototype);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (RegExp.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(RegExp.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-21.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-21.js index 4d136e745..b7622cd99 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-21.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-21.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.
-/**
- * Function.constructor
- * Function.prototype
- * Array.prototype
- * String.prototype
- * Boolean.prototype
- * Number.prototype
- * Date.prototype
- * RegExp.prototype
- * Error.prototype
- *
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-21.js
- * @description Object.isExtensible returns true for all built-in objects (Error.prototype)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Error.prototype);
- if (e === 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: > + Function.constructor + Function.prototype + Array.prototype + String.prototype + Boolean.prototype + Number.prototype + Date.prototype + RegExp.prototype + Error.prototype +description: > + Object.isExtensible returns true for all built-in objects + (Error.prototype) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Error.prototype); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-22.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-22.js index 924b3537f..ce7f300d3 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-22.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-22.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.13/15.2.3.13-2-22.js
- * @description Object.isExtensible returns true if 'O' is extensible
- */
-
-
-function testcase() {
-
- var obj = {};
- return Object.isExtensible(obj);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true if 'O' is extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = {}; + return Object.isExtensible(obj); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-23.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-23.js index 1b58c388f..6ee6266c8 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-23.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-23.js @@ -1,19 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-23.js
- * @description Object.isExtensible returns false if 'O' is not extensible
- */
-
-
-function testcase() {
-
- var obj = {};
- Object.preventExtensions(obj);
- return !Object.isExtensible(obj);
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns false if 'O' is not extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var obj = {}; + Object.preventExtensions(obj); + return !Object.isExtensible(obj); + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-24.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-24.js index 02c0673c9..c04ecd67b 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-24.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-24.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.13/15.2.3.13-2-24.js
- * @description Object.isExtensible returns true if O is extensible and has a prototype that is extensible
- */
-
-
-function testcase() {
-
- var proto = {};
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var obj = new ConstructFun();
-
- return Object.isExtensible(obj);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true if O is extensible and has a + prototype that is extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var obj = new ConstructFun(); + + return Object.isExtensible(obj); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-25.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-25.js index bc53a5a82..f53cee05e 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-25.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-25.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.13/15.2.3.13-2-25.js
- * @description Object.isExtensible returns true if O is extensible and has a prototype that is not extensible
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.preventExtensions(proto);
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var obj = new ConstructFun();
-
- return Object.isExtensible(obj);
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true if O is extensible and has a + prototype that is not extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.preventExtensions(proto); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var obj = new ConstructFun(); + + return Object.isExtensible(obj); + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-26.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-26.js index a1f3cec59..1a5682bf2 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-26.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-26.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.13/15.2.3.13-2-26.js
- * @description Object.isExtensible returns false if O is not extensible and has a prototype that is extensible
- */
-
-
-function testcase() {
-
- var proto = {};
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
-
- Object.preventExtensions(obj);
-
- return !Object.isExtensible(obj);
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns false if O is not extensible and has a + prototype that is extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var obj = new ConstructFun(); + + Object.preventExtensions(obj); + + return !Object.isExtensible(obj); + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-27.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-27.js index baad65259..899d31a7f 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-27.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-27.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.13/15.2.3.13-2-27.js
- * @description Object.isExtensible returns false if O is not extensible and has a prototype that is not extensible
- */
-
-
-function testcase() {
-
- var proto = {};
- Object.preventExtensions(proto);
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var obj = new ConstructFun();
- Object.preventExtensions(obj);
-
- return !Object.isExtensible(obj);
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns false if O is not extensible and has a + prototype that is not extensible +includes: [runTestCase.js] +---*/ + +function testcase() { + + var proto = {}; + Object.preventExtensions(proto); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var obj = new ConstructFun(); + Object.preventExtensions(obj); + + return !Object.isExtensible(obj); + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-29.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-29.js index 1c9d43da4..03dcf1259 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-29.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-29.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-29.js
- * @description Object.isExtensible returns true for the global object
- */
-
-
-function testcase() {
-
- return Object.isExtensible(fnGlobalObject());
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for the global object +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + + return Object.isExtensible(fnGlobalObject()); + + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-3.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-3.js index c7bfad694..3f0b1f5ec 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-3.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-3.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.13/15.2.3.13-2-3.js
- * @description Object.isExtensible returns true for all built-in objects (Function)
- */
-
-
-function testcase() {
- function foo() {}
-
- var e = Object.isExtensible(foo);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Object.isExtensible returns true for all built-in objects + (Function) +includes: [runTestCase.js] +---*/ + +function testcase() { + function foo() {} + + var e = Object.isExtensible(foo); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-4.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-4.js index ac43ea3d9..eba4148a9 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-4.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-4.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-4.js
- * @description Object.isExtensible returns true for all built-in objects (Array)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Array);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Array) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Array); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-5.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-5.js index 0ea55b88a..19b9f52d0 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-5.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-5.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-5.js
- * @description Object.isExtensible returns true for all built-in objects (String)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(String);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (String) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(String); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-6.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-6.js index affa22075..43b048b94 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-6.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-6.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-6.js
- * @description Object.isExtensible returns true for all built-in objects (Boolean)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Boolean);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Boolean) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Boolean); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js index 17f6d8b5e..ea03a79b5 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js
- * @description Object.isExtensible returns true for all built-in objects (Number)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Number);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Number) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Number); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-8.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-8.js index 551f0bc44..7116be830 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-8.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-8.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-8.js
- * @description Object.isExtensible returns true for all built-in objects (Math)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Math);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Math) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Math); + if (e === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-9.js b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-9.js index bb85ed6bb..f9296c56d 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-9.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-9.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-9.js
- * @description Object.isExtensible returns true for all built-in objects (Date)
- */
-
-
-function testcase() {
- var e = Object.isExtensible(Date);
- if (e === true) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Object.isExtensible returns true for all built-in objects (Date) +includes: [runTestCase.js] +---*/ + +function testcase() { + var e = Object.isExtensible(Date); + if (e === true) { + return true; + } + } +runTestCase(testcase); |