js/src/tests/test262/ch12/12.5/S12.5_A12_T1.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Embedded "if/else" constructions are allowed
     6  *
     7  * @path ch12/12.5/S12.5_A12_T1.js
     8  * @description Using embedded "if/else" into "if/else" constructions
     9  */
    11 //CHECK# 1
    12 if(true)
    13   if (false)
    14     $ERROR('#1.1: At embedded "if/else" constructions engine must select right branches');
    15   else
    16     ;
    17 else 
    18   if (true)
    19     $ERROR('#1.2: At embedded "if/else" constructions engine must select right branches');
    20   else
    21     $ERROR('#1.3: At embedded "if/else" constructions engine must select right branches');
    23 //CHECK# 2
    24 if(true)
    25   if (true)
    26     ;
    27   else
    28     $ERROR('#2.1: At embedded "if/else" constructions engine must select right branches');
    29 else 
    30   if (true)
    31     $ERROR('#2.2: At embedded "if/else" constructions engine must select right branches');
    32   else
    33     $ERROR('#2.3: At embedded "if/else" constructions engine must select right branches');
    35 //CHECK# 3
    36 if(false)
    37   if (true)
    38     $ERROR('#3.1: At embedded "if/else" constructions engine must select right branches');
    39   else
    40     $ERROR('#3.2: At embedded "if/else" constructions engine must select right branches');
    41 else 
    42   if (true)
    43     ;
    44   else
    45     $ERROR('#3.3: At embedded "if/else" constructions engine must select right branches');
    47 //CHECK# 4
    48 if(false)
    49   if (true)
    50     $ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
    51   else
    52     $ERROR('#4.2: At embedded "if/else" constructions engine must select right branches');
    53 else 
    54   if (false)
    55     $ERROR('#4.3: At embedded "if/else" constructions engine must select right branches');
    56   else
    57     ;

mercurial