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