2011-03-23 21:36:42 +00:00
|
|
|
# Copyright 2011 the V8 project authors. All rights reserved.
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met:
|
|
|
|
#
|
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above
|
|
|
|
# copyright notice, this list of conditions and the following
|
|
|
|
# disclaimer in the documentation and/or other materials provided
|
|
|
|
# with the distribution.
|
|
|
|
# * Neither the name of Google Inc. nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2011-10-07 07:30:45 +00:00
|
|
|
prefix test262
|
|
|
|
def FAIL_OK = FAIL, OKAY
|
2011-03-23 21:36:42 +00:00
|
|
|
|
2011-10-07 07:30:45 +00:00
|
|
|
############################### BUGS ###################################
|
2011-03-23 21:36:42 +00:00
|
|
|
|
2011-10-07 07:30:45 +00:00
|
|
|
# '__proto__' should be treated as a normal property in JSON.
|
|
|
|
S15.12.2_A1: FAIL
|
2011-04-11 13:54:30 +00:00
|
|
|
|
2011-10-07 07:30:45 +00:00
|
|
|
# V8 Bug: http://code.google.com/p/v8/issues/detail?id=1624
|
|
|
|
S10.4.2.1_A1: FAIL
|
2011-04-11 13:54:30 +00:00
|
|
|
|
2011-12-14 14:55:16 +00:00
|
|
|
# V8 Bug: http://code.google.com/p/v8/issues/detail?id=1475
|
|
|
|
15.2.3.6-4-405: FAIL
|
|
|
|
15.2.3.6-4-410: FAIL
|
|
|
|
15.2.3.6-4-415: FAIL
|
|
|
|
15.2.3.6-4-420: FAIL
|
|
|
|
|
2011-10-07 07:30:45 +00:00
|
|
|
##################### DELIBERATE INCOMPATIBILITIES #####################
|
|
|
|
|
|
|
|
# We deliberately treat arguments to parseInt() with a leading zero as
|
|
|
|
# octal numbers in order to not break the web.
|
|
|
|
S15.1.2.2_A5.1_T1: FAIL_OK
|
|
|
|
|
2012-02-29 13:31:10 +00:00
|
|
|
# This tests precision of Math.tan and Math.sin. The implementation for those
|
|
|
|
# trigonometric functions are platform/compiler dependent. Furthermore, the
|
|
|
|
# expectation values by far deviates from the actual result given by an
|
|
|
|
# arbitrary-precision calculator, making those tests partly bogus.
|
2011-10-07 07:30:45 +00:00
|
|
|
S15.8.2.16_A7: PASS || FAIL_OK
|
|
|
|
S15.8.2.18_A7: PASS || FAIL_OK
|
|
|
|
|
|
|
|
# We are more lenient in which string character escapes we allow than
|
|
|
|
# the spec (7.8.4 p. 19) wants us to be. This is for compatibility.
|
|
|
|
S7.8.4_A6.1_T4: FAIL_OK
|
|
|
|
S7.8.4_A6.2_T1: FAIL_OK
|
|
|
|
S7.8.4_A6.2_T2: FAIL_OK
|
|
|
|
S7.8.4_A7.1_T4: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T1: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T2: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T3: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T4: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T5: FAIL_OK
|
|
|
|
S7.8.4_A7.2_T6: FAIL_OK
|
|
|
|
|
|
|
|
# Linux and Mac defaults to extended 80 bit floating point format in the FPU.
|
|
|
|
# We follow the other major JS engines by keeping this default.
|
2012-03-01 11:37:10 +00:00
|
|
|
S8.5_A2.2: PASS if ($system != linux || $arch == x64), FAIL_OK if ($system == linux && $arch != x64)
|
|
|
|
S8.5_A2.1: PASS if ($system != linux || $arch == x64), FAIL_OK if ($system == linux && $arch != x64)
|
2011-10-07 07:30:45 +00:00
|
|
|
|
|
|
|
############################ SKIPPED TESTS #############################
|
|
|
|
|
|
|
|
# These tests take a looong time to run in debug mode.
|
|
|
|
S15.1.3.2_A2.5_T1: PASS, SKIP if $mode == debug
|
|
|
|
S15.1.3.1_A2.5_T1: PASS, SKIP if $mode == debug
|
|
|
|
|
|
|
|
[ $arch == arm ]
|
|
|
|
|
|
|
|
# BUG(3251225): Tests that timeout with --nocrankshaft.
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|
|
|
|
S15.1.3.1_A2.4_T1: SKIP
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.4_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|
|
|
|
S15.1.3.3_A2.3_T1: SKIP
|
|
|
|
S15.1.3.4_A2.3_T1: SKIP
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|
|
|
|
|
|
|
|
[ $arch == mips ]
|
|
|
|
|
2011-12-05 11:44:17 +00:00
|
|
|
# BUG(3251225): Tests that timeout with --nocrankshaft.
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|
|
|
|
S15.1.3.1_A2.4_T1: SKIP
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.4_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|
|
|
|
S15.1.3.3_A2.3_T1: SKIP
|
|
|
|
S15.1.3.4_A2.3_T1: SKIP
|
|
|
|
S15.1.3.1_A2.5_T1: SKIP
|
|
|
|
S15.1.3.2_A2.5_T1: SKIP
|