From fe69241d2b28a102d002402b200970c5aaa1c76f Mon Sep 17 00:00:00 2001 From: Brent Baker Date: Thu, 6 Jun 2013 07:36:51 -0400 Subject: Bug 1125: Move escape and unescape into "annexB" --HG-- rename : test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js => test/suite/annexB/B.2.1.js rename : test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js => test/suite/annexB/B.2.2.js --- test/suite/annexB/B.2.1.js | 22 ++++++++++++++++++++++ test/suite/annexB/B.2.1.propertyCheck.js | 12 ++++++++++++ test/suite/annexB/B.2.2.js | 22 ++++++++++++++++++++++ test/suite/annexB/B.2.2.propertyCheck.js | 12 ++++++++++++ test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js | 4 ---- .../ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js | 22 ---------------------- .../ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js | 22 ---------------------- 7 files changed, 68 insertions(+), 48 deletions(-) create mode 100644 test/suite/annexB/B.2.1.js create mode 100644 test/suite/annexB/B.2.1.propertyCheck.js create mode 100644 test/suite/annexB/B.2.2.js create mode 100644 test/suite/annexB/B.2.2.propertyCheck.js delete mode 100644 test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js delete mode 100644 test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js diff --git a/test/suite/annexB/B.2.1.js b/test/suite/annexB/B.2.1.js new file mode 100644 index 000000000..89754a48c --- /dev/null +++ b/test/suite/annexB/B.2.1.js @@ -0,0 +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 annexB/B.2.1.js + * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape) + */ + + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "escape"); + if (desc.value === global.escape && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/annexB/B.2.1.propertyCheck.js b/test/suite/annexB/B.2.1.propertyCheck.js new file mode 100644 index 000000000..cadef9877 --- /dev/null +++ b/test/suite/annexB/B.2.1.propertyCheck.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Check type of various properties + * + * @path annexB/B.2.1.propertyCheck.js + * @description Checking properties of this object (escape) + */ + +if (typeof this.escape === "undefined") $ERROR('#1: typeof this.escape !== "undefined"'); +if (typeof this['escape'] === "undefined") $ERROR('#2: typeof this["escape"] !== "undefined"'); diff --git a/test/suite/annexB/B.2.2.js b/test/suite/annexB/B.2.2.js new file mode 100644 index 000000000..987a0d651 --- /dev/null +++ b/test/suite/annexB/B.2.2.js @@ -0,0 +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 annexB/B.2.2.js + * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape) + */ + + +function testcase() { + var global = fnGlobalObject(); + var desc = Object.getOwnPropertyDescriptor(global, "unescape"); + if (desc.value === global.unescape && + desc.writable === true && + desc.enumerable === false && + desc.configurable === true) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/annexB/B.2.2.propertyCheck.js b/test/suite/annexB/B.2.2.propertyCheck.js new file mode 100644 index 000000000..be9cac6a7 --- /dev/null +++ b/test/suite/annexB/B.2.2.propertyCheck.js @@ -0,0 +1,12 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Check type of various properties + * + * @path annexB/B.2.2.propertyCheck.js + * @description Checking properties of this object (unescape) + */ + +if (typeof this.unescape === "undefined") $ERROR('#1: typeof this.unescape !== "undefined"'); +if (typeof this['unescape'] === "undefined") $ERROR('#2: typeof this["unescape"] !== "undefined"'); diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js index fb78048fb..8f9212243 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T1.js @@ -17,10 +17,6 @@ if (typeof this.parseInt === "undefined") $ERROR('#5: typeof this.parseInt !== if (typeof this['parseInt'] === "undefined") $ERROR('#6: typeof this["parseInt"] !== "undefined"'); if (typeof this.parseFloat === "undefined") $ERROR('#7: typeof this.parseFloat !== "undefined"'); if (typeof this['parseFloat'] === "undefined") $ERROR('#8: typeof this["parseFloat"] !== "undefined"'); -if (typeof this.escape === "undefined") $ERROR('#9: typeof this.escape !== "undefined"'); -if (typeof this['escape'] === "undefined") $ERROR('#10: typeof this["escape"] !== "undefined"'); -if (typeof this.unescape === "undefined") $ERROR('#11: typeof this.unescape !== "undefined"'); -if (typeof this['unescape'] === "undefined") $ERROR('#12: typeof this["unescape"] !== "undefined"'); if (typeof this.isNaN === "undefined") $ERROR('#13: typeof this.isNaN !== "undefined"'); if (typeof this['isNaN'] === "undefined") $ERROR('#14: typeof this["isNaN"] !== "undefined"'); if (typeof this.isFinite === "undefined") $ERROR('#15: typeof this.isFinite !== "undefined"'); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js deleted file mode 100644 index 6d2d00798..000000000 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js +++ /dev/null @@ -1,22 +0,0 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved. -/// Ecma International makes this code available under the terms and conditions set -/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -/// "Use Terms"). Any redistribution of this code must retain the above -/// copyright and this notice and otherwise comply with the Use Terms. -/** - * @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js - * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape) - */ - - -function testcase() { - var global = fnGlobalObject(); - var desc = Object.getOwnPropertyDescriptor(global, "escape"); - if (desc.value === global.escape && - desc.writable === true && - desc.enumerable === false && - desc.configurable === true) { - return true; - } - } -runTestCase(testcase); diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js b/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js deleted file mode 100644 index cde680838..000000000 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js +++ /dev/null @@ -1,22 +0,0 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved. -/// Ecma International makes this code available under the terms and conditions set -/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -/// "Use Terms"). Any redistribution of this code must retain the above -/// copyright and this notice and otherwise comply with the Use Terms. -/** - * @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js - * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape) - */ - - -function testcase() { - var global = fnGlobalObject(); - var desc = Object.getOwnPropertyDescriptor(global, "unescape"); - if (desc.value === global.unescape && - desc.writable === true && - desc.enumerable === false && - desc.configurable === true) { - return true; - } - } -runTestCase(testcase); -- cgit v1.2.1