• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("hello") is "42"
30PASS "" + foo("hello") is "42"
31PASS "" + foo("hello") is "42"
32PASS "" + foo("hello") is "42"
33PASS "" + foo("hello") is "42"
34PASS "" + foo("hello") is "42"
35PASS "" + foo("hello") is "42"
36PASS "" + foo("hello") is "42"
37PASS "" + foo("hello") is "42"
38PASS "" + foo("hello") is "42"
39PASS "" + foo("hello") is "42"
40PASS "" + foo("hello") is "42"
41PASS "" + foo("hello") is "42"
42PASS "" + foo("hello") is "42"
43PASS "" + foo("hello") is "42"
44PASS "" + foo("hello") is "42"
45PASS "" + foo("hello") is "42"
46PASS "" + foo("hello") is "42"
47PASS "" + foo("hello") is "42"
48PASS "" + foo("hello") is "42"
49PASS "" + foo("hello") is "42"
50PASS "" + foo("hello") is "42"
51PASS "" + foo("hello") is "42"
52PASS "" + foo("hello") is "42"
53PASS "" + foo("hello") is "42"
54PASS "" + foo("hello") is "42"
55PASS "" + foo("hello") is "42"
56PASS "" + foo("hello") is "42"
57PASS "" + foo("hello") is "42"
58PASS "" + foo("hello") is "42"
59PASS "" + foo("hello") is "42"
60PASS "" + foo("hello") is "42"
61PASS "" + foo("hello") is "42"
62PASS "" + foo("hello") is "42"
63PASS "" + foo("hello") is "42"
64PASS "" + foo("hello") is "42"
65PASS "" + foo("hello") is "42"
66PASS "" + foo("hello") is "42"
67PASS "" + foo("hello") is "42"
68PASS "" + foo("hello") is "42"
69PASS "" + foo("hello") is "42"
70PASS "" + foo("hello") is "42"
71PASS "" + foo("hello") is "42"
72PASS "" + foo("hello") is "42"
73PASS "" + foo("hello") is "42"
74PASS "" + foo("hello") is "42"
75PASS "" + foo("hello") is "42"
76PASS "" + foo("hello") is "42"
77PASS "" + foo("hello") is "42"
78PASS "" + foo("hello") is "42"
79PASS "" + foo("hello") is "42"
80PASS "" + foo("hello") is "42"
81PASS "" + foo("hello") is "42"
82PASS "" + foo("hello") is "42"
83PASS "" + foo("hello") is "42"
84PASS "" + foo("hello") is "42"
85PASS "" + foo("hello") is "42"
86PASS "" + foo("hello") is "42"
87PASS "" + foo("hello") is "42"
88PASS "" + foo("hello") is "42"
89PASS "" + foo("hello") is "42"
90PASS "" + foo("hello") is "42"
91PASS "" + foo("hello") is "42"
92PASS "" + foo("hello") is "42"
93PASS "" + foo("hello") is "42"
94PASS "" + foo("hello") is "42"
95PASS "" + foo("hello") is "42"
96PASS "" + foo("hello") is "42"
97PASS "" + foo("hello") is "42"
98PASS "" + foo("hello") is "42"
99PASS "" + foo("hello") is "42"
100PASS "" + foo("hello") is "42"
101PASS "" + foo("hello") is "42"
102PASS "" + foo("hello") is "42"
103PASS "" + foo("hello") is "42"
104PASS "" + foo("hello") is "42"
105PASS "" + foo("hello") is "42"
106PASS "" + foo("hello") is "42"
107PASS "" + foo("hello") is "42"
108PASS "" + foo("hello") is "42"
109PASS "" + foo("hello") is "42"
110PASS "" + foo("hello") is "42"
111PASS "" + foo("hello") is "42"
112PASS "" + foo("hello") is "42"
113PASS "" + foo("hello") is "42"
114PASS "" + foo("hello") is "42"
115PASS "" + foo("hello") is "42"
116PASS "" + foo("hello") is "42"
117PASS "" + foo("hello") is "42"
118PASS "" + foo("hello") is "42"
119PASS "" + foo("hello") is "42"
120PASS "" + foo("hello") is "42"
121PASS "" + foo("hello") is "42"
122PASS "" + foo("hello") is "42"
123PASS "" + foo("hello") is "42"
124PASS "" + foo("hello") is "42"
125PASS "" + foo("hello") is "42"
126PASS "" + foo("hello") is "42"
127PASS "" + foo("hello") is "42"
128PASS "" + foo("hello") is "42"
129PASS successfullyParsed is true
130
131TEST COMPLETE
132
133