1// Copyright 2013 the V8 project authors. All rights reserved. 2// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions 6// are met: 7// 1. Redistributions of source code must retain the above copyright 8// notice, this list of conditions and the following disclaimer. 9// 2. Redistributions in binary form must reproduce the above copyright 10// notice, this list of conditions and the following disclaimer in the 11// documentation and/or other materials provided with the distribution. 12// 13// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16// DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24description("KDE JS Test"); 25shouldBe("Object.prototype.toString.__proto__","Function.prototype"); 26shouldBe("Object.prototype.valueOf.__proto__","Function.prototype"); 27shouldBe("Array.prototype.toString.__proto__","Function.prototype"); 28shouldBe("Array.prototype.toLocaleString.__proto__","Function.prototype"); 29shouldBe("Array.prototype.concat.__proto__","Function.prototype"); 30shouldBe("Array.prototype.join.__proto__","Function.prototype"); 31shouldBe("Array.prototype.pop.__proto__","Function.prototype"); 32shouldBe("Array.prototype.push.__proto__","Function.prototype"); 33shouldBe("Array.prototype.reverse.__proto__","Function.prototype"); 34shouldBe("Array.prototype.shift.__proto__","Function.prototype"); 35shouldBe("Array.prototype.slice.__proto__","Function.prototype"); 36shouldBe("Array.prototype.sort.__proto__","Function.prototype"); 37shouldBe("Array.prototype.splice.__proto__","Function.prototype"); 38shouldBe("Array.prototype.unshift.__proto__","Function.prototype"); 39shouldBe("String.prototype.toString.__proto__","Function.prototype"); 40shouldBe("String.prototype.valueOf.__proto__","Function.prototype"); 41shouldBe("String.prototype.charAt.__proto__","Function.prototype"); 42shouldBe("String.prototype.charCodeAt.__proto__","Function.prototype"); 43shouldBe("String.prototype.indexOf.__proto__","Function.prototype"); 44shouldBe("String.prototype.lastIndexOf.__proto__","Function.prototype"); 45shouldBe("String.prototype.match.__proto__","Function.prototype"); 46shouldBe("String.prototype.normalize.__proto__","Function.prototype"); 47shouldBe("String.prototype.replace.__proto__","Function.prototype"); 48shouldBe("String.prototype.search.__proto__","Function.prototype"); 49shouldBe("String.prototype.slice.__proto__","Function.prototype"); 50shouldBe("String.prototype.split.__proto__","Function.prototype"); 51shouldBe("String.prototype.substr.__proto__","Function.prototype"); 52shouldBe("String.prototype.substring.__proto__","Function.prototype"); 53shouldBe("String.prototype.toLowerCase.__proto__","Function.prototype"); 54shouldBe("String.prototype.toUpperCase.__proto__","Function.prototype"); 55shouldBe("String.prototype.big.__proto__","Function.prototype"); 56shouldBe("String.prototype.small.__proto__","Function.prototype"); 57shouldBe("String.prototype.blink.__proto__","Function.prototype"); 58shouldBe("String.prototype.bold.__proto__","Function.prototype"); 59shouldBe("String.prototype.fixed.__proto__","Function.prototype"); 60shouldBe("String.prototype.italics.__proto__","Function.prototype"); 61shouldBe("String.prototype.strike.__proto__","Function.prototype"); 62shouldBe("String.prototype.sub.__proto__","Function.prototype"); 63shouldBe("String.prototype.sup.__proto__","Function.prototype"); 64shouldBe("String.prototype.fontcolor.__proto__","Function.prototype"); 65shouldBe("String.prototype.fontsize.__proto__","Function.prototype"); 66shouldBe("String.prototype.anchor.__proto__","Function.prototype"); 67shouldBe("String.prototype.link.__proto__","Function.prototype"); 68shouldBe("Boolean.prototype.toString.__proto__","Function.prototype"); 69shouldBe("Boolean.prototype.valueOf.__proto__","Function.prototype"); 70shouldBe("Date.prototype.toString.__proto__","Function.prototype"); 71shouldBe("Date.prototype.toUTCString.__proto__","Function.prototype"); 72shouldBe("Date.prototype.toDateString.__proto__","Function.prototype"); 73shouldBe("Date.prototype.toTimeString.__proto__","Function.prototype"); 74shouldBe("Date.prototype.toLocaleString.__proto__","Function.prototype"); 75shouldBe("Date.prototype.toLocaleDateString.__proto__","Function.prototype"); 76shouldBe("Date.prototype.toLocaleTimeString.__proto__","Function.prototype"); 77shouldBe("Date.prototype.valueOf.__proto__","Function.prototype"); 78shouldBe("Date.prototype.getTime.__proto__","Function.prototype"); 79shouldBe("Date.prototype.getFullYear.__proto__","Function.prototype"); 80shouldBe("Date.prototype.getUTCFullYear.__proto__","Function.prototype"); 81shouldBe("Date.prototype.toGMTString.__proto__","Function.prototype"); 82shouldBe("Date.prototype.getMonth.__proto__","Function.prototype"); 83shouldBe("Date.prototype.getUTCMonth.__proto__","Function.prototype"); 84shouldBe("Date.prototype.getDate.__proto__","Function.prototype"); 85shouldBe("Date.prototype.getUTCDate.__proto__","Function.prototype"); 86shouldBe("Date.prototype.getDay.__proto__","Function.prototype"); 87shouldBe("Date.prototype.getUTCDay.__proto__","Function.prototype"); 88shouldBe("Date.prototype.getHours.__proto__","Function.prototype"); 89shouldBe("Date.prototype.getUTCHours.__proto__","Function.prototype"); 90shouldBe("Date.prototype.getMinutes.__proto__","Function.prototype"); 91shouldBe("Date.prototype.getUTCMinutes.__proto__","Function.prototype"); 92shouldBe("Date.prototype.getSeconds.__proto__","Function.prototype"); 93shouldBe("Date.prototype.getUTCSeconds.__proto__","Function.prototype"); 94shouldBe("Date.prototype.getMilliseconds.__proto__","Function.prototype"); 95shouldBe("Date.prototype.getUTCMilliseconds.__proto__","Function.prototype"); 96shouldBe("Date.prototype.getTimezoneOffset.__proto__","Function.prototype"); 97shouldBe("Date.prototype.setTime.__proto__","Function.prototype"); 98shouldBe("Date.prototype.setMilliseconds.__proto__","Function.prototype"); 99shouldBe("Date.prototype.setUTCMilliseconds.__proto__","Function.prototype"); 100shouldBe("Date.prototype.setSeconds.__proto__","Function.prototype"); 101shouldBe("Date.prototype.setUTCSeconds.__proto__","Function.prototype"); 102shouldBe("Date.prototype.setMinutes.__proto__","Function.prototype"); 103shouldBe("Date.prototype.setUTCMinutes.__proto__","Function.prototype"); 104shouldBe("Date.prototype.setHours.__proto__","Function.prototype"); 105shouldBe("Date.prototype.setUTCHours.__proto__","Function.prototype"); 106shouldBe("Date.prototype.setDate.__proto__","Function.prototype"); 107shouldBe("Date.prototype.setUTCDate.__proto__","Function.prototype"); 108shouldBe("Date.prototype.setMonth.__proto__","Function.prototype"); 109shouldBe("Date.prototype.setUTCMonth.__proto__","Function.prototype"); 110shouldBe("Date.prototype.setFullYear.__proto__","Function.prototype"); 111shouldBe("Date.prototype.setUTCFullYear.__proto__","Function.prototype"); 112shouldBe("Date.prototype.setYear.__proto__","Function.prototype"); 113shouldBe("Date.prototype.getYear.__proto__","Function.prototype"); 114shouldBe("Date.prototype.toGMTString.__proto__","Function.prototype"); 115shouldBe("RegExp.prototype.exec.__proto__","Function.prototype"); 116shouldBe("RegExp.prototype.test.__proto__","Function.prototype"); 117shouldBe("RegExp.prototype.toString.__proto__","Function.prototype"); 118shouldBe("Error.prototype.toString.__proto__","Function.prototype"); 119