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