Home | History | Annotate | Download | only in test262
      1 # Copyright 2011 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 
     28 prefix test262
     29 def FAIL_OK = FAIL, OKAY
     30 
     31 ############################### BUGS ###################################
     32 
     33 # Sequencing of getter side effects on receiver and argument properties
     34 # is wrong. The receiver callback should be called before any arguments
     35 # are evaluated.
     36 # V8 Bug: http://code.google.com/p/v8/issues/detail?id=691
     37 11.2.3-3_3: FAIL
     38 
     39 # Strings that are considered canonically equivalent by the Unicode standard
     40 # return a non-zero value on String.prototype.localeCompare calls.
     41 # V8 Bug: http://code.google.com/p/v8/issues/detail?id=2413
     42 15.5.4.9_CE: FAIL
     43 
     44 ##################### DELIBERATE INCOMPATIBILITIES #####################
     45 
     46 # This tests precision of Math functions.  The implementation for those
     47 # trigonometric functions are platform/compiler dependent.  Furthermore, the
     48 # expectation values by far deviates from the actual result given by an
     49 # arbitrary-precision calculator, making those tests partly bogus.
     50 S15.8.2.8_A6: PASS || FAIL_OK   # Math.exp (less precise with --fast-math)
     51 S15.8.2.16_A7: PASS || FAIL_OK  # Math.sin
     52 S15.8.2.18_A7: PASS || FAIL_OK  # Math.tan
     53 
     54 # Linux for ia32 (and therefore simulators) default to extended 80 bit floating
     55 # point formats, so these tests checking 64-bit FP precision fail. The other
     56 # platforms/arch's pass these tests.
     57 # We follow the other major JS engines by keeping this default.
     58 S8.5_A2.1: PASS || FAIL_OK
     59 S8.5_A2.2: PASS || FAIL_OK
     60 
     61 ############################ INVALID TESTS #############################
     62 
     63 # The reference value calculated by Test262 is incorrect if you run these tests
     64 # in PST/PDT between first Sunday in March and first Sunday in April. The DST
     65 # switch was moved in 2007 whereas Test262 bases the reference value on 2000.
     66 # Test262 Bug: https://bugs.ecmascript.org/show_bug.cgi?id=293
     67 S15.9.3.1_A5_T1: PASS || FAIL_OK
     68 S15.9.3.1_A5_T2: PASS || FAIL_OK
     69 S15.9.3.1_A5_T3: PASS || FAIL_OK
     70 S15.9.3.1_A5_T4: PASS || FAIL_OK
     71 S15.9.3.1_A5_T5: PASS || FAIL_OK
     72 S15.9.3.1_A5_T6: PASS || FAIL_OK
     73 
     74 ############################ SKIPPED TESTS #############################
     75 
     76 # These tests take a looong time to run in debug mode.
     77 S15.1.3.1_A2.5_T1: PASS, SKIP if $mode == debug
     78 S15.1.3.2_A2.5_T1: PASS, SKIP if $mode == debug
     79 
     80 [ $arch == arm || $arch == mipsel ]
     81 
     82 # TODO(mstarzinger): Causes stack overflow on simulators due to eager
     83 # compilation of parenthesized function literals. Needs investigation.
     84 S13.2.1_A1_T1: SKIP
     85 
     86 # BUG(3251225): Tests that timeout with --nocrankshaft.
     87 S15.1.3.1_A2.4_T1: SKIP
     88 S15.1.3.1_A2.5_T1: SKIP
     89 S15.1.3.2_A2.4_T1: SKIP
     90 S15.1.3.2_A2.5_T1: SKIP
     91 S15.1.3.3_A2.3_T1: SKIP
     92 S15.1.3.4_A2.3_T1: SKIP
     93