diff options
Diffstat (limited to 'external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3')
24 files changed, 971 insertions, 0 deletions
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js new file mode 100644 index 000000000..dd8b9e0c0 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js @@ -0,0 +1,35 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.4.3.2-0-1",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-1.js",
+
+description: "Array.isArray must exist as a function",
+
+test: function testcase() {
+ var f = Array.isArray;
+ if (typeof(f) === "function") {
+ return true;
+ }
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js new file mode 100644 index 000000000..0e631e9b3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js @@ -0,0 +1,38 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.4.3.2-0-2",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js",
+
+description: "Array.isArray must exist as a function taking 1 parameter",
+
+test: function testcase() {
+ if (Array.isArray.length === 1) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js new file mode 100644 index 000000000..33e4bee71 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-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.4.3.2-0-3",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-3.js",
+
+description: "Array.isArray return true if its argument is an Array",
+
+test: function testcase() {
+ var a = [];
+ var b = Array.isArray(a);
+ if (b === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js new file mode 100644 index 000000000..24c94c2f5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.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.4.3.2-0-4",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-4.js",
+
+description: "Array.isArray return false if its argument is not an Array",
+
+test: function testcase() {
+ var b_num = Array.isArray(42);
+ var b_undef = Array.isArray(undefined);
+ var b_bool = Array.isArray(true);
+ var b_str = Array.isArray("abc");
+ var b_obj = Array.isArray({});
+ var b_null = Array.isArray(null);
+
+ if (b_num === false &&
+ b_undef === false &&
+ b_bool === false &&
+ b_str === false &&
+ b_obj === false &&
+ b_null === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js new file mode 100644 index 000000000..e08228e50 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest( {
+id: "15.4.3.2-0-5",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-5.js",
+
+description: "Array.isArray return true if its argument is an Array (Array.prototype)",
+
+test: function testcase() {
+ var b = Array.isArray(Array.prototype);
+ if (b === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js new file mode 100644 index 000000000..7024e4b28 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-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.4.3.2-0-6",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-6.js",
+
+description: "Array.isArray return true if its argument is an Array (new Array())",
+
+test: function testcase() {
+ var a = new Array(10);
+ var b = Array.isArray(a);
+ if (b === true) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js new file mode 100644 index 000000000..d191a1041 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.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.4.3.2-0-7",
+
+path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-7.js",
+
+description: "Array.isArray returns false if its argument is not an Array",
+
+test: function testcase() {
+ var o = new Object();
+ o[12] = 13;
+ var b = Array.isArray(o);
+ if (b === false) {
+ return true;
+ }
+ },
+
+precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js new file mode 100644 index 000000000..ff763c32e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-1",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-1.js",
+
+ description: "Array.isArray applied to boolean primitive",
+
+ test: function testcase() {
+
+ return !Array.isArray(true);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js new file mode 100644 index 000000000..247229772 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-10",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-10.js",
+
+ description: "Array.isArray applied to RegExp object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new RegExp());
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js new file mode 100644 index 000000000..8b1ef3059 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-11",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-11.js",
+
+ description: "Array.isArray applied to the JSON object",
+
+ test: function testcase() {
+
+ return !Array.isArray(JSON);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js new file mode 100644 index 000000000..8424a597e --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-12",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-12.js",
+
+ description: "Array.isArray applied to Error object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new SyntaxError());
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js new file mode 100644 index 000000000..91219d811 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.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.4.3.2-1-13",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-13.js",
+
+ description: "Array.isArray applied to Arguments object",
+
+ test: function testcase() {
+
+ var arg;
+
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
+
+ return !Array.isArray(arg);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js new file mode 100644 index 000000000..042656c1f --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-15",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-15.js",
+
+ description: "Array.isArray applied to the global object",
+
+ test: function testcase() {
+
+ return !Array.isArray(fnGlobalObject());
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js new file mode 100644 index 000000000..6865509d9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-2",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-2.js",
+
+ description: "Array.isArray applied to Boolean Object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new Boolean(false));
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js new file mode 100644 index 000000000..0622f55e9 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-3",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-3.js",
+
+ description: "Array.isArray applied to number primitive",
+
+ test: function testcase() {
+
+ return !Array.isArray(5);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js new file mode 100644 index 000000000..3f3462085 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-4",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-4.js",
+
+ description: "Array.isArray applied to Number object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new Number(-3));
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js new file mode 100644 index 000000000..f477dee3d --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-5",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-5.js",
+
+ description: "Array.isArray applied to string primitive",
+
+ test: function testcase() {
+
+ return !Array.isArray("abc");
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js new file mode 100644 index 000000000..ee50f50e3 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-1-6",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-6.js",
+
+ description: "Array.isArray applied to String object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new String("hello\nworld\\!"));
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js new file mode 100644 index 000000000..1caae7f91 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-7",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-7.js",
+
+ description: "Array.isArray applied to Function object",
+
+ test: function testcase() {
+
+ return !Array.isArray(function () { });
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js new file mode 100644 index 000000000..063f749a5 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-8",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-8.js",
+
+ description: "Array.isArray applied to the Math object",
+
+ test: function testcase() {
+
+ return !Array.isArray(Math);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js new file mode 100644 index 000000000..bf4477739 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-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.4.3.2-1-9",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-1-9.js",
+
+ description: "Array.isArray applied to Date object",
+
+ test: function testcase() {
+
+ return !Array.isArray(new Date());
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
\ No newline at end of file diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js new file mode 100644 index 000000000..d7e81f857 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.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.4.3.2-2-1",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-1.js",
+
+ description: "Array.isArray applied to an object with an array as the prototype",
+
+ test: function testcase() {
+
+ var proto = [];
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ return !Array.isArray(child);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js new file mode 100644 index 000000000..a3edaf500 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.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.4.3.2-2-2",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-2.js",
+
+ description: "Array.isArray applied to an object with Array.prototype as the prototype",
+
+ test: function testcase() {
+
+ var proto = Array.prototype;
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ return !Array.isArray(child);
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
diff --git a/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js new file mode 100644 index 000000000..398c1a4d8 --- /dev/null +++ b/external/contributions/Microsoft/ietestcenter_build_2011/TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js @@ -0,0 +1,39 @@ +/// Copyright (c) 2009 Microsoft Corporation
+///
+/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
+/// that the following conditions are met:
+/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
+/// the following disclaimer.
+/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
+/// the following disclaimer in the documentation and/or other materials provided with the distribution.
+/// * Neither the name of Microsoft nor the names of its contributors may be used to
+/// endorse or promote products derived from this software without specific prior written permission.
+///
+/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+ES5Harness.registerTest({
+ id: "15.4.3.2-2-3",
+
+ path: "TestCases/chapter15/15.4/15.4.3/15.4.3.2/15.4.3.2-2-3.js",
+
+ description: "Array.isArray applied to an Array-like object with length and some indexed properties",
+
+ test: function testcase() {
+
+ return !Array.isArray({ 0: 12, 1: 9, length: 2 });
+ },
+
+ precondition: function prereq() {
+ return fnExists(Array.isArray);
+ }
+
+});
+
|