diff options
Diffstat (limited to 'external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3')
313 files changed, 13455 insertions, 0 deletions
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js new file mode 100644 index 000000000..27bfcd3e7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-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.3-0-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js",
+
+description: "Object.getOwnPropertyDescriptor must exist as a function",
+
+test: function testcase() {
+ if (typeof(Object.getOwnPropertyDescriptor) === "function") {
+ return true;
+ }
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js new file mode 100644 index 000000000..b010be22c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-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.3-0-2",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js",
+
+description: "Object.getOwnPropertyDescriptor must exist as a function taking 2 parameters",
+
+test: function testcase() {
+ if (Object.getOwnPropertyDescriptor.length === 2) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js new file mode 100644 index 000000000..b130bb8cd --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js @@ -0,0 +1,40 @@ +/// 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.3-1-1",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js",
+
+ description: "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is undefined",
+
+ test: function testcase() {
+ try {
+ Object.getOwnPropertyDescriptor(undefined, "foo");
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js new file mode 100644 index 000000000..429f41ba0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js @@ -0,0 +1,40 @@ +/// 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.3-1-2",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js",
+
+ description: "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is null",
+
+ test: function testcase() {
+ try {
+ Object.getOwnPropertyDescriptor(null, "foo");
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js new file mode 100644 index 000000000..e2a26a67f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js @@ -0,0 +1,40 @@ +/// 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.3-1-3",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js",
+
+ description: "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a boolean",
+
+ test: function testcase() {
+ try {
+ Object.getOwnPropertyDescriptor(true, "foo");
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js new file mode 100644 index 000000000..d6f33d8da --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js @@ -0,0 +1,40 @@ +/// 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.3-1-4",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js",
+
+ description: "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a number",
+
+ test: function testcase() {
+ try {
+ Object.getOwnPropertyDescriptor(-2, "foo");
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js new file mode 100644 index 000000000..c4a916318 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-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.3-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js",
+
+description: "Object.getOwnPropertyDescriptor throws TypeError if type of first param is not Object",
+
+test: function testcase() {
+ try {
+ Object.getOwnPropertyDescriptor(0, "foo");
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js new file mode 100644 index 000000000..5b8d6a239 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js @@ -0,0 +1,40 @@ +/// 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.3-2-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for undefined property name",
+
+test: function testcase() {
+ var o = {};
+ var desc = Object.getOwnPropertyDescriptor(o, undefined);
+ if (desc === undefined) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js new file mode 100644 index 000000000..4aa6efc1d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js @@ -0,0 +1,40 @@ +/// 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.3-2-10",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -0)",
+
+ test: function testcase() {
+ var obj = { "0": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, -0);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js new file mode 100644 index 000000000..aeb965747 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js @@ -0,0 +1,40 @@ +/// 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.3-2-11",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is positive number)",
+
+ test: function testcase() {
+ var obj = { "30": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 30);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js new file mode 100644 index 000000000..1a6fc4c75 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js @@ -0,0 +1,40 @@ +/// 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.3-2-12",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is negative number)",
+
+ test: function testcase() {
+ var obj = { "-20": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, -20);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js new file mode 100644 index 000000000..a6a93e7cc --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js @@ -0,0 +1,40 @@ +/// 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.3-2-13",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is Infinity)",
+
+ test: function testcase() {
+ var obj = { "Infinity": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, Infinity);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js new file mode 100644 index 000000000..f635151ff --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js @@ -0,0 +1,40 @@ +/// 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.3-2-14",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +Infinity)",
+
+ test: function testcase() {
+ var obj = { "Infinity": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, +Infinity);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js new file mode 100644 index 000000000..df7e712ee --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js @@ -0,0 +1,40 @@ +/// 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.3-2-15",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -Infinity)",
+
+ test: function testcase() {
+ var obj = { "-Infinity": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, -Infinity);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js new file mode 100644 index 000000000..2384c03d4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js @@ -0,0 +1,40 @@ +/// 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.3-2-16",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 20 zeros))",
+
+ test: function testcase() {
+ var obj = { "100000000000000000000": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js new file mode 100644 index 000000000..78b154fa9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js @@ -0,0 +1,40 @@ +/// 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.3-2-17",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 21 zeros))",
+
+ test: function testcase() {
+ var obj = { "1e+21": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js new file mode 100644 index 000000000..5e9648abe --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js @@ -0,0 +1,40 @@ +/// 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.3-2-18",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 22 zeros))",
+
+ test: function testcase() {
+ var obj = { "1e+22": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js new file mode 100644 index 000000000..65b1d73a9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js @@ -0,0 +1,40 @@ +/// 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.3-2-19",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+20)",
+
+ test: function testcase() {
+ var obj = { "100000000000000000000": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e+20);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js new file mode 100644 index 000000000..680af9666 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js @@ -0,0 +1,40 @@ +/// 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.3-2-2",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for null property name",
+
+test: function testcase() {
+ var o = {};
+ var desc = Object.getOwnPropertyDescriptor(o, null);
+ if (desc === undefined) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js new file mode 100644 index 000000000..37f4dc087 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js @@ -0,0 +1,40 @@ +/// 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.3-2-20",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to string (value is 1e+21)",
+
+ test: function testcase() {
+ var obj = { "1e+21": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e+21);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js new file mode 100644 index 000000000..2312cbd48 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js @@ -0,0 +1,40 @@ +/// 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.3-2-21",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+22)",
+
+ test: function testcase() {
+ var obj = { "1e+22": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e+22);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js new file mode 100644 index 000000000..accb380a8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js @@ -0,0 +1,40 @@ +/// 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.3-2-22",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.000001)",
+
+ test: function testcase() {
+ var obj = { "0.000001": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 0.000001);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js new file mode 100644 index 000000000..957a21aea --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js @@ -0,0 +1,40 @@ +/// 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.3-2-23",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.0000001)",
+
+ test: function testcase() {
+ var obj = { "1e-7": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js new file mode 100644 index 000000000..955f67e20 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js @@ -0,0 +1,40 @@ +/// 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.3-2-24",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.00000001)",
+
+ test: function testcase() {
+ var obj = { "1e-8": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js new file mode 100644 index 000000000..b76af6eb1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js @@ -0,0 +1,40 @@ +/// 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.3-2-25",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-7)",
+
+ test: function testcase() {
+ var obj = { "1e-7": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e-7);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js new file mode 100644 index 000000000..0ee1a57d6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js @@ -0,0 +1,40 @@ +/// 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.3-2-26",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-6)",
+
+ test: function testcase() {
+ var obj = { "0.000001": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e-6);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js new file mode 100644 index 000000000..7b621b1db --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js @@ -0,0 +1,40 @@ +/// 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.3-2-27",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-5)",
+
+ test: function testcase() {
+ var obj = { "0.00001": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1e-5);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js new file mode 100644 index 000000000..74a9273df --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js @@ -0,0 +1,40 @@ +/// 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.3-2-28",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an integer that converts to a string (value is 123)",
+
+ test: function testcase() {
+ var obj = { "123": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 123);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js new file mode 100644 index 000000000..8a6e56fc4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js @@ -0,0 +1,40 @@ +/// 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.3-2-29",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a decimal that converts to a string (value is 123.456)",
+
+ test: function testcase() {
+ var obj = { "123.456": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 123.456);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js new file mode 100644 index 000000000..e23d33c3a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js @@ -0,0 +1,41 @@ +/// 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.3-2-3",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is undefined",
+
+ test: function testcase() {
+ var obj = { "undefined": 1 };
+
+ var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined");
+
+ return desc1.value === 1 && desc2.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js new file mode 100644 index 000000000..c153425ac --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js @@ -0,0 +1,40 @@ +/// 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.3-2-30",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 100000000000000000000.123)",
+
+ test: function testcase() {
+ var obj = { "100000000000000000000": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123);
+
+ return typeof desc !== "undefined" && desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js new file mode 100644 index 000000000..ef3e4855e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js @@ -0,0 +1,40 @@ +/// 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.3-2-31",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 123.1234567)",
+
+ test: function testcase() {
+ var obj = { "123.1234567": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js new file mode 100644 index 000000000..eeb484acd --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js @@ -0,0 +1,40 @@ +/// 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.3-2-32",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to an empty string ",
+
+ test: function testcase() {
+ var obj = { "": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "");
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js new file mode 100644 index 000000000..c742fd781 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js @@ -0,0 +1,40 @@ +/// 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.3-2-33",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'AB\n\\cd' ",
+
+ test: function testcase() {
+ var obj = { "AB\n\\cd": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd");
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js new file mode 100644 index 000000000..0a15ccc8c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js @@ -0,0 +1,40 @@ +// 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.3-2-34",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'undefined' ",
+
+ test: function testcase() {
+ var obj = { "undefined": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "undefined");
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js new file mode 100644 index 000000000..52162a3a0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js @@ -0,0 +1,40 @@ +// 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.3-2-35",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'null' ",
+
+ test: function testcase() {
+ var obj = { "null": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "null");
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js new file mode 100644 index 000000000..f51fa9f44 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js @@ -0,0 +1,40 @@ +/// 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.3-2-36",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to string '123¦Á¦Â¦Ðcd' ",
+
+ test: function testcase() {
+ var obj = { "123¦Á¦Â¦Ðcd": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "123¦Á¦Â¦Ðcd");
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js new file mode 100644 index 000000000..d7e2be0bc --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js @@ -0,0 +1,40 @@ +/// 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.3-2-37",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is applied to string '1' ",
+
+ test: function testcase() {
+ var obj = { "1": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 1);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js new file mode 100644 index 000000000..75336850c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js @@ -0,0 +1,40 @@ +/// 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.3-2-38",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an array that converts to a string",
+
+ test: function testcase() {
+ var obj = { "1": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, [1]);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js new file mode 100644 index 000000000..6d7ec7add --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js @@ -0,0 +1,40 @@ +/// 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.3-2-39",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a String Object that converts to a string",
+
+ test: function testcase() {
+ var obj = { "Hello": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello"));
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js new file mode 100644 index 000000000..1255cf83d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js @@ -0,0 +1,40 @@ +/// 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.3-2-4",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is null that converts to string 'null'",
+
+ test: function testcase() {
+ var obj = { "null": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, null);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js new file mode 100644 index 000000000..7b4334c41 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js @@ -0,0 +1,40 @@ +/// 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.3-2-40",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a Boolean Object that converts to a string",
+
+ test: function testcase() {
+ var obj = { "true": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true));
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js new file mode 100644 index 000000000..99f516430 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js @@ -0,0 +1,40 @@ +/// 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.3-2-41",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a Number Object that converts to a string",
+
+ test: function testcase() {
+ var obj = { "123": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, new Number(123));
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js new file mode 100644 index 000000000..3c2436687 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js @@ -0,0 +1,46 @@ +/// 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.3-2-42",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString method",
+
+ test: function testcase() {
+ var obj = { "abc": 1 };
+
+ var ownProp = {
+ toString: function () {
+ return "abc";
+ }
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js new file mode 100644 index 000000000..03b6a9f6b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js @@ -0,0 +1,46 @@ +/// 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.3-2-43",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own valueOf method",
+
+ test: function testcase() {
+ var obj = { "[object Object]": 1, "abc" : 2 };
+
+ var ownProp = {
+ valueOf: function () {
+ return "abc";
+ }
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js new file mode 100644 index 000000000..c6f8e2c29 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js @@ -0,0 +1,53 @@ +/// 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.3-2-44",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an object that has an own toString method that returns an object and toValue method that returns a primitive value",
+
+ test: function testcase() {
+ var obj = { "abc": 1 };
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var ownProp = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function () {
+ valueOfAccessed = true;
+ return "abc";
+ }
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+
+ return desc.value === 1 && valueOfAccessed && toStringAccessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js new file mode 100644 index 000000000..6c15d0e01 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js @@ -0,0 +1,51 @@ +/// 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.3-2-45",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString and valueOf method",
+
+ test: function testcase() {
+ var obj = { "bbq": 1, "abc": 2 };
+ var valueOfAccessed = false;
+
+ var ownProp = {
+ toString: function () {
+ return "bbq";
+ },
+ valueOf: function () {
+ valueOfAccessed = true;
+ return "abc";
+ }
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+
+ return desc.value === 1 && !valueOfAccessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js new file mode 100644 index 000000000..46a55d835 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js @@ -0,0 +1,56 @@ +/// 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.3-2-46",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js",
+
+ description: "Object.getOwnPropertyDescriptor - TypeError exception was thrown when 'P' is an object that both toString and valueOf wouldn't return primitive value",
+
+ test: function testcase() {
+ var obj = { "1": 1 };
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+
+ var ownProp = {
+ toString: function () {
+ toStringAccessed = true;
+ return [1];
+ },
+ valueOf: function () {
+ valueOfAccessed = true;
+ return [1];
+ }
+ };
+
+ try {
+ Object.getOwnPropertyDescriptor(obj, ownProp);
+ return false;
+ } catch (e) {
+ return toStringAccessed && valueOfAccessed && e instanceof TypeError;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js new file mode 100644 index 000000000..ec82cdc42 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js @@ -0,0 +1,56 @@ +/// 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.3-2-47",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js",
+
+ description: "Object.getOwnPropertyDescriptor - uses inherited toString method when 'P' is an object with an own valueOf and inherited toString methods",
+
+ test: function testcase() {
+ var proto = {};
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ proto.toString = function () {
+ toStringAccessed = true;
+ return "test";
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.valueOf = function () {
+ valueOfAccessed = true;
+ return "10";
+ };
+ var obj = { "10": "length1", "test": "length2" };
+ var desc = Object.getOwnPropertyDescriptor(obj, child);
+
+ return desc.value === "length2" && toStringAccessed && !valueOfAccessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js new file mode 100644 index 000000000..cfd7bdecc --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js @@ -0,0 +1,40 @@ +/// 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.3-2-5",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is false",
+
+ test: function testcase() {
+ var obj = { "false": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, false);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js new file mode 100644 index 000000000..9248919c5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js @@ -0,0 +1,40 @@ +/// 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.3-2-6",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is true",
+
+ test: function testcase() {
+ var obj = { "true": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, true);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js new file mode 100644 index 000000000..e0e4f0056 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js @@ -0,0 +1,40 @@ +/// 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.3-2-7",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is NaN)",
+
+ test: function testcase() {
+ var obj = { "NaN": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, NaN);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js new file mode 100644 index 000000000..2215c24f7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js @@ -0,0 +1,40 @@ +/// 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.3-2-8",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0)",
+
+ test: function testcase() {
+ var obj = { "0": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, 0);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js new file mode 100644 index 000000000..9ce5fa03e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js @@ -0,0 +1,40 @@ +/// 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.3-2-9",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js",
+
+ description: "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +0)",
+
+ test: function testcase() {
+ var obj = { "0": 1 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, +0);
+
+ return desc.value === 1;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js new file mode 100644 index 000000000..ef7f99a1d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js @@ -0,0 +1,45 @@ +/// 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.3-3-1",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own data property",
+
+ test: function testcase() {
+
+ var obj = {
+ property: "ownDataProperty"
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.value === "ownDataProperty";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js new file mode 100644 index 000000000..8603dd156 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js @@ -0,0 +1,45 @@ +/// 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.3-3-10",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is not an existing property",
+
+ test: function testcase() {
+
+ var obj = {
+ property: "ownDataProperty"
+ };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist");
+
+ return typeof desc === "undefined";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js new file mode 100644 index 000000000..f9cf5dbf8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js @@ -0,0 +1,45 @@ +/// 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.3-3-13",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js",
+
+ description: "Object.getOwnPropertyDescriptor applied to the Arguments object which implements its own property get method",
+
+ test: function testcase() {
+
+ var arg = (function () {
+ return arguments;
+ }("ownProperty", true));
+
+ var desc = Object.getOwnPropertyDescriptor(arg, "0");
+
+ return desc.value === "ownProperty" && desc.writable === true && desc.enumerable === true && desc.configurable === true;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js new file mode 100644 index 000000000..6de937515 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.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.3-3-14",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js",
+
+ description: "Object.getOwnPropertyDescriptor applied to a String object which implements its own property get method",
+
+ test: function testcase() {
+
+ var str = new String("123");
+
+ var desc = Object.getOwnPropertyDescriptor(str, "2");
+
+ return desc.value === "3";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js new file mode 100644 index 000000000..d0fb91b05 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js @@ -0,0 +1,46 @@ +/// 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.3-3-15",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js",
+
+ description: "Object.getOwnPropertyDescriptor applied to a Function object which implements its own property get method",
+
+ test: function testcase() {
+
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "ownProperty";
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "1");
+
+ return desc.value === "ownProperty";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js new file mode 100644 index 000000000..31d51eb1f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-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.
+
+
+ES5Harness.registerTest({
+
+ id: "15.2.3.3-3-2",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is inherited data property",
+
+ test: function testcase() {
+
+ var proto = {
+ property: "inheritedDataProperty"
+ };
+
+ var Con = function () { };
+ Con.ptototype = proto;
+
+ var child = new Con();
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return typeof desc === "undefined";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js new file mode 100644 index 000000000..520572067 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js @@ -0,0 +1,51 @@ +/// 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.3-3-3",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited data property",
+
+ test: function testcase() {
+
+ var proto = {
+ property: "inheritedDataProperty"
+ };
+
+ var Con = function () { };
+ Con.ptototype = proto;
+
+ var child = new Con();
+ child.property = "ownDataProperty";
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return desc.value === "ownDataProperty";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js new file mode 100644 index 000000000..38158eb0c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js @@ -0,0 +1,58 @@ +/// 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.3-3-4",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited accessor property",
+
+ test: function testcase() {
+
+ var proto = {};
+ Object.defineProperty(proto, "property", {
+ get: function () {
+ return "inheritedDataProperty";
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.ptototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "property", {
+ value: "ownDataProperty",
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return desc.value === "ownDataProperty";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js new file mode 100644 index 000000000..d0b439142 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.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.
+
+
+ES5Harness.registerTest({
+
+ id: "15.2.3.3-3-5",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own accessor property",
+
+ test: function testcase() {
+
+ var obj = {};
+ var fun = function () {
+ return "ownAccessorProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.get === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js new file mode 100644 index 000000000..2610d8c50 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js @@ -0,0 +1,55 @@ +/// 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.3-3-6",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is inherited accessor property",
+
+ test: function testcase() {
+
+ var proto = {};
+ var fun = function () {
+ return "ownAccessorProperty";
+ };
+ Object.defineProperty(proto, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return typeof desc === "undefined";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js new file mode 100644 index 000000000..13da00c60 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js @@ -0,0 +1,57 @@ +/// 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.3-3-7",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited data property",
+
+ test: function testcase() {
+
+ var proto = {
+ property: "inheritedDataProperty"
+ };
+
+ var Con = function () { };
+ Con.ptototype = proto;
+
+ var child = new Con();
+ var fun = function () {
+ return "ownAccessorProperty";
+ };
+ Object.defineProperty(child, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return desc.get === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js new file mode 100644 index 000000000..b47bde25a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js @@ -0,0 +1,61 @@ +/// 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.3-3-8",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited accessor property",
+
+ test: function testcase() {
+
+ var proto = {};
+ Object.defineProperty(proto, "property", {
+ get: function () {
+ return "inheritedAccessorProperty";
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.ptototype = proto;
+
+ var child = new Con();
+ var fun = function () {
+ return "ownAccessorProperty";
+ };
+ Object.defineProperty(child, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(child, "property");
+
+ return desc.get === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js new file mode 100644 index 000000000..ff22efc8f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js @@ -0,0 +1,48 @@ +/// 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.3-3-9",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js",
+
+ description: "Object.getOwnPropertyDescriptor - 'P' is own accessor property without a get function",
+
+ test: function testcase() {
+
+ var obj = {};
+ var fun = function () { };
+ Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.set === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js new file mode 100644 index 000000000..ef7a09e0f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js @@ -0,0 +1,47 @@ +/// 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.3-4-1",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js",
+
+description: "Object.getOwnPropertyDescriptor returns an object representing a data desc for valid data valued properties",
+
+test: function testcase() {
+ var o = {};
+ o["foo"] = 101;
+
+ var desc = Object.getOwnPropertyDescriptor(o, "foo");
+ if (desc.value === 101 &&
+ desc.enumerable === true &&
+ desc.writable === true &&
+ desc.configurable === true &&
+ !desc.hasOwnProperty("get") &&
+ !desc.hasOwnProperty("set")) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js new file mode 100644 index 000000000..960e13a7e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.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.3-4-10",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURIComponent)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent");
+ if (desc.value === global.decodeURIComponent &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js new file mode 100644 index 000000000..51b2b2f16 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js @@ -0,0 +1,42 @@ +/// 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.3-4-100",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan2)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "atan2");
+ if (desc.value === Math.atan2 &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js new file mode 100644 index 000000000..e36db0b67 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js @@ -0,0 +1,42 @@ +/// 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.3-4-101",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.ceil)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "ceil");
+ if (desc.value === Math.ceil &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js new file mode 100644 index 000000000..e982caa3f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js @@ -0,0 +1,42 @@ +/// 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.3-4-102",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.cos)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "cos");
+ if (desc.value === Math.cos &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js new file mode 100644 index 000000000..90434835a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js @@ -0,0 +1,42 @@ +/// 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.3-4-103",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.exp)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "exp");
+ if (desc.value === Math.exp &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js new file mode 100644 index 000000000..aeb61877b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js @@ -0,0 +1,42 @@ +/// 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.3-4-104",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.floor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "floor");
+ if (desc.value === Math.floor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js new file mode 100644 index 000000000..92aa9ed72 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js @@ -0,0 +1,42 @@ +/// 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.3-4-105",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.log)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "log");
+ if (desc.value === Math.log &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js new file mode 100644 index 000000000..c88e27335 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js @@ -0,0 +1,42 @@ +/// 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.3-4-106",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.max)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "max");
+ if (desc.value === Math.max &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js new file mode 100644 index 000000000..65526d513 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js @@ -0,0 +1,42 @@ +/// 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.3-4-107",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.min)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "min");
+ if (desc.value === Math.min &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js new file mode 100644 index 000000000..b88fda14d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js @@ -0,0 +1,42 @@ +/// 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.3-4-108",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.pow)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "pow");
+ if (desc.value === Math.pow &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js new file mode 100644 index 000000000..64e618ef0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js @@ -0,0 +1,42 @@ +/// 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.3-4-109",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.random)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "random");
+ if (desc.value === Math.random &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js new file mode 100644 index 000000000..9124b5157 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.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.3-4-11",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.encodeURIComponent)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent");
+ if (desc.value === global.encodeURIComponent &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js new file mode 100644 index 000000000..7cb3b292a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js @@ -0,0 +1,42 @@ +/// 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.3-4-110",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.round)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "round");
+ if (desc.value === Math.round &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js new file mode 100644 index 000000000..a2c7310e4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js @@ -0,0 +1,42 @@ +/// 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.3-4-111",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sin)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "sin");
+ if (desc.value === Math.sin &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js new file mode 100644 index 000000000..084698770 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js @@ -0,0 +1,42 @@ +/// 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.3-4-112",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sqrt)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "sqrt");
+ if (desc.value === Math.sqrt &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js new file mode 100644 index 000000000..40e7cebab --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js @@ -0,0 +1,42 @@ +/// 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.3-4-113",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.tan)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "tan");
+ if (desc.value === Math.tan &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js new file mode 100644 index 000000000..d84f4b924 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js @@ -0,0 +1,42 @@ +/// 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.3-4-114",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.parse)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date, "parse");
+ if (desc.value === Date.parse &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js new file mode 100644 index 000000000..ee5e29808 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js @@ -0,0 +1,42 @@ +/// 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.3-4-115",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.UTC)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date, "UTC");
+ if (desc.value === Date.UTC &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js new file mode 100644 index 000000000..c1f984180 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js @@ -0,0 +1,42 @@ +/// 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.3-4-116",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor");
+ if (desc.value === Date.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js new file mode 100644 index 000000000..0273c68af --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js @@ -0,0 +1,42 @@ +/// 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.3-4-117",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTime)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime");
+ if (desc.value === Date.prototype.getTime &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js new file mode 100644 index 000000000..7b80eb896 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js @@ -0,0 +1,42 @@ +/// 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.3-4-118",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTimezoneOffset)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset");
+ if (desc.value === Date.prototype.getTimezoneOffset &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js new file mode 100644 index 000000000..7ecf206db --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js @@ -0,0 +1,42 @@ +/// 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.3-4-119",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear");
+ if (desc.value === Date.prototype.getYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js new file mode 100644 index 000000000..6725d1afe --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.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.3-4-12",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "escape");
+ if (desc.value === global.escape &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js new file mode 100644 index 000000000..4a768819b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js @@ -0,0 +1,42 @@ +/// 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.3-4-120",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getFullYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear");
+ if (desc.value === Date.prototype.getFullYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js new file mode 100644 index 000000000..dfa3888d8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js @@ -0,0 +1,42 @@ +/// 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.3-4-121",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMonth)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth");
+ if (desc.value === Date.prototype.getMonth &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js new file mode 100644 index 000000000..8a50ac81e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js @@ -0,0 +1,42 @@ +/// 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.3-4-122",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDate)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate");
+ if (desc.value === Date.prototype.getDate &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js new file mode 100644 index 000000000..e926c020e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js @@ -0,0 +1,42 @@ +/// 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.3-4-123",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDay)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay");
+ if (desc.value === Date.prototype.getDay &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js new file mode 100644 index 000000000..d40660d1f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js @@ -0,0 +1,42 @@ +/// 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.3-4-124",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getHours)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours");
+ if (desc.value === Date.prototype.getHours &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js new file mode 100644 index 000000000..36f5884ee --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js @@ -0,0 +1,42 @@ +/// 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.3-4-125",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMinutes)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes");
+ if (desc.value === Date.prototype.getMinutes &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js new file mode 100644 index 000000000..d495cc408 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js @@ -0,0 +1,42 @@ +/// 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.3-4-126",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getSeconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds");
+ if (desc.value === Date.prototype.getSeconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js new file mode 100644 index 000000000..b66b9eda2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js @@ -0,0 +1,42 @@ +/// 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.3-4-127",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMilliseconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds");
+ if (desc.value === Date.prototype.getMilliseconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js new file mode 100644 index 000000000..31cb53eaf --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js @@ -0,0 +1,42 @@ +/// 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.3-4-128",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCFullYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear");
+ if (desc.value === Date.prototype.getUTCFullYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js new file mode 100644 index 000000000..ad332c81f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js @@ -0,0 +1,42 @@ +/// 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.3-4-129",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMonth)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth");
+ if (desc.value === Date.prototype.getUTCMonth &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js new file mode 100644 index 000000000..af10969b6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.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.3-4-13",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "unescape");
+ if (desc.value === global.unescape &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js new file mode 100644 index 000000000..ac1e39469 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js @@ -0,0 +1,42 @@ +/// 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.3-4-130",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDate)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate");
+ if (desc.value === Date.prototype.getUTCDate &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js new file mode 100644 index 000000000..49d3904aa --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js @@ -0,0 +1,42 @@ +/// 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.3-4-131",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDay)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay");
+ if (desc.value === Date.prototype.getUTCDay &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js new file mode 100644 index 000000000..91a2bcb27 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js @@ -0,0 +1,42 @@ +/// 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.3-4-132",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCHours)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours");
+ if (desc.value === Date.prototype.getUTCHours &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js new file mode 100644 index 000000000..e73888196 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js @@ -0,0 +1,42 @@ +/// 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.3-4-133",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMinutes)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes");
+ if (desc.value === Date.prototype.getUTCMinutes &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js new file mode 100644 index 000000000..68ec67538 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js @@ -0,0 +1,42 @@ +/// 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.3-4-134",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCSeconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds");
+ if (desc.value === Date.prototype.getUTCSeconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js new file mode 100644 index 000000000..72a8bf579 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js @@ -0,0 +1,42 @@ +/// 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.3-4-135",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMilliseconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds");
+ if (desc.value === Date.prototype.getUTCMilliseconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js new file mode 100644 index 000000000..77b9b1050 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js @@ -0,0 +1,42 @@ +/// 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.3-4-136",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setTime)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime");
+ if (desc.value === Date.prototype.setTime &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js new file mode 100644 index 000000000..b7298cbf6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js @@ -0,0 +1,42 @@ +/// 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.3-4-137",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear");
+ if (desc.value === Date.prototype.setYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js new file mode 100644 index 000000000..b39fb1528 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js @@ -0,0 +1,42 @@ +/// 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.3-4-138",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setFullYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear");
+ if (desc.value === Date.prototype.setFullYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js new file mode 100644 index 000000000..d858127c0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js @@ -0,0 +1,42 @@ +/// 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.3-4-139",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMonth)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth");
+ if (desc.value === Date.prototype.setMonth &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js new file mode 100644 index 000000000..997ff5d48 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js @@ -0,0 +1,42 @@ +/// 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.3-4-14",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getPrototypeOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
+ if (desc.value === Object.getPrototypeOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js new file mode 100644 index 000000000..0cc04867c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js @@ -0,0 +1,42 @@ +/// 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.3-4-140",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setDate)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate");
+ if (desc.value === Date.prototype.setDate &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js new file mode 100644 index 000000000..383636792 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js @@ -0,0 +1,42 @@ +/// 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.3-4-141",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setHours)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours");
+ if (desc.value === Date.prototype.setHours &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js new file mode 100644 index 000000000..40d23a33e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js @@ -0,0 +1,42 @@ +/// 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.3-4-142",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMinutes)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes");
+ if (desc.value === Date.prototype.setMinutes &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js new file mode 100644 index 000000000..f1928388e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js @@ -0,0 +1,42 @@ +/// 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.3-4-143",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setSeconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds");
+ if (desc.value === Date.prototype.setSeconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js new file mode 100644 index 000000000..be4e0e9f3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js @@ -0,0 +1,42 @@ +/// 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.3-4-144",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMilliseconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds");
+ if (desc.value === Date.prototype.setMilliseconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js new file mode 100644 index 000000000..911e52f9e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js @@ -0,0 +1,42 @@ +/// 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.3-4-145",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCFullYear)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear");
+ if (desc.value === Date.prototype.setUTCFullYear &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js new file mode 100644 index 000000000..a613062d3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js @@ -0,0 +1,42 @@ +/// 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.3-4-146",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMonth)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth");
+ if (desc.value === Date.prototype.setUTCMonth &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js new file mode 100644 index 000000000..bfa3f2f9e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js @@ -0,0 +1,42 @@ +/// 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.3-4-147",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCDate)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate");
+ if (desc.value === Date.prototype.setUTCDate &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js new file mode 100644 index 000000000..f0d5c805c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js @@ -0,0 +1,42 @@ +/// 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.3-4-148",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCHours)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours");
+ if (desc.value === Date.prototype.setUTCHours &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js new file mode 100644 index 000000000..ef25c3f38 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js @@ -0,0 +1,42 @@ +/// 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.3-4-149",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMinutes)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes");
+ if (desc.value === Date.prototype.setUTCMinutes &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js new file mode 100644 index 000000000..a963e8ac8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js @@ -0,0 +1,42 @@ +/// 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.3-4-15",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyDescriptor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
+ if (desc.value === Object.getOwnPropertyDescriptor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js new file mode 100644 index 000000000..68ca70310 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js @@ -0,0 +1,42 @@ +/// 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.3-4-150",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCSeconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds");
+ if (desc.value === Date.prototype.setUTCSeconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js new file mode 100644 index 000000000..877d514e9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js @@ -0,0 +1,42 @@ +/// 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.3-4-151",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMilliseconds)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds");
+ if (desc.value === Date.prototype.setUTCMilliseconds &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js new file mode 100644 index 000000000..d4859c049 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js @@ -0,0 +1,42 @@ +/// 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.3-4-152",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString");
+ if (desc.value === Date.prototype.toLocaleString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js new file mode 100644 index 000000000..16ab486cb --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js @@ -0,0 +1,42 @@ +/// 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.3-4-153",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString");
+ if (desc.value === Date.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js new file mode 100644 index 000000000..a01eeb85e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js @@ -0,0 +1,42 @@ +/// 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.3-4-154",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toUTCString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString");
+ if (desc.value === Date.prototype.toUTCString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js new file mode 100644 index 000000000..3dc0b762e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js @@ -0,0 +1,42 @@ +/// 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.3-4-155",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toGMTString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString");
+ if (desc.value === Date.prototype.toGMTString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js new file mode 100644 index 000000000..8b0ff0bd5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js @@ -0,0 +1,42 @@ +/// 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.3-4-156",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toTimeString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString");
+ if (desc.value === Date.prototype.toTimeString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js new file mode 100644 index 000000000..6ba84bc5f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js @@ -0,0 +1,42 @@ +/// 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.3-4-157",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toDateString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString");
+ if (desc.value === Date.prototype.toDateString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js new file mode 100644 index 000000000..ffbf4efec --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js @@ -0,0 +1,42 @@ +/// 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.3-4-158",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleDateString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString");
+ if (desc.value === Date.prototype.toLocaleDateString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js new file mode 100644 index 000000000..8cecf6122 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js @@ -0,0 +1,42 @@ +/// 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.3-4-159",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleTimeString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString");
+ if (desc.value === Date.prototype.toLocaleTimeString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js new file mode 100644 index 000000000..f08e4a8e1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js @@ -0,0 +1,42 @@ +/// 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.3-4-16",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyNames)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
+ if (desc.value === Object.getOwnPropertyNames &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js new file mode 100644 index 000000000..2877eb6e9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js @@ -0,0 +1,42 @@ +/// 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.3-4-160",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.valueOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf");
+ if (desc.value === Date.prototype.valueOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js new file mode 100644 index 000000000..b285e9a50 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js @@ -0,0 +1,42 @@ +/// 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.3-4-161",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toISOString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
+ if (desc.value === Date.prototype.toISOString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js new file mode 100644 index 000000000..850d42e4b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js @@ -0,0 +1,42 @@ +/// 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.3-4-162",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toJSON)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
+ if (desc.value === Date.prototype.toJSON &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js new file mode 100644 index 000000000..a300d3921 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js @@ -0,0 +1,42 @@ +/// 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.3-4-163",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor");
+ if (desc.value === RegExp.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-164.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-164.js new file mode 100644 index 000000000..3bb0fee23 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-164.js @@ -0,0 +1,42 @@ +/// 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.3-4-164",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-164.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.compile)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile");
+ if (desc.value === RegExp.prototype.compile &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js new file mode 100644 index 000000000..a9973a199 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js @@ -0,0 +1,42 @@ +/// 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.3-4-165",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.exec)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec");
+ if (desc.value === RegExp.prototype.exec &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js new file mode 100644 index 000000000..0946f3c48 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js @@ -0,0 +1,42 @@ +/// 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.3-4-166",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.test)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test");
+ if (desc.value === RegExp.prototype.test &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js new file mode 100644 index 000000000..9f5b072d7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js @@ -0,0 +1,42 @@ +/// 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.3-4-167",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString");
+ if (desc.value === RegExp.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js new file mode 100644 index 000000000..05761d4c5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js @@ -0,0 +1,42 @@ +/// 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.3-4-168",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor");
+ if (desc.value === Error.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js new file mode 100644 index 000000000..32c65e798 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js @@ -0,0 +1,42 @@ +/// 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.3-4-169",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString");
+ if (desc.value === Error.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js new file mode 100644 index 000000000..bba6888e2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js @@ -0,0 +1,42 @@ +/// 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.3-4-17",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.create)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "create");
+ if (desc.value === Object.create &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js new file mode 100644 index 000000000..d59a21b9e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js @@ -0,0 +1,42 @@ +/// 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.3-4-170",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (EvalError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor");
+ if (desc.value === EvalError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js new file mode 100644 index 000000000..75c0ae8a1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js @@ -0,0 +1,42 @@ +/// 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.3-4-171",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RangeError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor");
+ if (desc.value === RangeError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js new file mode 100644 index 000000000..381faa5cc --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js @@ -0,0 +1,42 @@ +/// 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.3-4-172",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (ReferenceError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor");
+ if (desc.value === ReferenceError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js new file mode 100644 index 000000000..65b94c947 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js @@ -0,0 +1,42 @@ +/// 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.3-4-173",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (SyntaxError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor");
+ if (desc.value === SyntaxError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js new file mode 100644 index 000000000..1d7af99c6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js @@ -0,0 +1,42 @@ +/// 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.3-4-174",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (TypeError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor");
+ if (desc.value === TypeError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js new file mode 100644 index 000000000..388b5d620 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js @@ -0,0 +1,42 @@ +/// 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.3-4-175",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (URIError.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor");
+ if (desc.value === URIError.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js new file mode 100644 index 000000000..869f49832 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js @@ -0,0 +1,42 @@ +/// 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.3-4-176",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.stringify)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(JSON, "stringify");
+ if (desc.value === JSON.stringify &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js new file mode 100644 index 000000000..b58514a12 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js @@ -0,0 +1,42 @@ +/// 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.3-4-177",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.parse)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(JSON, "parse");
+ if (desc.value === JSON.parse &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js new file mode 100644 index 000000000..530e57f0c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js @@ -0,0 +1,46 @@ +/// 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.3-4-178",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.NaN)",
+
+test: function testcase() {
+ // in non-strict mode, 'this' is bound to the global object.
+ var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "NaN");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ return false;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js new file mode 100644 index 000000000..8856cb477 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js @@ -0,0 +1,46 @@ +/// 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.3-4-179",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.Infinity)",
+
+test: function testcase() {
+ // in non-strict mode, 'this' is bound to the global object.
+ var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "Infinity");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ return false;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js new file mode 100644 index 000000000..d324572a2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js @@ -0,0 +1,42 @@ +/// 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.3-4-18",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperty)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
+ if (desc.value === Object.defineProperty &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js new file mode 100644 index 000000000..7e0f1d834 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js @@ -0,0 +1,46 @@ +/// 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.3-4-180",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.undefined)",
+
+test: function testcase() {
+ // in non-strict mode, 'this' is bound to the global object.
+ var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), "undefined");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ return false;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js new file mode 100644 index 000000000..ae85d7815 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.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.3-4-182",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Object.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js new file mode 100644 index 000000000..7b5d5406d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js @@ -0,0 +1,41 @@ +/// 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.3-4-183",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for non-existent property (arguments_1) on built-in object (Function)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1");
+
+ if (desc === undefined)
+ return true;
+ else
+ return false;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js new file mode 100644 index 000000000..e468d85a9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js @@ -0,0 +1,41 @@ +/// 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.3-4-184",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for non-existent property (caller) on built-in object (Math)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "caller");
+
+ if (desc === undefined)
+ return true;
+ else
+ return false;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js new file mode 100644 index 000000000..d6aef42ee --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.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.3-4-185",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js new file mode 100644 index 000000000..3b84f9f44 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.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.3-4-186",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.length)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js new file mode 100644 index 000000000..a7da8084d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js @@ -0,0 +1,46 @@ +/// 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.3-4-187",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function (instance).length)",
+
+test: function testcase() {
+ var f = Function('return 42;');
+
+ var desc = Object.getOwnPropertyDescriptor(f, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js new file mode 100644 index 000000000..c06620f6c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.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.3-4-188",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for non-existent properties on built-ins (Function (instance).name)",
+
+test: function testcase() {
+ var f = Function('return 42;');
+ var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist");
+ return desc === undefined;
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js new file mode 100644 index 000000000..a97db44d8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.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.3-4-189",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Array.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js new file mode 100644 index 000000000..87eb7466a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js @@ -0,0 +1,42 @@ +/// 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.3-4-19",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperties)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
+ if (desc.value === Object.defineProperties &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js new file mode 100644 index 000000000..8d620c7d9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.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.3-4-190",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js new file mode 100644 index 000000000..6728101da --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.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.3-4-191",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.length)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js new file mode 100644 index 000000000..7d3599e2a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js @@ -0,0 +1,45 @@ +/// 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.3-4-192",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String (instance).length)",
+
+test: function testcase() {
+ var s = new String("abc");
+ var desc = Object.getOwnPropertyDescriptor(s, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js new file mode 100644 index 000000000..d8605339a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.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.3-4-193",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js new file mode 100644 index 000000000..b9a78a96d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.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.3-4-194",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.length)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Boolean, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js new file mode 100644 index 000000000..0d5d9eda0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.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.3-4-195",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js new file mode 100644 index 000000000..947e6fe69 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.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.3-4-196",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MAX_VALUE)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js new file mode 100644 index 000000000..520917660 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.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.3-4-197",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MIN_VALUE)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js new file mode 100644 index 000000000..e9c17eab0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.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.3-4-198",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NaN)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "NaN");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js new file mode 100644 index 000000000..234bf89fe --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.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.3-4-199",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NEGATIVE_INFINITY)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js new file mode 100644 index 000000000..8bbe753d4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js @@ -0,0 +1,41 @@ +/// 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.3-4-2",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js",
+
+description: "Object.getOwnPropertyDescriptor returns undefined for non-existent properties",
+
+test: function testcase() {
+ var o = {};
+
+ var desc = Object.getOwnPropertyDescriptor(o, "foo");
+ if (desc === undefined) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js new file mode 100644 index 000000000..792671541 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js @@ -0,0 +1,42 @@ +/// 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.3-4-20",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.seal)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "seal");
+ if (desc.value === Object.seal &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js new file mode 100644 index 000000000..58b091dee --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.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.3-4-200",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.POSITIVE_INFINITY)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js new file mode 100644 index 000000000..8702e73a6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.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.3-4-201",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.length)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number, "length");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js new file mode 100644 index 000000000..2f974250d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.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.3-4-202",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.E)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "E");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js new file mode 100644 index 000000000..adef1b1b6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.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.3-4-203",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN10)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "LN10");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js new file mode 100644 index 000000000..64b0b5dad --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.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.3-4-204",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN2)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "LN2");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js new file mode 100644 index 000000000..20789ac36 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.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.3-4-205",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG2E)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js new file mode 100644 index 000000000..3e6d05d11 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.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.3-4-206",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG10E)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js new file mode 100644 index 000000000..adf65bdb3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.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.3-4-207",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.PI)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "PI");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js new file mode 100644 index 000000000..32fefe0e1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.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.3-4-208",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT1_2)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js new file mode 100644 index 000000000..f2f34dc6e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.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.3-4-209",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT2)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js new file mode 100644 index 000000000..e4ec40443 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js @@ -0,0 +1,42 @@ +/// 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.3-4-21",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.freeze)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
+ if (desc.value === Object.freeze &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js new file mode 100644 index 000000000..f378201c6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.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.3-4-210",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Date.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Date, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js new file mode 100644 index 000000000..935519b79 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.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.3-4-211",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js new file mode 100644 index 000000000..331f57019 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.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.3-4-212",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.source)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js new file mode 100644 index 000000000..d9343172f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.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.3-4-213",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.global)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js new file mode 100644 index 000000000..7ae0cc17f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.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.3-4-214",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.ignoreCase)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js new file mode 100644 index 000000000..d7bb4e1b8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.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.3-4-215",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.multiline)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js new file mode 100644 index 000000000..5158c5e67 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.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.3-4-216",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Error.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Error, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js new file mode 100644 index 000000000..a79426074 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.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.3-4-217",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (EvalError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js new file mode 100644 index 000000000..7669c3666 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.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.3-4-218",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RangeError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js new file mode 100644 index 000000000..2e2df4432 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.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.3-4-219",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (ReferenceError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js new file mode 100644 index 000000000..429d4d4a7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js @@ -0,0 +1,42 @@ +/// 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.3-4-22",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.preventExtensions)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
+ if (desc.value === Object.preventExtensions &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js new file mode 100644 index 000000000..037a6e643 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.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.3-4-220",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (SyntaxError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js new file mode 100644 index 000000000..cb6aa975c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.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.3-4-221",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (TypeError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js new file mode 100644 index 000000000..86d5e0c01 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.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.3-4-222",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (URIError.prototype)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(URIError, "prototype");
+
+ if (desc.writable === false &&
+ desc.enumerable === false &&
+ desc.configurable === false &&
+ desc.hasOwnProperty('get') === false &&
+ desc.hasOwnProperty('set') === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js new file mode 100644 index 000000000..6f8956921 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js @@ -0,0 +1,40 @@ +/// 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.3-4-223",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.value === "ownDataProperty";
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js new file mode 100644 index 000000000..6d0875950 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js @@ -0,0 +1,45 @@ +/// 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.3-4-224",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.value = "overwriteDataProperty";
+ return desc.value === "overwriteDataProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js new file mode 100644 index 000000000..5375e5b93 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js @@ -0,0 +1,47 @@ +/// 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.3-4-225",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var prop in desc) {
+ if (prop === "value") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js new file mode 100644 index 000000000..61e290acd --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js @@ -0,0 +1,49 @@ +/// 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.3-4-226",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = "value" in desc;
+
+ try {
+ delete desc.value;
+ var propDeleted = "value" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js new file mode 100644 index 000000000..f890b6b04 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js @@ -0,0 +1,40 @@ +/// 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.3-4-227",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.writable === true;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js new file mode 100644 index 000000000..47ee8cd38 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js @@ -0,0 +1,45 @@ + /// 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.3-4-228",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.writable = "overwriteDataProperty";
+ return desc.writable === "overwriteDataProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js new file mode 100644 index 000000000..60a8ac9b1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js @@ -0,0 +1,47 @@ +/// 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.3-4-229",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var props in desc) {
+ if (props === "writable") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js new file mode 100644 index 000000000..2743c3d9e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js @@ -0,0 +1,42 @@ +/// 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.3-4-23",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isSealed)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
+ if (desc.value === Object.isSealed &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js new file mode 100644 index 000000000..6810feb21 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js @@ -0,0 +1,49 @@ +/// 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.3-4-230",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = ("writable" in desc);
+
+ try {
+ delete desc.writable;
+ var propDeleted = "writable" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js new file mode 100644 index 000000000..fea636cd3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js @@ -0,0 +1,40 @@ +/// 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.3-4-231",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.enumerable === true;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js new file mode 100644 index 000000000..22335aaf7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js @@ -0,0 +1,45 @@ +/// 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.3-4-232",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.enumerable = "overwriteDataProperty";
+ return desc.enumerable === "overwriteDataProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js new file mode 100644 index 000000000..2ec00da50 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js @@ -0,0 +1,47 @@ +/// 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.3-4-233",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var props in desc) {
+ if (props === "enumerable") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js new file mode 100644 index 000000000..be24fb337 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js @@ -0,0 +1,49 @@ +/// 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.3-4-234",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = "enumerable" in desc;
+
+ try {
+ delete desc.enumerable;
+ var propDeleted = "enumerable" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js new file mode 100644 index 000000000..3cc810816 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js @@ -0,0 +1,40 @@ +/// 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.3-4-235",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.configurable === true;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js new file mode 100644 index 000000000..a8086bd85 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js @@ -0,0 +1,45 @@ +/// 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.3-4-236",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.writable = "overwriteDataProperty";
+ return desc.writable === "overwriteDataProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js new file mode 100644 index 000000000..e58a289f3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js @@ -0,0 +1,47 @@ +/// 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.3-4-237",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var prop in desc) {
+ if (prop === "configurable") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js new file mode 100644 index 000000000..83697eff4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js @@ -0,0 +1,49 @@ +/// 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.3-4-238",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = { "property": "ownDataProperty" };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = "configurable" in desc;
+
+ try {
+ delete desc.configurable;
+ var propDeleted = "configurable" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js new file mode 100644 index 000000000..3255baa39 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js @@ -0,0 +1,47 @@ +/// 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.3-4-239",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownDataProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.get === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js new file mode 100644 index 000000000..8a8f8be43 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js @@ -0,0 +1,42 @@ +/// 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.3-4-24",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isFrozen)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
+ if (desc.value === Object.isFrozen &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js new file mode 100644 index 000000000..4c8667ccb --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js @@ -0,0 +1,52 @@ +/// 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.3-4-240",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownGetProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.get = "overwriteGetProperty";
+ return desc.get === "overwriteGetProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js new file mode 100644 index 000000000..7268cbef1 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js @@ -0,0 +1,54 @@ +/// 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.3-4-241",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownDataProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var prop in desc) {
+ if (prop === "get") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js new file mode 100644 index 000000000..53f4de600 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js @@ -0,0 +1,56 @@ +/// 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.3-4-242",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownDataProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = "get" in desc;
+
+ try {
+ delete desc.get;
+ var propDeleted = "get" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js new file mode 100644 index 000000000..36f0b57ea --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js @@ -0,0 +1,47 @@ +/// 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.3-4-243",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'value' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownSetProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc.set === fun;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js new file mode 100644 index 000000000..c327020de --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js @@ -0,0 +1,52 @@ +/// 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.3-4-244",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'writable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownSetProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ try {
+ desc.set = "overwriteSetProperty";
+ return desc.set === "overwriteSetProperty";
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js new file mode 100644 index 000000000..1755f8f86 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js @@ -0,0 +1,54 @@ +/// 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.3-4-245",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'enumerable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownSetProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+ var accessed = false;
+
+ for (var prop in desc) {
+ if (prop === "set") {
+ accessed = true;
+ }
+ }
+
+ return accessed;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js new file mode 100644 index 000000000..da09e4cb7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js @@ -0,0 +1,56 @@ +/// 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.3-4-246",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js",
+
+ description: "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'configurable' attribute",
+
+ test: function testcase() {
+ var obj = {};
+ var fun = function () {
+ return "ownSetProperty";
+ };
+ Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ var propDefined = "set" in desc;
+
+ try {
+ delete desc.set;
+ var propDeleted = "set" in desc;
+
+ return propDefined && !propDeleted;
+ } catch (e) {
+ return false;
+ }
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js new file mode 100644 index 000000000..f44317407 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js @@ -0,0 +1,40 @@ +/// 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.3-4-247",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js",
+
+ description: "Object.getOwnPropertyDescriptor - returned value is an instance of object",
+
+ test: function testcase() {
+ var obj = { "property": 100 };
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return desc instanceof Object;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js new file mode 100644 index 000000000..0ccbc8990 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.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.3-4-248",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js",
+
+ description: "Object.getOwnPropertyDescriptor - returned object contains the property 'value' if the value of property 'value' is not explicitly specified when defined by Object.defineProperty",
+
+ test: function testcase() {
+ var obj = {};
+ Object.defineProperty(obj, "property", {
+ writable: true,
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return "value" in desc;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js new file mode 100644 index 000000000..f1b34e3c0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.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.3-4-249",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js",
+
+ description: "Object.getOwnPropertyDescriptor - returned object contains the property 'set' if the value of property 'set' is not explicitly specified when defined by Object.defineProperty.",
+
+ test: function testcase() {
+ var obj = {};
+ Object.defineProperty(obj, "property", {
+ get: function () { },
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return "set" in desc;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js new file mode 100644 index 000000000..8d03a82ae --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js @@ -0,0 +1,42 @@ +/// 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.3-4-25",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isExtensible)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
+ if (desc.value === Object.isExtensible &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js new file mode 100644 index 000000000..8d2685e83 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.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.3-4-250",
+
+ path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js",
+
+ description: "Object.getOwnPropertyDescriptor - returned object contains the property 'get' if the value of property 'get' is not explicitly specified when defined by Object.defineProperty.",
+
+ test: function testcase() {
+ var obj = {};
+ Object.defineProperty(obj, "property", {
+ set: function () {},
+ configurable: true
+ });
+
+ var desc = Object.getOwnPropertyDescriptor(obj, "property");
+
+ return "get" in desc;
+ },
+
+ precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js new file mode 100644 index 000000000..62b0ded17 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js @@ -0,0 +1,42 @@ +/// 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.3-4-26",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.keys)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object, "keys");
+ if (desc.value === Object.keys &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js new file mode 100644 index 000000000..7909e6fb4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js @@ -0,0 +1,42 @@ +/// 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.3-4-27",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
+ if (desc.value === Object.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js new file mode 100644 index 000000000..f7aa9e822 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js @@ -0,0 +1,42 @@ +/// 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.3-4-28",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString");
+ if (desc.value === Object.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js new file mode 100644 index 000000000..88109be10 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js @@ -0,0 +1,42 @@ +/// 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.3-4-29",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.valueOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf");
+ if (desc.value === Object.prototype.valueOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js new file mode 100644 index 000000000..db856cd5f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.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.
+
+
+ES5Harness.registerTest( {
+id: "15.2.3.3-4-3",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js",
+
+description: "Object.getOwnPropertyDescriptor returns an object representing an accessor desc for valid accessor properties",
+
+test: function testcase() {
+ var o = {};
+
+ // dummy getter
+ var getter = function () { return 1; }
+ var d = { get: getter };
+
+ Object.defineProperty(o, "foo", d);
+
+ var desc = Object.getOwnPropertyDescriptor(o, "foo");
+ if (desc.get === getter &&
+ desc.set === undefined &&
+ desc.enumerable === false &&
+ desc.configurable === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js new file mode 100644 index 000000000..b1f5bc632 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js @@ -0,0 +1,42 @@ +/// 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.3-4-30",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.isPrototypeOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf");
+ if (desc.value === Object.prototype.isPrototypeOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js new file mode 100644 index 000000000..38f207fb6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js @@ -0,0 +1,42 @@ +/// 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.3-4-31",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.hasOwnProperty)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty");
+ if (desc.value === Object.prototype.hasOwnProperty &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js new file mode 100644 index 000000000..5d9577740 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js @@ -0,0 +1,42 @@ +/// 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.3-4-32",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.propertyIsEnumerable)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable");
+ if (desc.value === Object.prototype.propertyIsEnumerable &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js new file mode 100644 index 000000000..d78954b2f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js @@ -0,0 +1,42 @@ +/// 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.3-4-33",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toLocaleString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString");
+ if (desc.value === Object.prototype.toLocaleString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js new file mode 100644 index 000000000..c0b79d39c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js @@ -0,0 +1,42 @@ +/// 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.3-4-34",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor");
+ if (desc.value === Function.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js new file mode 100644 index 000000000..13634976c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js @@ -0,0 +1,42 @@ +/// 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.3-4-35",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
+ if (desc.value === Function.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js new file mode 100644 index 000000000..86aad6109 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js @@ -0,0 +1,42 @@ +/// 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.3-4-36",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.apply)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply");
+ if (desc.value === Function.prototype.apply &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js new file mode 100644 index 000000000..ac3c4687c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js @@ -0,0 +1,42 @@ +/// 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.3-4-37",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.call)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call");
+ if (desc.value === Function.prototype.call &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js new file mode 100644 index 000000000..dc3820f72 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js @@ -0,0 +1,42 @@ +/// 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.3-4-38",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.bind)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
+ if (desc.value === Function.prototype.bind &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js new file mode 100644 index 000000000..a741f5de3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js @@ -0,0 +1,42 @@ +/// 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.3-4-39",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor");
+ if (desc.value === Array.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js new file mode 100644 index 000000000..0a4a3f345 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.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.3-4-4",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.eval)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "eval");
+ if (desc.value === global.eval &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js new file mode 100644 index 000000000..ece658254 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js @@ -0,0 +1,42 @@ +/// 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.3-4-40",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.concat)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat");
+ if (desc.value === Array.prototype.concat &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js new file mode 100644 index 000000000..d6203c8af --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js @@ -0,0 +1,42 @@ +/// 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.3-4-41",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.join)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join");
+ if (desc.value === Array.prototype.join &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js new file mode 100644 index 000000000..4cc861ced --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js @@ -0,0 +1,42 @@ +/// 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.3-4-42",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reverse)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse");
+ if (desc.value === Array.prototype.reverse &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js new file mode 100644 index 000000000..62ab79fe4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js @@ -0,0 +1,42 @@ +/// 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.3-4-43",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.slice)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice");
+ if (desc.value === Array.prototype.slice &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js new file mode 100644 index 000000000..83ae680e8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js @@ -0,0 +1,42 @@ +/// 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.3-4-44",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.sort)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort");
+ if (desc.value === Array.prototype.sort &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js new file mode 100644 index 000000000..f5010e58d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js @@ -0,0 +1,42 @@ +/// 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.3-4-45",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString");
+ if (desc.value === Array.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js new file mode 100644 index 000000000..9f22dac69 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js @@ -0,0 +1,42 @@ +/// 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.3-4-46",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.push)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push");
+ if (desc.value === Array.prototype.push &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js new file mode 100644 index 000000000..949db471c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js @@ -0,0 +1,42 @@ +/// 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.3-4-47",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.pop)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop");
+ if (desc.value === Array.prototype.pop &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js new file mode 100644 index 000000000..a0d0db419 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js @@ -0,0 +1,42 @@ +/// 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.3-4-48",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.shift)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift");
+ if (desc.value === Array.prototype.shift &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js new file mode 100644 index 000000000..8aee28d7d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js @@ -0,0 +1,42 @@ +/// 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.3-4-49",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.unshift)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift");
+ if (desc.value === Array.prototype.unshift &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js new file mode 100644 index 000000000..ec5a5911b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.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.3-4-5",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseInt)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "parseInt");
+ if (desc.value === global.parseInt &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js new file mode 100644 index 000000000..10015a9b6 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js @@ -0,0 +1,42 @@ +/// 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.3-4-50",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.splice)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice");
+ if (desc.value === Array.prototype.splice &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js new file mode 100644 index 000000000..fc7614f5c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js @@ -0,0 +1,42 @@ +/// 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.3-4-51",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toLocaleString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString");
+ if (desc.value === Array.prototype.toLocaleString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js new file mode 100644 index 000000000..ecb8dabd5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js @@ -0,0 +1,42 @@ +/// 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.3-4-52",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.indexOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
+ if (desc.value === Array.prototype.indexOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js new file mode 100644 index 000000000..460e896c0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js @@ -0,0 +1,42 @@ +/// 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.3-4-53",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.lastIndexOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
+ if (desc.value === Array.prototype.lastIndexOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js new file mode 100644 index 000000000..83de4a9ce --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js @@ -0,0 +1,42 @@ +/// 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.3-4-54",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.every)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
+ if (desc.value === Array.prototype.every &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js new file mode 100644 index 000000000..d56a17c75 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js @@ -0,0 +1,42 @@ +/// 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.3-4-55",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.some)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
+ if (desc.value === Array.prototype.some &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js new file mode 100644 index 000000000..dce7e71f8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js @@ -0,0 +1,42 @@ +/// 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.3-4-56",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.forEach)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
+ if (desc.value === Array.prototype.forEach &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js new file mode 100644 index 000000000..edc881ed5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js @@ -0,0 +1,42 @@ +/// 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.3-4-57",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.map)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
+ if (desc.value === Array.prototype.map &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js new file mode 100644 index 000000000..ae7f223d8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js @@ -0,0 +1,42 @@ +/// 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.3-4-58",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.filter)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
+ if (desc.value === Array.prototype.filter &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js new file mode 100644 index 000000000..c5d407961 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js @@ -0,0 +1,42 @@ +/// 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.3-4-59",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduce)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
+ if (desc.value === Array.prototype.reduce &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js new file mode 100644 index 000000000..e37129d1f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.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.3-4-6",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseFloat)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "parseFloat");
+ if (desc.value === global.parseFloat &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js new file mode 100644 index 000000000..89308b3d5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js @@ -0,0 +1,42 @@ +/// 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.3-4-60",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduceRight)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
+ if (desc.value === Array.prototype.reduceRight &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js new file mode 100644 index 000000000..9f2167b26 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js @@ -0,0 +1,42 @@ +/// 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.3-4-61",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.fromCharCode)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode");
+ if (desc.value === String.fromCharCode &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js new file mode 100644 index 000000000..11f9dd31b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js @@ -0,0 +1,42 @@ +/// 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.3-4-62",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor");
+ if (desc.value === String.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js new file mode 100644 index 000000000..528bfa425 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js @@ -0,0 +1,42 @@ +/// 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.3-4-63",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charAt)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt");
+ if (desc.value === String.prototype.charAt &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js new file mode 100644 index 000000000..388bf6ad2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js @@ -0,0 +1,42 @@ +/// 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.3-4-64",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charCodeAt)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt");
+ if (desc.value === String.prototype.charCodeAt &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js new file mode 100644 index 000000000..5b2776e21 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js @@ -0,0 +1,42 @@ +/// 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.3-4-65",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.concat)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat");
+ if (desc.value === String.prototype.concat &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js new file mode 100644 index 000000000..a1881ba53 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js @@ -0,0 +1,42 @@ +/// 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.3-4-66",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.indexOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf");
+ if (desc.value === String.prototype.indexOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js new file mode 100644 index 000000000..ccfed1344 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js @@ -0,0 +1,42 @@ +/// 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.3-4-67",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.lastIndexOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf");
+ if (desc.value === String.prototype.lastIndexOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js new file mode 100644 index 000000000..bd10bc92a --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js @@ -0,0 +1,42 @@ +/// 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.3-4-68",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.match)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "match");
+ if (desc.value === String.prototype.match &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js new file mode 100644 index 000000000..39de05d52 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js @@ -0,0 +1,42 @@ +/// 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.3-4-69",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.replace)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace");
+ if (desc.value === String.prototype.replace &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js new file mode 100644 index 000000000..a6fe011f7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.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.3-4-7",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isNaN)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "isNaN");
+ if (desc.value === global.isNaN &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js new file mode 100644 index 000000000..f5ad14ede --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js @@ -0,0 +1,42 @@ +/// 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.3-4-70",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.search)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "search");
+ if (desc.value === String.prototype.search &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js new file mode 100644 index 000000000..40436dfd7 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js @@ -0,0 +1,42 @@ +/// 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.3-4-71",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.slice)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice");
+ if (desc.value === String.prototype.slice &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js new file mode 100644 index 000000000..6e3694a9b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js @@ -0,0 +1,42 @@ +/// 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.3-4-72",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.split)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "split");
+ if (desc.value === String.prototype.split &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js new file mode 100644 index 000000000..be98064fb --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js @@ -0,0 +1,42 @@ +/// 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.3-4-73",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substring)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring");
+ if (desc.value === String.prototype.substring &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-74.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-74.js new file mode 100644 index 000000000..69d41facc --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-74.js @@ -0,0 +1,42 @@ +/// 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.3-4-74",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-74.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substr)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr");
+ if (desc.value === String.prototype.substr &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js new file mode 100644 index 000000000..18f8b3696 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js @@ -0,0 +1,42 @@ +/// 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.3-4-75",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLowerCase)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase");
+ if (desc.value === String.prototype.toLowerCase &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js new file mode 100644 index 000000000..d67ae6a27 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js @@ -0,0 +1,42 @@ +/// 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.3-4-76",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString");
+ if (desc.value === String.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js new file mode 100644 index 000000000..ba834eb8e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js @@ -0,0 +1,42 @@ +/// 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.3-4-77",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toUpperCase)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase");
+ if (desc.value === String.prototype.toUpperCase &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js new file mode 100644 index 000000000..547c577aa --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js @@ -0,0 +1,42 @@ +/// 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.3-4-78",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.valueOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf");
+ if (desc.value === String.prototype.valueOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js new file mode 100644 index 000000000..153706cab --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js @@ -0,0 +1,42 @@ +/// 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.3-4-79",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleLowerCase)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase");
+ if (desc.value === String.prototype.toLocaleLowerCase &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js new file mode 100644 index 000000000..b9f05b46f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.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.3-4-8",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isFinite)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "isFinite");
+ if (desc.value === global.isFinite &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js new file mode 100644 index 000000000..0a3a47a80 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js @@ -0,0 +1,42 @@ +/// 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.3-4-80",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleUpperCase)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase");
+ if (desc.value === String.prototype.toLocaleUpperCase &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js new file mode 100644 index 000000000..f641355e4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js @@ -0,0 +1,42 @@ +/// 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.3-4-81",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.localeCompare)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare");
+ if (desc.value === String.prototype.localeCompare &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js new file mode 100644 index 000000000..7b0a3a14c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js @@ -0,0 +1,42 @@ +/// 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.3-4-82",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.trim)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
+ if (desc.value === String.prototype.trim &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js new file mode 100644 index 000000000..26bcb4ce4 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js @@ -0,0 +1,42 @@ +/// 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.3-4-84",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor");
+ if (desc.value === Boolean.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js new file mode 100644 index 000000000..8f1d5acb8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js @@ -0,0 +1,42 @@ +/// 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.3-4-85",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString");
+ if (desc.value === Boolean.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js new file mode 100644 index 000000000..cac262599 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js @@ -0,0 +1,42 @@ +/// 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.3-4-86",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.valueOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf");
+ if (desc.value === Boolean.prototype.valueOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js new file mode 100644 index 000000000..244d527f3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js @@ -0,0 +1,42 @@ +/// 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.3-4-88",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.constructor)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor");
+ if (desc.value === Number.prototype.constructor &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js new file mode 100644 index 000000000..d8e2bfe99 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js @@ -0,0 +1,42 @@ +/// 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.3-4-89",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString");
+ if (desc.value === Number.prototype.toString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js new file mode 100644 index 000000000..7f03a3b9d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.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.3-4-9",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURI)",
+
+test: function testcase() {
+ var global = fnGlobalObject();
+ var desc = Object.getOwnPropertyDescriptor(global, "decodeURI");
+ if (desc.value === global.decodeURI &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js new file mode 100644 index 000000000..75f36649c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js @@ -0,0 +1,42 @@ +/// 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.3-4-90",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toLocaleString)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString");
+ if (desc.value === Number.prototype.toLocaleString &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js new file mode 100644 index 000000000..e5303550d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js @@ -0,0 +1,42 @@ +/// 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.3-4-91",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toFixed)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed");
+ if (desc.value === Number.prototype.toFixed &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js new file mode 100644 index 000000000..ddb9341e2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js @@ -0,0 +1,42 @@ +/// 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.3-4-92",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toExponential)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential");
+ if (desc.value === Number.prototype.toExponential &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js new file mode 100644 index 000000000..cc0c2d52c --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js @@ -0,0 +1,42 @@ +/// 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.3-4-93",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toPrecision)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision");
+ if (desc.value === Number.prototype.toPrecision &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js new file mode 100644 index 000000000..de43a9de2 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js @@ -0,0 +1,42 @@ +/// 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.3-4-94",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.valueOf)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf");
+ if (desc.value === Number.prototype.valueOf &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js new file mode 100644 index 000000000..1a7a9c50b --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js @@ -0,0 +1,42 @@ +/// 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.3-4-96",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.abs)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "abs");
+ if (desc.value === Math.abs &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js new file mode 100644 index 000000000..fcab26209 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js @@ -0,0 +1,42 @@ +/// 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.3-4-97",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.acos)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "acos");
+ if (desc.value === Math.acos &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js new file mode 100644 index 000000000..f3e129a00 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js @@ -0,0 +1,42 @@ +/// 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.3-4-98",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.asin)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "asin");
+ if (desc.value === Math.asin &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js new file mode 100644 index 000000000..a1ed030dd --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js @@ -0,0 +1,42 @@ +/// 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.3-4-99",
+
+path: "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js",
+
+description: "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan)",
+
+test: function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Math, "atan");
+ if (desc.value === Math.atan &&
+ desc.writable === true &&
+ desc.enumerable === false &&
+ desc.configurable === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Object.getOwnPropertyDescriptor);
+ }
+});
|