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 correctness of function calls when the function is overwritten.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS bar(i, i + 1) is 1
     30 PASS bar(i, i + 1) is 3
     31 PASS bar(i, i + 1) is 5
     32 PASS bar(i, i + 1) is 7
     33 PASS bar(i, i + 1) is 9
     34 PASS bar(i, i + 1) is 11
     35 PASS bar(i, i + 1) is 13
     36 PASS bar(i, i + 1) is 15
     37 PASS bar(i, i + 1) is 17
     38 PASS bar(i, i + 1) is 19
     39 PASS bar(i, i + 1) is 21
     40 PASS bar(i, i + 1) is 23
     41 PASS bar(i, i + 1) is 25
     42 PASS bar(i, i + 1) is 27
     43 PASS bar(i, i + 1) is 29
     44 PASS bar(i, i + 1) is 31
     45 PASS bar(i, i + 1) is 33
     46 PASS bar(i, i + 1) is 35
     47 PASS bar(i, i + 1) is 37
     48 PASS bar(i, i + 1) is 39
     49 PASS bar(i, i + 1) is 41
     50 PASS bar(i, i + 1) is 43
     51 PASS bar(i, i + 1) is 45
     52 PASS bar(i, i + 1) is 47
     53 PASS bar(i, i + 1) is 49
     54 PASS bar(i, i + 1) is 51
     55 PASS bar(i, i + 1) is 53
     56 PASS bar(i, i + 1) is 55
     57 PASS bar(i, i + 1) is 57
     58 PASS bar(i, i + 1) is 59
     59 PASS bar(i, i + 1) is 61
     60 PASS bar(i, i + 1) is 63
     61 PASS bar(i, i + 1) is 65
     62 PASS bar(i, i + 1) is 67
     63 PASS bar(i, i + 1) is 69
     64 PASS bar(i, i + 1) is 71
     65 PASS bar(i, i + 1) is 73
     66 PASS bar(i, i + 1) is 75
     67 PASS bar(i, i + 1) is 77
     68 PASS bar(i, i + 1) is 79
     69 PASS bar(i, i + 1) is 81
     70 PASS bar(i, i + 1) is 83
     71 PASS bar(i, i + 1) is 85
     72 PASS bar(i, i + 1) is 87
     73 PASS bar(i, i + 1) is 89
     74 PASS bar(i, i + 1) is 91
     75 PASS bar(i, i + 1) is 93
     76 PASS bar(i, i + 1) is 95
     77 PASS bar(i, i + 1) is 97
     78 PASS bar(i, i + 1) is 99
     79 PASS bar(i, i + 1) is 101
     80 PASS bar(i, i + 1) is 103
     81 PASS bar(i, i + 1) is 105
     82 PASS bar(i, i + 1) is 107
     83 PASS bar(i, i + 1) is 109
     84 PASS bar(i, i + 1) is 111
     85 PASS bar(i, i + 1) is 113
     86 PASS bar(i, i + 1) is 115
     87 PASS bar(i, i + 1) is 117
     88 PASS bar(i, i + 1) is 119
     89 PASS bar(i, i + 1) is 121
     90 PASS bar(i, i + 1) is 123
     91 PASS bar(i, i + 1) is 125
     92 PASS bar(i, i + 1) is 127
     93 PASS bar(i, i + 1) is 129
     94 PASS bar(i, i + 1) is 131
     95 PASS bar(i, i + 1) is 133
     96 PASS bar(i, i + 1) is 135
     97 PASS bar(i, i + 1) is 137
     98 PASS bar(i, i + 1) is 139
     99 PASS bar(i, i + 1) is 141
    100 PASS bar(i, i + 1) is 143
    101 PASS bar(i, i + 1) is 145
    102 PASS bar(i, i + 1) is 147
    103 PASS bar(i, i + 1) is 149
    104 PASS bar(i, i + 1) is 151
    105 PASS bar(i, i + 1) is 153
    106 PASS bar(i, i + 1) is 155
    107 PASS bar(i, i + 1) is 157
    108 PASS bar(i, i + 1) is 159
    109 PASS bar(i, i + 1) is 161
    110 PASS bar(i, i + 1) is 163
    111 PASS bar(i, i + 1) is 165
    112 PASS bar(i, i + 1) is 167
    113 PASS bar(i, i + 1) is 169
    114 PASS bar(i, i + 1) is 171
    115 PASS bar(i, i + 1) is 173
    116 PASS bar(i, i + 1) is 175
    117 PASS bar(i, i + 1) is 177
    118 PASS bar(i, i + 1) is 179
    119 PASS bar(i, i + 1) is 181
    120 PASS bar(i, i + 1) is 183
    121 PASS bar(i, i + 1) is 185
    122 PASS bar(i, i + 1) is 187
    123 PASS bar(i, i + 1) is 189
    124 PASS bar(i, i + 1) is 191
    125 PASS bar(i, i + 1) is 193
    126 PASS bar(i, i + 1) is 195
    127 PASS bar(i, i + 1) is 197
    128 PASS bar(i, i + 1) is 199
    129 PASS bar(i, i + 1) is 201
    130 PASS bar(i, i + 1) is 203
    131 PASS bar(i, i + 1) is 205
    132 PASS bar(i, i + 1) is 207
    133 PASS bar(i, i + 1) is 209
    134 PASS bar(i, i + 1) is 211
    135 PASS bar(i, i + 1) is 213
    136 PASS bar(i, i + 1) is 215
    137 PASS bar(i, i + 1) is 217
    138 PASS bar(i, i + 1) is 219
    139 PASS bar(i, i + 1) is 221
    140 PASS bar(i, i + 1) is 223
    141 PASS bar(i, i + 1) is 225
    142 PASS bar(i, i + 1) is 227
    143 PASS bar(i, i + 1) is 229
    144 PASS bar(i, i + 1) is 231
    145 PASS bar(i, i + 1) is 233
    146 PASS bar(i, i + 1) is 235
    147 PASS bar(i, i + 1) is 237
    148 PASS bar(i, i + 1) is 239
    149 PASS bar(i, i + 1) is 241
    150 PASS bar(i, i + 1) is 243
    151 PASS bar(i, i + 1) is 245
    152 PASS bar(i, i + 1) is 247
    153 PASS bar(i, i + 1) is 249
    154 PASS bar(i, i + 1) is 251
    155 PASS bar(i, i + 1) is 253
    156 PASS bar(i, i + 1) is 255
    157 PASS bar(i, i + 1) is 257
    158 PASS bar(i, i + 1) is 259
    159 PASS bar(i, i + 1) is 261
    160 PASS bar(i, i + 1) is 263
    161 PASS bar(i, i + 1) is 265
    162 PASS bar(i, i + 1) is 267
    163 PASS bar(i, i + 1) is 269
    164 PASS bar(i, i + 1) is 271
    165 PASS bar(i, i + 1) is 273
    166 PASS bar(i, i + 1) is 275
    167 PASS bar(i, i + 1) is 277
    168 PASS bar(i, i + 1) is 279
    169 PASS bar(i, i + 1) is 281
    170 PASS bar(i, i + 1) is 283
    171 PASS bar(i, i + 1) is 285
    172 PASS bar(i, i + 1) is 287
    173 PASS bar(i, i + 1) is 289
    174 PASS bar(i, i + 1) is 291
    175 PASS bar(i, i + 1) is 293
    176 PASS bar(i, i + 1) is 295
    177 PASS bar(i, i + 1) is 297
    178 PASS bar(i, i + 1) is 299
    179 PASS bar(i, i + 1) is -1
    180 PASS bar(i, i + 1) is -1
    181 PASS bar(i, i + 1) is -1
    182 PASS bar(i, i + 1) is -1
    183 PASS bar(i, i + 1) is -1
    184 PASS bar(i, i + 1) is -1
    185 PASS bar(i, i + 1) is -1
    186 PASS bar(i, i + 1) is -1
    187 PASS bar(i, i + 1) is -1
    188 PASS bar(i, i + 1) is -1
    189 PASS bar(i, i + 1) is -1
    190 PASS bar(i, i + 1) is -1
    191 PASS bar(i, i + 1) is -1
    192 PASS bar(i, i + 1) is -1
    193 PASS bar(i, i + 1) is -1
    194 PASS bar(i, i + 1) is -1
    195 PASS bar(i, i + 1) is -1
    196 PASS bar(i, i + 1) is -1
    197 PASS bar(i, i + 1) is -1
    198 PASS bar(i, i + 1) is -1
    199 PASS bar(i, i + 1) is -1
    200 PASS bar(i, i + 1) is -1
    201 PASS bar(i, i + 1) is -1
    202 PASS bar(i, i + 1) is -1
    203 PASS bar(i, i + 1) is -1
    204 PASS bar(i, i + 1) is -1
    205 PASS bar(i, i + 1) is -1
    206 PASS bar(i, i + 1) is -1
    207 PASS bar(i, i + 1) is -1
    208 PASS bar(i, i + 1) is -1
    209 PASS bar(i, i + 1) is -1
    210 PASS bar(i, i + 1) is -1
    211 PASS bar(i, i + 1) is -1
    212 PASS bar(i, i + 1) is -1
    213 PASS bar(i, i + 1) is -1
    214 PASS bar(i, i + 1) is -1
    215 PASS bar(i, i + 1) is -1
    216 PASS bar(i, i + 1) is -1
    217 PASS bar(i, i + 1) is -1
    218 PASS bar(i, i + 1) is -1
    219 PASS bar(i, i + 1) is -1
    220 PASS bar(i, i + 1) is -1
    221 PASS bar(i, i + 1) is -1
    222 PASS bar(i, i + 1) is -1
    223 PASS bar(i, i + 1) is -1
    224 PASS bar(i, i + 1) is -1
    225 PASS bar(i, i + 1) is -1
    226 PASS bar(i, i + 1) is -1
    227 PASS bar(i, i + 1) is -1
    228 PASS bar(i, i + 1) is -1
    229 PASS successfullyParsed is true
    230 
    231 TEST COMPLETE
    232 
    233