Home | History | Annotate | Download | only in test262-es6
      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 [
     29 [ALWAYS, {
     30   ############################### BUGS ###################################
     31 
     32   '15.5.4.9_CE': [['no_i18n', SKIP]],
     33 
     34   # BUG(v8:3455)
     35   '11.2.3_b': [FAIL],
     36   '12.2.3_b': [FAIL],
     37 
     38   ###################### NEEDS INVESTIGATION #######################
     39 
     40   # Possibly same cause as S8.5_A2.1, below: floating-point tests.
     41   'S15.8.2.16_A7': [PASS, FAIL_OK],
     42   'S15.8.2.18_A7': [PASS, FAIL_OK],
     43   'S15.8.2.7_A7': [PASS, FAIL_OK],
     44 
     45   # This is an incompatibility between ES5 and V8 on enumerating
     46   # shadowed elements in a for..in loop.
     47   # https://code.google.com/p/v8/issues/detail?id=705
     48   '12.6.4-2': [PASS, FAIL_OK],
     49 
     50   ###################### MISSING ES6 FEATURES #######################
     51 
     52   # Array.from
     53   'S22.1.2.1_T1': [FAIL],
     54   'S22.1.2.1_T2': [FAIL],
     55 
     56   # Direct proxies
     57   'Array.prototype.find_callable-predicate': [FAIL],
     58 
     59   ######################## OBSOLETED BY ES6 ###########################
     60 
     61   # ES6 allows duplicate properties
     62   # TODO(arv): Reactivate when check removal has relanded.
     63   # '11.1.5-4-4-a-1-s': [FAIL],
     64   # '11.1.5_4-4-b-1': [FAIL],
     65   # '11.1.5_4-4-b-2': [FAIL],
     66   # '11.1.5_4-4-c-1': [FAIL],
     67   # '11.1.5_4-4-c-2': [FAIL],
     68   # '11.1.5_4-4-d-1': [FAIL],
     69   # '11.1.5_4-4-d-2': [FAIL],
     70   # '11.1.5_4-4-d-3': [FAIL],
     71   # '11.1.5_4-4-d-4': [FAIL],
     72 
     73   # ES6 allows block-local functions.
     74   'Sbp_A1_T1': [FAIL],
     75   'Sbp_A2_T1': [FAIL],
     76   'Sbp_A2_T2': [FAIL],
     77   'Sbp_A3_T1': [FAIL],
     78   'Sbp_A3_T2': [FAIL],
     79   'Sbp_A4_T1': [FAIL],
     80   'Sbp_A4_T2': [FAIL],
     81   'Sbp_A5_T1': [PASS], # Test is broken (strict reference to unbound variable)
     82   'Sbp_A5_T2': [FAIL],
     83 
     84   ######################## NEEDS INVESTIGATION ###########################
     85 
     86   # These test failures are specific to the intl402 suite and need investigation
     87   # to be either marked as bugs with issues filed for them or as deliberate
     88   # incompatibilities if the test cases turn out to be broken or ambiguous.
     89   '6.2.3': [FAIL],
     90   '9.2.1_2': [FAIL],
     91   '9.2.6_2': [FAIL],
     92   '10.1.1_a': [FAIL],
     93   '10.1.1_19_c': [PASS, FAIL, NO_VARIANTS],
     94   '10.1.2.1_4': [FAIL],
     95   '10.2.3_b': [PASS, FAIL],
     96   '10.3_a': [FAIL],
     97   '11.1.1_17': [PASS, FAIL],
     98   '11.1.1_19': [PASS, FAIL],
     99   '11.1.1_20_c': [FAIL],
    100   '11.1.1_a': [FAIL],
    101   '11.1.2.1_4': [FAIL],
    102   '11.3.2_FN_2': [PASS, FAIL],
    103   '11.3.2_TRF': [PASS, FAIL],
    104   '11.3_a': [FAIL],
    105   '12.1.1_a': [FAIL],
    106   '12.1.2.1_4': [FAIL],
    107   '12.3.2_FDT_7_a_iv': [FAIL],
    108   '12.3.3': [FAIL],
    109   '12.3_a': [FAIL],
    110   '15.5.4.9_3': [PASS, FAIL],
    111 
    112   ##################### DELIBERATE INCOMPATIBILITIES #####################
    113 
    114   'S15.8.2.8_A6': [PASS, FAIL_OK],  # Math.exp (less precise with --fast-math)
    115 
    116   # Linux for ia32 (and therefore simulators) default to extended 80 bit
    117   # floating point formats, so these tests checking 64-bit FP precision fail.
    118   # The other platforms/arch's pass these tests.
    119   # We follow the other major JS engines by keeping this default.
    120   'S8.5_A2.1': [PASS, FAIL_OK],
    121   'S8.5_A2.2': [PASS, FAIL_OK],
    122 
    123   ############################ INVALID TESTS #############################
    124 
    125   # The reference value calculated by Test262 is incorrect if you run these
    126   # tests in PST/PDT between first Sunday in March and first Sunday in April.
    127   # The DST switch was moved in 2007 whereas Test262 bases the reference value
    128   # on 2000. Test262 Bug: https://bugs.ecmascript.org/show_bug.cgi?id=293
    129   'S15.9.3.1_A5_T1': [PASS, FAIL_OK],
    130   'S15.9.3.1_A5_T2': [PASS, FAIL_OK],
    131   'S15.9.3.1_A5_T3': [PASS, FAIL_OK],
    132   'S15.9.3.1_A5_T4': [PASS, FAIL_OK],
    133   'S15.9.3.1_A5_T5': [PASS, FAIL_OK],
    134   'S15.9.3.1_A5_T6': [PASS, FAIL_OK],
    135 
    136   # Test makes unjustified assumptions about the number of calls to SortCompare.
    137   # Test262 Bug: https://bugs.ecmascript.org/show_bug.cgi?id=596
    138   'bug_596_1': [PASS, FAIL_OK],
    139 
    140   ############################ SKIPPED TESTS #############################
    141 
    142   # These tests take a looong time to run in debug mode.
    143   'S15.1.3.1_A2.5_T1': [PASS, ['mode == debug', SKIP]],
    144   'S15.1.3.2_A2.5_T1': [PASS, ['mode == debug', SKIP]],
    145 }],  # ALWAYS
    146 
    147 ['system == macos', {
    148   '11.3.2_TRP': [FAIL],
    149   '9.2.5_11_g_ii_2': [FAIL],
    150 }],  # system == macos
    151 
    152 ['arch == arm or arch == mipsel or arch == mips or arch == arm64 or arch == mips64el', {
    153 
    154   # TODO(mstarzinger): Causes stack overflow on simulators due to eager
    155   # compilation of parenthesized function literals. Needs investigation.
    156   'S13.2.1_A1_T1': [SKIP],
    157 
    158   # BUG(3251225): Tests that timeout with --nocrankshaft.
    159   'S15.1.3.1_A2.4_T1': [SKIP],
    160   'S15.1.3.1_A2.5_T1': [SKIP],
    161   'S15.1.3.2_A2.4_T1': [SKIP],
    162   'S15.1.3.2_A2.5_T1': [SKIP],
    163   'S15.1.3.3_A2.3_T1': [SKIP],
    164   'S15.1.3.4_A2.3_T1': [SKIP],
    165 }],  # 'arch == arm or arch == mipsel or arch == mips or arch == arm64'
    166 ]
    167