Home | History | Annotate | Download | only in webkit
      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 what happens when you do ToString twice, and it has a side effect that clobbers the toString method in between the two ToStrings.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS foo(new String("hello"), sideEffect) is "hellohello"
     30 PASS foo(new String("hello"), sideEffect) is "hellohello"
     31 PASS foo(new String("hello"), sideEffect) is "hellohello"
     32 PASS foo(new String("hello"), sideEffect) is "hellohello"
     33 PASS foo(new String("hello"), sideEffect) is "hellohello"
     34 PASS foo(new String("hello"), sideEffect) is "hellohello"
     35 PASS foo(new String("hello"), sideEffect) is "hellohello"
     36 PASS foo(new String("hello"), sideEffect) is "hellohello"
     37 PASS foo(new String("hello"), sideEffect) is "hellohello"
     38 PASS foo(new String("hello"), sideEffect) is "hellohello"
     39 PASS foo(new String("hello"), sideEffect) is "hellohello"
     40 PASS foo(new String("hello"), sideEffect) is "hellohello"
     41 PASS foo(new String("hello"), sideEffect) is "hellohello"
     42 PASS foo(new String("hello"), sideEffect) is "hellohello"
     43 PASS foo(new String("hello"), sideEffect) is "hellohello"
     44 PASS foo(new String("hello"), sideEffect) is "hellohello"
     45 PASS foo(new String("hello"), sideEffect) is "hellohello"
     46 PASS foo(new String("hello"), sideEffect) is "hellohello"
     47 PASS foo(new String("hello"), sideEffect) is "hellohello"
     48 PASS foo(new String("hello"), sideEffect) is "hellohello"
     49 PASS foo(new String("hello"), sideEffect) is "hellohello"
     50 PASS foo(new String("hello"), sideEffect) is "hellohello"
     51 PASS foo(new String("hello"), sideEffect) is "hellohello"
     52 PASS foo(new String("hello"), sideEffect) is "hellohello"
     53 PASS foo(new String("hello"), sideEffect) is "hellohello"
     54 PASS foo(new String("hello"), sideEffect) is "hellohello"
     55 PASS foo(new String("hello"), sideEffect) is "hellohello"
     56 PASS foo(new String("hello"), sideEffect) is "hellohello"
     57 PASS foo(new String("hello"), sideEffect) is "hellohello"
     58 PASS foo(new String("hello"), sideEffect) is "hellohello"
     59 PASS foo(new String("hello"), sideEffect) is "hellohello"
     60 PASS foo(new String("hello"), sideEffect) is "hellohello"
     61 PASS foo(new String("hello"), sideEffect) is "hellohello"
     62 PASS foo(new String("hello"), sideEffect) is "hellohello"
     63 PASS foo(new String("hello"), sideEffect) is "hellohello"
     64 PASS foo(new String("hello"), sideEffect) is "hellohello"
     65 PASS foo(new String("hello"), sideEffect) is "hellohello"
     66 PASS foo(new String("hello"), sideEffect) is "hellohello"
     67 PASS foo(new String("hello"), sideEffect) is "hellohello"
     68 PASS foo(new String("hello"), sideEffect) is "hellohello"
     69 PASS foo(new String("hello"), sideEffect) is "hellohello"
     70 PASS foo(new String("hello"), sideEffect) is "hellohello"
     71 PASS foo(new String("hello"), sideEffect) is "hellohello"
     72 PASS foo(new String("hello"), sideEffect) is "hellohello"
     73 PASS foo(new String("hello"), sideEffect) is "hellohello"
     74 PASS foo(new String("hello"), sideEffect) is "hellohello"
     75 PASS foo(new String("hello"), sideEffect) is "hellohello"
     76 PASS foo(new String("hello"), sideEffect) is "hellohello"
     77 PASS foo(new String("hello"), sideEffect) is "hellohello"
     78 PASS foo(new String("hello"), sideEffect) is "hellohello"
     79 PASS foo(new String("hello"), sideEffect) is "hellohello"
     80 PASS foo(new String("hello"), sideEffect) is "hellohello"
     81 PASS foo(new String("hello"), sideEffect) is "hellohello"
     82 PASS foo(new String("hello"), sideEffect) is "hellohello"
     83 PASS foo(new String("hello"), sideEffect) is "hellohello"
     84 PASS foo(new String("hello"), sideEffect) is "hellohello"
     85 PASS foo(new String("hello"), sideEffect) is "hellohello"
     86 PASS foo(new String("hello"), sideEffect) is "hellohello"
     87 PASS foo(new String("hello"), sideEffect) is "hellohello"
     88 PASS foo(new String("hello"), sideEffect) is "hellohello"
     89 PASS foo(new String("hello"), sideEffect) is "hellohello"
     90 PASS foo(new String("hello"), sideEffect) is "hellohello"
     91 PASS foo(new String("hello"), sideEffect) is "hellohello"
     92 PASS foo(new String("hello"), sideEffect) is "hellohello"
     93 PASS foo(new String("hello"), sideEffect) is "hellohello"
     94 PASS foo(new String("hello"), sideEffect) is "hellohello"
     95 PASS foo(new String("hello"), sideEffect) is "hellohello"
     96 PASS foo(new String("hello"), sideEffect) is "hellohello"
     97 PASS foo(new String("hello"), sideEffect) is "hellohello"
     98 PASS foo(new String("hello"), sideEffect) is "hellohello"
     99 PASS foo(new String("hello"), sideEffect) is "hellohello"
    100 PASS foo(new String("hello"), sideEffect) is "hellohello"
    101 PASS foo(new String("hello"), sideEffect) is "hellohello"
    102 PASS foo(new String("hello"), sideEffect) is "hellohello"
    103 PASS foo(new String("hello"), sideEffect) is "hellohello"
    104 PASS foo(new String("hello"), sideEffect) is "hellohello"
    105 PASS foo(new String("hello"), sideEffect) is "hellohello"
    106 PASS foo(new String("hello"), sideEffect) is "hellohello"
    107 PASS foo(new String("hello"), sideEffect) is "hellohello"
    108 PASS foo(new String("hello"), sideEffect) is "hellohello"
    109 PASS foo(new String("hello"), sideEffect) is "hellohello"
    110 PASS foo(new String("hello"), sideEffect) is "hellohello"
    111 PASS foo(new String("hello"), sideEffect) is "hellohello"
    112 PASS foo(new String("hello"), sideEffect) is "hellohello"
    113 PASS foo(new String("hello"), sideEffect) is "hellohello"
    114 PASS foo(new String("hello"), sideEffect) is "hellohello"
    115 PASS foo(new String("hello"), sideEffect) is "hellohello"
    116 PASS foo(new String("hello"), sideEffect) is "hellohello"
    117 PASS foo(new String("hello"), sideEffect) is "hellohello"
    118 PASS foo(new String("hello"), sideEffect) is "hellohello"
    119 PASS foo(new String("hello"), sideEffect) is "hellohello"
    120 PASS foo(new String("hello"), sideEffect) is "hellohello"
    121 PASS foo(new String("hello"), sideEffect) is "hellohello"
    122 PASS foo(new String("hello"), sideEffect) is "hellohello"
    123 PASS foo(new String("hello"), sideEffect) is "hellohello"
    124 PASS foo(new String("hello"), sideEffect) is "hellohello"
    125 PASS foo(new String("hello"), sideEffect) is "hellohello"
    126 PASS foo(new String("hello"), sideEffect) is "hellohello"
    127 PASS foo(new String("hello"), sideEffect) is "hellohello"
    128 PASS foo(new String("hello"), sideEffect) is "hellohello"
    129 PASS foo(new String("hello"), sideEffect) is "hellohello"
    130 PASS foo(new String("hello"), sideEffect) is "hellohello"
    131 PASS foo(new String("hello"), sideEffect) is "hellohello"
    132 PASS foo(new String("hello"), sideEffect) is "hellohello"
    133 PASS foo(new String("hello"), sideEffect) is "hellohello"
    134 PASS foo(new String("hello"), sideEffect) is "hellohello"
    135 PASS foo(new String("hello"), sideEffect) is "hellohello"
    136 PASS foo(new String("hello"), sideEffect) is "hellohello"
    137 PASS foo(new String("hello"), sideEffect) is "hellohello"
    138 PASS foo(new String("hello"), sideEffect) is "hellohello"
    139 PASS foo(new String("hello"), sideEffect) is "hellohello"
    140 PASS foo(new String("hello"), sideEffect) is "hellohello"
    141 PASS foo(new String("hello"), sideEffect) is "hellohello"
    142 PASS foo(new String("hello"), sideEffect) is "hellohello"
    143 PASS foo(new String("hello"), sideEffect) is "hellohello"
    144 PASS foo(new String("hello"), sideEffect) is "hellohello"
    145 PASS foo(new String("hello"), sideEffect) is "hellohello"
    146 PASS foo(new String("hello"), sideEffect) is "hellohello"
    147 PASS foo(new String("hello"), sideEffect) is "hellohello"
    148 PASS foo(new String("hello"), sideEffect) is "hellohello"
    149 PASS foo(new String("hello"), sideEffect) is "hellohello"
    150 PASS foo(new String("hello"), sideEffect) is "hellohello"
    151 PASS foo(new String("hello"), sideEffect) is "hellohello"
    152 PASS foo(new String("hello"), sideEffect) is "hellohello"
    153 PASS foo(new String("hello"), sideEffect) is "hellohello"
    154 PASS foo(new String("hello"), sideEffect) is "hellohello"
    155 PASS foo(new String("hello"), sideEffect) is "hellohello"
    156 PASS foo(new String("hello"), sideEffect) is "hellohello"
    157 PASS foo(new String("hello"), sideEffect) is "hellohello"
    158 PASS foo(new String("hello"), sideEffect) is "hellohello"
    159 PASS foo(new String("hello"), sideEffect) is "hellohello"
    160 PASS foo(new String("hello"), sideEffect) is "hellohello"
    161 PASS foo(new String("hello"), sideEffect) is "hellohello"
    162 PASS foo(new String("hello"), sideEffect) is "hellohello"
    163 PASS foo(new String("hello"), sideEffect) is "hellohello"
    164 PASS foo(new String("hello"), sideEffect) is "hellohello"
    165 PASS foo(new String("hello"), sideEffect) is "hellohello"
    166 PASS foo(new String("hello"), sideEffect) is "hellohello"
    167 PASS foo(new String("hello"), sideEffect) is "hellohello"
    168 PASS foo(new String("hello"), sideEffect) is "hellohello"
    169 PASS foo(new String("hello"), sideEffect) is "hellohello"
    170 PASS foo(new String("hello"), sideEffect) is "hellohello"
    171 PASS foo(new String("hello"), sideEffect) is "hellohello"
    172 PASS foo(new String("hello"), sideEffect) is "hellohello"
    173 PASS foo(new String("hello"), sideEffect) is "hellohello"
    174 PASS foo(new String("hello"), sideEffect) is "hellohello"
    175 PASS foo(new String("hello"), sideEffect) is "hellohello"
    176 PASS foo(new String("hello"), sideEffect) is "hellohello"
    177 PASS foo(new String("hello"), sideEffect) is "hellohello"
    178 PASS foo(new String("hello"), sideEffect) is "hellohello"
    179 hi!
    180 PASS foo(new String("hello"), sideEffect) is "hello150"
    181 hi!
    182 PASS foo(new String("hello"), sideEffect) is "hello151"
    183 hi!
    184 PASS foo(new String("hello"), sideEffect) is "hello152"
    185 hi!
    186 PASS foo(new String("hello"), sideEffect) is "hello153"
    187 hi!
    188 PASS foo(new String("hello"), sideEffect) is "hello154"
    189 hi!
    190 PASS foo(new String("hello"), sideEffect) is "hello155"
    191 hi!
    192 PASS foo(new String("hello"), sideEffect) is "hello156"
    193 hi!
    194 PASS foo(new String("hello"), sideEffect) is "hello157"
    195 hi!
    196 PASS foo(new String("hello"), sideEffect) is "hello158"
    197 hi!
    198 PASS foo(new String("hello"), sideEffect) is "hello159"
    199 hi!
    200 PASS foo(new String("hello"), sideEffect) is "hello160"
    201 hi!
    202 PASS foo(new String("hello"), sideEffect) is "hello161"
    203 hi!
    204 PASS foo(new String("hello"), sideEffect) is "hello162"
    205 hi!
    206 PASS foo(new String("hello"), sideEffect) is "hello163"
    207 hi!
    208 PASS foo(new String("hello"), sideEffect) is "hello164"
    209 hi!
    210 PASS foo(new String("hello"), sideEffect) is "hello165"
    211 hi!
    212 PASS foo(new String("hello"), sideEffect) is "hello166"
    213 hi!
    214 PASS foo(new String("hello"), sideEffect) is "hello167"
    215 hi!
    216 PASS foo(new String("hello"), sideEffect) is "hello168"
    217 hi!
    218 PASS foo(new String("hello"), sideEffect) is "hello169"
    219 hi!
    220 PASS foo(new String("hello"), sideEffect) is "hello170"
    221 hi!
    222 PASS foo(new String("hello"), sideEffect) is "hello171"
    223 hi!
    224 PASS foo(new String("hello"), sideEffect) is "hello172"
    225 hi!
    226 PASS foo(new String("hello"), sideEffect) is "hello173"
    227 hi!
    228 PASS foo(new String("hello"), sideEffect) is "hello174"
    229 hi!
    230 PASS foo(new String("hello"), sideEffect) is "hello175"
    231 hi!
    232 PASS foo(new String("hello"), sideEffect) is "hello176"
    233 hi!
    234 PASS foo(new String("hello"), sideEffect) is "hello177"
    235 hi!
    236 PASS foo(new String("hello"), sideEffect) is "hello178"
    237 hi!
    238 PASS foo(new String("hello"), sideEffect) is "hello179"
    239 hi!
    240 PASS foo(new String("hello"), sideEffect) is "hello180"
    241 hi!
    242 PASS foo(new String("hello"), sideEffect) is "hello181"
    243 hi!
    244 PASS foo(new String("hello"), sideEffect) is "hello182"
    245 hi!
    246 PASS foo(new String("hello"), sideEffect) is "hello183"
    247 hi!
    248 PASS foo(new String("hello"), sideEffect) is "hello184"
    249 hi!
    250 PASS foo(new String("hello"), sideEffect) is "hello185"
    251 hi!
    252 PASS foo(new String("hello"), sideEffect) is "hello186"
    253 hi!
    254 PASS foo(new String("hello"), sideEffect) is "hello187"
    255 hi!
    256 PASS foo(new String("hello"), sideEffect) is "hello188"
    257 hi!
    258 PASS foo(new String("hello"), sideEffect) is "hello189"
    259 hi!
    260 PASS foo(new String("hello"), sideEffect) is "hello190"
    261 hi!
    262 PASS foo(new String("hello"), sideEffect) is "hello191"
    263 hi!
    264 PASS foo(new String("hello"), sideEffect) is "hello192"
    265 hi!
    266 PASS foo(new String("hello"), sideEffect) is "hello193"
    267 hi!
    268 PASS foo(new String("hello"), sideEffect) is "hello194"
    269 hi!
    270 PASS foo(new String("hello"), sideEffect) is "hello195"
    271 hi!
    272 PASS foo(new String("hello"), sideEffect) is "hello196"
    273 hi!
    274 PASS foo(new String("hello"), sideEffect) is "hello197"
    275 hi!
    276 PASS foo(new String("hello"), sideEffect) is "hello198"
    277 hi!
    278 PASS foo(new String("hello"), sideEffect) is "hello199"
    279 PASS successfullyParsed is true
    280 
    281 TEST COMPLETE
    282 
    283