From 23f10fea63dff3b9ba3dbf9110de6642287b1c11 Mon Sep 17 00:00:00 2001
From: Brent Baker <brbaker@adobe.com>
Date: Thu, 6 Jun 2013 07:48:30 -0400
Subject: [PATCH] Bug 1129: Move Date.prototype.toGMTString into annexB

---
 .../15.2.3.3-4-155.js => annexB/B.2.6.js}        |  2 +-
 test/suite/annexB/B.2.6.propertyCheck.js         | 16 ++++++++++++++++
 test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js     |  3 ---
 3 files changed, 17 insertions(+), 4 deletions(-)
 rename test/suite/{ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js => annexB/B.2.6.js} (91%)
 create mode 100644 test/suite/annexB/B.2.6.propertyCheck.js

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"] ));
-
 
 
 
-- 
GitLab