summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Baker <brbaker@adobe.com>2013-06-06 07:48:30 -0400
committerBrent Baker <brbaker@adobe.com>2013-06-06 07:48:30 -0400
commitb562721e1db541d31659fa5fa529ea3b3ca10b88 (patch)
treeec15b4593340cc58b8cdea9d27f5b55f6d441374
parent70538214ebd117bb8b861db94ddc0b6c3309d105 (diff)
downloadtest262-b562721e1db541d31659fa5fa529ea3b3ca10b88.tar.gz
Bug 1129: Move Date.prototype.toGMTString into annexB
--HG-- rename : test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js => test/suite/annexB/B.2.6.js
-rw-r--r--test/suite/annexB/B.2.6.js (renamed from test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js)2
-rw-r--r--test/suite/annexB/B.2.6.propertyCheck.js16
-rw-r--r--test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js3
3 files changed, 17 insertions, 4 deletions
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
index 1619d79d4..84a223a7a 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 000000000..339ee5367
--- /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 6b142a491..409d49e58 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"] ));
-