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