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 24 Tests that storing into a negative array index works right. 25 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29 PASS array[-1] is 42 30 PASS array[-1] is 42 31 PASS array[-1] is 42 32 PASS array[-1] is 42 33 PASS array[-1] is 42 34 PASS array[-1] is 42 35 PASS array[-1] is 42 36 PASS array[-1] is 42 37 PASS array[-1] is 42 38 PASS array[-1] is 42 39 PASS array[-1] is 42 40 PASS array[-1] is 42 41 PASS array[-1] is 42 42 PASS array[-1] is 42 43 PASS array[-1] is 42 44 PASS array[-1] is 42 45 PASS array[-1] is 42 46 PASS array[-1] is 42 47 PASS array[-1] is 42 48 PASS array[-1] is 42 49 PASS array[-1] is 42 50 PASS array[-1] is 42 51 PASS array[-1] is 42 52 PASS array[-1] is 42 53 PASS array[-1] is 42 54 PASS array[-1] is 42 55 PASS array[-1] is 42 56 PASS array[-1] is 42 57 PASS array[-1] is 42 58 PASS array[-1] is 42 59 PASS array[-1] is 42 60 PASS array[-1] is 42 61 PASS array[-1] is 42 62 PASS array[-1] is 42 63 PASS array[-1] is 42 64 PASS array[-1] is 42 65 PASS array[-1] is 42 66 PASS array[-1] is 42 67 PASS array[-1] is 42 68 PASS array[-1] is 42 69 PASS array[-1] is 42 70 PASS array[-1] is 42 71 PASS array[-1] is 42 72 PASS array[-1] is 42 73 PASS array[-1] is 42 74 PASS array[-1] is 42 75 PASS array[-1] is 42 76 PASS array[-1] is 42 77 PASS array[-1] is 42 78 PASS array[-1] is 42 79 PASS array[-1] is 42 80 PASS array[-1] is 42 81 PASS array[-1] is 42 82 PASS array[-1] is 42 83 PASS array[-1] is 42 84 PASS array[-1] is 42 85 PASS array[-1] is 42 86 PASS array[-1] is 42 87 PASS array[-1] is 42 88 PASS array[-1] is 42 89 PASS array[-1] is 42 90 PASS array[-1] is 42 91 PASS array[-1] is 42 92 PASS array[-1] is 42 93 PASS array[-1] is 42 94 PASS array[-1] is 42 95 PASS array[-1] is 42 96 PASS array[-1] is 42 97 PASS array[-1] is 42 98 PASS array[-1] is 42 99 PASS array[-1] is 42 100 PASS array[-1] is 42 101 PASS array[-1] is 42 102 PASS array[-1] is 42 103 PASS array[-1] is 42 104 PASS array[-1] is 42 105 PASS array[-1] is 42 106 PASS array[-1] is 42 107 PASS array[-1] is 42 108 PASS array[-1] is 42 109 PASS array[-1] is 42 110 PASS array[-1] is 42 111 PASS array[-1] is 42 112 PASS array[-1] is 42 113 PASS array[-1] is 42 114 PASS array[-1] is 42 115 PASS array[-1] is 42 116 PASS array[-1] is 42 117 PASS array[-1] is 42 118 PASS array[-1] is 42 119 PASS array[-1] is 42 120 PASS array[-1] is 42 121 PASS array[-1] is 42 122 PASS array[-1] is 42 123 PASS array[-1] is 42 124 PASS array[-1] is 42 125 PASS array[-1] is 42 126 PASS array[-1] is 42 127 PASS array[-1] is 42 128 PASS array[-1] is 42 129 PASS successfullyParsed is true 130 131 TEST COMPLETE 132 133