blob: 82d8a61c7a7ca3892d58a5ae20995f7661bfea32 [file] [log] [blame]
ager@chromium.orgc4c92722009-11-18 14:12:51 +00001# Copyright 2009 the V8 project authors. All rights reserved.
2# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions are
4# met:
5#
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of Google Inc. nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28prefix sputnik
29def FAIL_OK = FAIL, OKAY
30
ricow@chromium.org4f693d62011-07-04 14:01:31 +000031############################### BUGS ###################################
32
33# A bound function should fail on access to 'caller' and 'arguments'.
34S15.3.4.5_A1: FAIL
35S15.3.4.5_A2: FAIL
36
37# '__proto__' should be treated as a normal property in JSON.
38S15.12.2_A1: FAIL
39
ager@chromium.orgc4c92722009-11-18 14:12:51 +000040##################### DELIBERATE INCOMPATIBILITIES #####################
41
ager@chromium.orgc4c92722009-11-18 14:12:51 +000042# This tests precision of trignometric functions. We're slightly off
43# from the implementation in libc (~ 1e-17) but it's not clear if we
44# or they are closer to the right answer, or if it even matters.
45S15.8.2.16_A7: PASS || FAIL_OK
46S15.8.2.18_A7: PASS || FAIL_OK
47S15.8.2.13_A23: PASS || FAIL_OK
48
49# We allow calls to regexp exec() with no arguments to fail for
50# compatibility reasons.
51S15.10.6.2_A1_T16: FAIL_OK
ricow@chromium.org4f693d62011-07-04 14:01:31 +000052S15.10.6.2_A12: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +000053S15.10.6.3_A1_T16: FAIL_OK
54
ager@chromium.orgc4c92722009-11-18 14:12:51 +000055# We are silent in some regexp cases where the spec wants us to give
56# errors, for compatibility.
57S15.10.2.11_A1_T2: FAIL
58S15.10.2.11_A1_T3: FAIL
59S15.10.4.1_A5_T1: FAIL
60S15.10.4.1_A5_T2: FAIL
61S15.10.4.1_A5_T3: FAIL
62S15.10.4.1_A5_T4: FAIL
63S15.10.4.1_A5_T5: FAIL
64S15.10.4.1_A5_T6: FAIL
65S15.10.4.1_A5_T7: FAIL
66S15.10.4.1_A5_T8: FAIL
67S15.10.4.1_A5_T9: FAIL
68
69# We are more lenient in which string character escapes we allow than
70# the spec (7.8.4 p. 19) wants us to be. This is for compatibility.
71S7.8.4_A4.3_T2: FAIL_OK
72S7.8.4_A4.3_T2: FAIL_OK
73S7.8.4_A6.2_T2: FAIL_OK
74S7.8.4_A6.1_T4: FAIL_OK
75S7.8.4_A4.3_T4: FAIL_OK
76S7.8.4_A7.2_T2: FAIL_OK
77S7.8.4_A7.1_T4: FAIL_OK
78S7.8.4_A6.4_T2: FAIL_OK
79S7.8.4_A7.4_T2: FAIL_OK
80S7.8.4_A7.2_T4: FAIL_OK
81S7.8.4_A4.3_T6: FAIL_OK
82S7.8.4_A7.2_T6: FAIL_OK
83S7.8.4_A4.3_T1: FAIL_OK
84S7.8.4_A6.2_T1: FAIL_OK
85S7.8.4_A4.3_T3: FAIL_OK
86S7.8.4_A7.2_T1: FAIL_OK
87S7.8.4_A6.4_T1: FAIL_OK
88S7.8.4_A7.2_T3: FAIL_OK
89S7.8.4_A7.4_T1: FAIL_OK
90S7.8.4_A4.3_T5: FAIL_OK
91S7.8.4_A7.2_T5: FAIL_OK
92S7.8.4_A4.3_T1: FAIL_OK
93S7.8.4_A6.2_T1: FAIL_OK
94S7.8.4_A4.3_T3: FAIL_OK
95S7.8.4_A7.2_T1: FAIL_OK
96S7.8.4_A6.4_T1: FAIL_OK
97S7.8.4_A7.2_T3: FAIL_OK
98S7.8.4_A7.4_T1: FAIL_OK
99S7.8.4_A4.3_T5: FAIL_OK
100S7.8.4_A7.2_T5: FAIL_OK
101
whesse@chromium.org7b260152011-06-20 15:33:18 +0000102# We allow some keywords to be used as identifiers.
whesse@chromium.org7b260152011-06-20 15:33:18 +0000103S7.5.3_A1.15: FAIL_OK
whesse@chromium.org7b260152011-06-20 15:33:18 +0000104S7.5.3_A1.18: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000105S7.5.3_A1.21: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000106S7.5.3_A1.22: FAIL_OK
107S7.5.3_A1.23: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000108S7.5.3_A1.24: FAIL_OK
whesse@chromium.org7b260152011-06-20 15:33:18 +0000109S7.5.3_A1.26: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000110
111# This checks for non-262 behavior
112S12.6.4_A14_T1: PASS || FAIL_OK
113S12.6.4_R1: PASS || FAIL_OK
114S12.6.4_R2: PASS || FAIL_OK
115S8.4_D2.1: PASS || FAIL_OK
116S8.4_D2.2: PASS || FAIL_OK
117S8.4_D2.3: PASS || FAIL_OK
118S8.4_D2.4: PASS || FAIL_OK
119S8.4_D2.5: PASS || FAIL_OK
120S8.4_D2.6: PASS || FAIL_OK
121S8.4_D2.7: PASS || FAIL_OK
122S8.4_D1.1: PASS || FAIL_OK
123S13.2_D1.2: PASS || FAIL_OK
124S11.4.3_D1.2: PASS || FAIL_OK
125S7.6_D1: PASS || FAIL_OK
126S7.6_D2: PASS || FAIL_OK
127S15.1.2.2_D1.2: PASS || FAIL_OK
128S13_D1_T1: PASS || FAIL_OK
129S14_D4_T3: PASS || FAIL_OK
130S14_D7: PASS || FAIL_OK
131S15.5.4.11_D1.1_T2: PASS || FAIL_OK
132S15.5.4.11_D1.1_T4: PASS || FAIL_OK
133S15.5.2_D2: PASS || FAIL_OK
134S15.5.4.11_D1.1_T1: PASS || FAIL_OK
135S15.5.4.11_D1.1_T3: PASS || FAIL_OK
136S12.6.4_D1: PASS || FAIL_OK
137
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000138# We allow function declarations within statements
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000139S12.6.2_A13_T1: FAIL_OK
140S12.6.2_A13_T2: FAIL_OK
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000141S12.6.4_A13_T1: FAIL_OK
142S12.6.4_A13_T2: FAIL_OK
143#S12.6.4_A13_T3: FAIL_OK
144S15.3.4.2_A1_T1: FAIL_OK
145
146# Linux and Mac defaults to extended 80 bit floating point format in the FPU.
147# We follow the other major JS engines by keeping this default.
148S8.5_A2.2: PASS, FAIL if $system == linux, FAIL if $system == macos
149S8.5_A2.1: PASS, FAIL if $system == linux, FAIL if $system == macos
150
sgjesse@chromium.orgd3b3be02010-08-06 08:09:27 +0000151##################### ES3 TESTS #########################
152# These tests check for ES3 semantics, and differ from ES5.
153# When we follow ES5 semantics, it's ok to fail the test.
154
vegorov@chromium.org26c16f82010-08-11 13:41:03 +0000155# Allow keywords as names of properties in object initialisers and
156# in dot-notation property access.
sgjesse@chromium.orgd3b3be02010-08-06 08:09:27 +0000157S11.1.5_A4.1: FAIL_OK
158S11.1.5_A4.2: FAIL_OK
159
160# Don't throw type errors when iterating through the undefined object.
161S9.9_A1: FAIL_OK
162S9.9_A2: FAIL_OK
163
ricow@chromium.orgd2be9012011-06-01 06:00:58 +0000164# Calls builtins without an explicit receiver which means that
165# undefined is passed to the builtin. The tests expect the global
166# object to be passed which was true in ES3 but not in ES5.
167S11.1.1_A2: FAIL_OK
168S15.5.4.4_A1_T3: FAIL_OK
169S15.5.4.5_A1_T3: FAIL_OK
170S15.5.4.6_A1_T3: FAIL_OK
171S15.5.4.7_A1_T3: FAIL_OK
172S15.5.4.8_A1_T3: FAIL_OK
173S15.5.4.9_A1_T3: FAIL_OK
174S15.5.4.10_A1_T3: FAIL_OK
175S15.5.4.11_A1_T3: FAIL_OK
176S15.5.4.12_A1_T3: FAIL_OK
177S15.5.4.13_A1_T3: FAIL_OK
178S15.5.4.14_A1_T3: FAIL_OK
179S15.5.4.15_A1_T3: FAIL_OK
180
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000181##################### SKIPPED TESTS #####################
182
183# These tests take a looong time to run in debug mode.
184S15.1.3.2_A2.5_T1: PASS, SKIP if $mode == debug
185S15.1.3.1_A2.5_T1: PASS, SKIP if $mode == debug
186
fschneider@chromium.org3a5fd782011-02-24 10:10:44 +0000187# V8 Bug: http://code.google.com/p/v8/issues/detail?id=1196
188S8.7_A5_T2: FAIL
189
fschneider@chromium.org3a5fd782011-02-24 10:10:44 +0000190# Invalid test case (recent change adding var changes semantics)
191S8.3_A1_T1: FAIL
192# Test bug: http://code.google.com/p/sputniktests/issues/detail?id=35
193S15.5.4.8_A1_T1: FAIL
194# Invalid test case (recent change adding var changes semantics)
195S15.3_A3_T1: FAIL
196# Invalid test case (recent change adding var changes semantics)
197S15.3_A3_T3: FAIL
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000198
199# These tests fail because we had to add bugs to be compatible with JSC. See
200# http://code.google.com/p/chromium/issues/detail?id=1717
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000201S15.5.4.1_A1_T2: FAIL_OK
202S15.5.4_A1: FAIL_OK
203S15.5.4_A3: FAIL_OK
204S15.9.5.10_A1_T2: FAIL_OK
205S15.9.5.11_A1_T2: FAIL_OK
206S15.9.5.12_A1_T2: FAIL_OK
207S15.9.5.13_A1_T2: FAIL_OK
208S15.9.5.14_A1_T2: FAIL_OK
209S15.9.5.15_A1_T2: FAIL_OK
210S15.9.5.16_A1_T2: FAIL_OK
211S15.9.5.17_A1_T2: FAIL_OK
212S15.9.5.18_A1_T2: FAIL_OK
213S15.9.5.19_A1_T2: FAIL_OK
214S15.9.5.20_A1_T2: FAIL_OK
215S15.9.5.21_A1_T2: FAIL_OK
216S15.9.5.22_A1_T2: FAIL_OK
217S15.9.5.23_A1_T2: FAIL_OK
218S15.9.5.24_A1_T2: FAIL_OK
219S15.9.5.25_A1_T2: FAIL_OK
220S15.9.5.26_A1_T2: FAIL_OK
221S15.9.5.27_A1_T2: FAIL_OK
222S15.9.5.28_A1_T2: FAIL_OK
223S15.9.5.29_A1_T2: FAIL_OK
224S15.9.5.2_A1_T2: FAIL_OK
225S15.9.5.30_A1_T2: FAIL_OK
226S15.9.5.31_A1_T2: FAIL_OK
227S15.9.5.32_A1_T2: FAIL_OK
228S15.9.5.33_A1_T2: FAIL_OK
229S15.9.5.34_A1_T2: FAIL_OK
230S15.9.5.35_A1_T2: FAIL_OK
231S15.9.5.36_A1_T2: FAIL_OK
232S15.9.5.37_A1_T2: FAIL_OK
233S15.9.5.38_A1_T2: FAIL_OK
234S15.9.5.39_A1_T2: FAIL_OK
235S15.9.5.3_A1_T2: FAIL_OK
236S15.9.5.40_A1_T2: FAIL_OK
237S15.9.5.41_A1_T2: FAIL_OK
238S15.9.5.42_A1_T2: FAIL_OK
239S15.9.5.4_A1_T2: FAIL_OK
240S15.9.5.5_A1_T2: FAIL_OK
241S15.9.5.6_A1_T2: FAIL_OK
242S15.9.5.7_A1_T2: FAIL_OK
243S15.9.5.8_A1_T2: FAIL_OK
244S15.9.5.9_A1_T2: FAIL_OK
245
kasperl@chromium.orga5551262010-12-07 12:49:48 +0000246[ $arch == arm ]
247
248# BUG(3251225): Tests that timeout with --nocrankshaft.
249S15.1.3.1_A2.5_T1: SKIP
250S15.1.3.2_A2.5_T1: SKIP
251S15.1.3.1_A2.4_T1: SKIP
252S15.1.3.1_A2.5_T1: SKIP
253S15.1.3.2_A2.4_T1: SKIP
254S15.1.3.2_A2.5_T1: SKIP
255S15.1.3.3_A2.3_T1: SKIP
256S15.1.3.4_A2.3_T1: SKIP
257S15.1.3.1_A2.5_T1: SKIP
258S15.1.3.2_A2.5_T1: SKIP
259
ager@chromium.org5c838252010-02-19 08:53:10 +0000260[ $arch == mips ]
261
262# Skip all tests on MIPS.
263*: SKIP