summaryrefslogtreecommitdiff
path: root/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2')
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-1.js34
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-2.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-3.js44
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-1.js43
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-1.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-10.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-12.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-13.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-14.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-15.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-16.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-17.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-18.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-2.js50
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-3.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-4.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-5.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-6.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-7.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-8.js38
-rw-r--r--test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-9.js38
22 files changed, 855 insertions, 0 deletions
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-1.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-1.js
new file mode 100644
index 000000000..3cc66e40b
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-1.js
@@ -0,0 +1,34 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-0-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-1.js",
+
+description: "Object.getPrototypeOf must exist as a function",
+
+test: function testcase() {
+ if (typeof(Object.getPrototypeOf) === "function") {
+ return true;
+ }
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-2.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-2.js
new file mode 100644
index 000000000..6450e9dfb
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-2.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-0-2",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-2.js",
+
+description: "Object.getPrototypeOf must exist as a function taking 1 parameter",
+
+test: function testcase() {
+ if (Object.getPrototypeOf.length === 1) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-3.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-3.js
new file mode 100644
index 000000000..26ce20d37
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-3.js
@@ -0,0 +1,44 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-0-3",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-0-3.js",
+
+description: "Object.getPrototypeOf must take 1 parameter",
+
+test: function testcase() {
+ try
+ {
+ Object.getPrototypeOf();
+ }
+ catch(e)
+ {
+ if(e instanceof TypeError)
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-1.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-1.js
new file mode 100644
index 000000000..a6ba39d1f
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-1.js
@@ -0,0 +1,43 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-1.js",
+
+description: "Object.getPrototypeOf throws TypeError if type of first param is not Object",
+
+test: function testcase() {
+ try {
+ Object.getPrototypeOf(0);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-1.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-1.js
new file mode 100644
index 000000000..02dc62bbb
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-1.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-1.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Boolean)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Boolean) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-10.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-10.js
new file mode 100644
index 000000000..b26af5691
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-10.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-10",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-10.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (RegExp)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(RegExp) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js
new file mode 100644
index 000000000..e8c680cdb
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-11",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Error)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Error) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-12.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-12.js
new file mode 100644
index 000000000..49e1ec018
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-12.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-12",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-12.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (EvalError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(EvalError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-13.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-13.js
new file mode 100644
index 000000000..ec9b7e820
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-13.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-13",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-13.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (RangeError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(RangeError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-14.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-14.js
new file mode 100644
index 000000000..8267ce133
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-14.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-14",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-14.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (ReferenceError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(ReferenceError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-15.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-15.js
new file mode 100644
index 000000000..a359d4bb4
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-15.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-15",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-15.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (SyntaxError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(SyntaxError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-16.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-16.js
new file mode 100644
index 000000000..55fd850aa
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-16.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-16",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-16.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (TypeError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(TypeError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-17.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-17.js
new file mode 100644
index 000000000..96bdc12ab
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-17.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-17",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-17.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (URIError)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(URIError) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-18.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-18.js
new file mode 100644
index 000000000..cc3e28280
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-18.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-18",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-18.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (JSON)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(JSON) === Object.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-2.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-2.js
new file mode 100644
index 000000000..4b76f1a0c
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-2.js
@@ -0,0 +1,50 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+/*
+Let 'x' be the return value from getPrototypeOf when called on d.
+Then, x.isPrototypeOf(d) must be true.
+*/
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-2",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-2.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (custom object)",
+
+test: function testcase() {
+ function base() {}
+
+ function derived() {}
+ derived.prototype = new base();
+
+ var d = new derived();
+ var x = Object.getPrototypeOf(d);
+ if (x.isPrototypeOf(d) === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-3.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-3.js
new file mode 100644
index 000000000..606651f9c
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-3.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-3",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-3.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Object)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Object) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-4.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-4.js
new file mode 100644
index 000000000..486423d3e
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-4.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-4",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-4.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Function)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Function) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-5.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-5.js
new file mode 100644
index 000000000..9b6c64504
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-5.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-5",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-5.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Array)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Array) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-6.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-6.js
new file mode 100644
index 000000000..ea5afc3c6
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-6.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-6",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-6.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (String)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(String) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-7.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-7.js
new file mode 100644
index 000000000..d7d83fbff
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-7.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-7",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-7.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Number)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Number) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-8.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-8.js
new file mode 100644
index 000000000..44b2006c4
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-8.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-8",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-8.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Math)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Math) === Object.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});
diff --git a/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-9.js b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-9.js
new file mode 100644
index 000000000..0b2b5d5d5
--- /dev/null
+++ b/test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-9.js
@@ -0,0 +1,38 @@
+/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.2-2-9",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-9.js",
+
+description: "Object.getPrototypeOf returns the [[Prototype]] of its parameter (Date)",
+
+test: function testcase() {
+ if (Object.getPrototypeOf(Date) === Function.prototype) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getPrototypeOf);
+ }
+});