summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Baker <brbaker@adobe.com>2013-06-06 07:44:11 -0400
committerBrent Baker <brbaker@adobe.com>2013-06-06 07:44:11 -0400
commit70538214ebd117bb8b861db94ddc0b6c3309d105 (patch)
treeeb4d35096e613a0dfc4acd8b524e66dbbdca890b
parentfe69241d2b28a102d002402b200970c5aaa1c76f (diff)
downloadtest262-70538214ebd117bb8b861db94ddc0b6c3309d105.tar.gz
Bug 1128: Move getYear() and setYear() into annexB
--HG-- rename : test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js => test/suite/annexB/B.2.4.js rename : test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js => test/suite/annexB/B.2.5.js
-rw-r--r--test/suite/annexB/B.2.4.js (renamed from test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js)2
-rw-r--r--test/suite/annexB/B.2.4.propertyCheck.js15
-rw-r--r--test/suite/annexB/B.2.5.js (renamed from test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js)2
-rw-r--r--test/suite/annexB/B.2.5.propertyCheck.js15
-rw-r--r--test/suite/ch11/11.2/11.2.1/S11.2.1_A4_T9.js4
5 files changed, 32 insertions, 6 deletions
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js b/test/suite/annexB/B.2.4.js
index 24e82ad88..252c6c151 100644
--- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js
+++ b/test/suite/annexB/B.2.4.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-119.js
+ * @path annexB/B.2.4.js
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getYear)
*/
diff --git a/test/suite/annexB/B.2.4.propertyCheck.js b/test/suite/annexB/B.2.4.propertyCheck.js
new file mode 100644
index 000000000..959c8b7da
--- /dev/null
+++ b/test/suite/annexB/B.2.4.propertyCheck.js
@@ -0,0 +1,15 @@
+// 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.4.propertyCheck.js
+ * @description Checking properties of the Date object (getYear)
+ */
+
+if (typeof Date.prototype.getYear !== "function") $ERROR('#1: typeof Date.prototype.getYear === "function". Actual: ' + (typeof Date.prototype.getYear ));
+if (typeof Date.prototype['getYear'] !== "function") $ERROR('#2: typeof Date.prototype["getYear"] === "function". Actual: ' + (typeof Date.prototype["getYear"] ));
+
+
+
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js b/test/suite/annexB/B.2.5.js
index 56cf7a17e..7754c221d 100644
--- a/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js
+++ b/test/suite/annexB/B.2.5.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-137.js
+ * @path annexB/B.2.5.js
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setYear)
*/
diff --git a/test/suite/annexB/B.2.5.propertyCheck.js b/test/suite/annexB/B.2.5.propertyCheck.js
new file mode 100644
index 000000000..2af44c251
--- /dev/null
+++ b/test/suite/annexB/B.2.5.propertyCheck.js
@@ -0,0 +1,15 @@
+// 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.5.propertyCheck.js
+ * @description Checking properties of the Date object (setYear)
+ */
+
+if (typeof Date.prototype.setYear !== "function") $ERROR('#1: typeof Date.prototype.setYear === "function". Actual: ' + (typeof Date.prototype.setYear ));
+if (typeof Date.prototype['setYear'] !== "function") $ERROR('#2: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
+
+
+
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 8aecb182f..6b142a491 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
@@ -23,8 +23,6 @@ if (typeof Date.prototype.valueOf !== "function") $ERROR('#11: typeof Date.prot
if (typeof Date.prototype['valueOf'] !== "function") $ERROR('#12: typeof Date.prototype["valueOf"] === "function". Actual: ' + (typeof Date.prototype["valueOf"] ));
if (typeof Date.prototype.getTime !== "function") $ERROR('#13: typeof Date.prototype.getTime === "function". Actual: ' + (typeof Date.prototype.getTime ));
if (typeof Date.prototype['getTime'] !== "function") $ERROR('#14: typeof Date.prototype["getTime"] === "function". Actual: ' + (typeof Date.prototype["getTime"] ));
-if (typeof Date.prototype.getYear !== "function") $ERROR('#15: typeof Date.prototype.getYear === "function". Actual: ' + (typeof Date.prototype.getYear ));
-if (typeof Date.prototype['getYear'] !== "function") $ERROR('#16: typeof Date.prototype["getYear"] === "function". Actual: ' + (typeof Date.prototype["getYear"] ));
if (typeof Date.prototype.getFullYear !== "function") $ERROR('#17: typeof Date.prototype.getFullYear === "function". Actual: ' + (typeof Date.prototype.getFullYear ));
if (typeof Date.prototype['getFullYear'] !== "function") $ERROR('#18: typeof Date.prototype["getFullYear"] === "function". Actual: ' + (typeof Date.prototype["getFullYear"] ));
if (typeof Date.prototype.getUTCFullYear !== "function") $ERROR('#19: typeof Date.prototype.getUTCFullYear === "function". Actual: ' + (typeof Date.prototype.getUTCFullYear ));
@@ -87,8 +85,6 @@ if (typeof Date.prototype.setFullYear !== "function") $ERROR('#75: typeof Date.
if (typeof Date.prototype['setFullYear'] !== "function") $ERROR('#76: typeof Date.prototype["setFullYear"] === "function". Actual: ' + (typeof Date.prototype["setFullYear"] ));
if (typeof Date.prototype.setUTCFullYear !== "function") $ERROR('#77: typeof Date.prototype.setUTCFullYear === "function". Actual: ' + (typeof Date.prototype.setUTCFullYear ));
if (typeof Date.prototype['setUTCFullYear'] !== "function") $ERROR('#78: typeof Date.prototype["setUTCFullYear"] === "function". Actual: ' + (typeof Date.prototype["setUTCFullYear"] ));
-if (typeof Date.prototype.setYear !== "function") $ERROR('#79: typeof Date.prototype.setYear === "function". Actual: ' + (typeof Date.prototype.setYear ));
-if (typeof Date.prototype['setYear'] !== "function") $ERROR('#80: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
if (typeof Date.prototype.toLocaleString !== "function") $ERROR('#81: typeof Date.prototype.toLocaleString === "function". Actual: ' + (typeof Date.prototype.toLocaleString ));
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 ));