diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js b/test/suite/annexB/B.2.6.js similarity index 91% rename from test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js rename to test/suite/annexB/B.2.6.js index 1619d79d42..84a223a7a6 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js +++ b/test/suite/annexB/B.2.6.js @@ -4,7 +4,7 @@ /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and 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-155.js + * @path annexB/B.2.6.js * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toGMTString) */ diff --git a/test/suite/annexB/B.2.6.propertyCheck.js b/test/suite/annexB/B.2.6.propertyCheck.js new file mode 100644 index 0000000000..339ee5367b --- /dev/null +++ b/test/suite/annexB/B.2.6.propertyCheck.js @@ -0,0 +1,16 @@ +// 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.6.propertyCheck.js + * @description Checking properties of the Date object (toGMTString) + */ + +if (typeof Date.prototype.toGMTString !== "function") $ERROR('#1: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString )); +if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] )); + + + + diff --git a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js index 6b142a4916..409d49e58e 100644 --- a/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js +++ b/test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js @@ -89,9 +89,6 @@ if (typeof Date.prototype.toLocaleString !== "function") $ERROR('#81: typeof Da if (typeof Date.prototype['toLocaleString'] !== "function") $ERROR('#82: typeof Date.prototype["toLocaleString"] === "function". Actual: ' + (typeof Date.prototype["toLocaleString"] )); if (typeof Date.prototype.toUTCString !== "function") $ERROR('#83: typeof Date.prototype.toUTCString === "function". Actual: ' + (typeof Date.prototype.toUTCString )); if (typeof Date.prototype['toUTCString'] !== "function") $ERROR('#84: typeof Date.prototype["toUTCString"] === "function". Actual: ' + (typeof Date.prototype["toUTCString"] )); -if (typeof Date.prototype.toGMTString !== "function") $ERROR('#85: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString )); -if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#86: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] )); -