js/src/tests/test262/ch12/12.5/S12.5_A12_T4.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_T4.js
     8  * @description Using embedded "if" into "if" 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');
    16 //CHECK# 2
    17 var c=0;
    18 if(true)
    19   if (true)
    20     c=2;
    21 if (c!==2)
    22     $ERROR('#2: At embedded "if/else" constructions engine must select right branches');
    24 //CHECK# 3
    25 if(false)
    26   if (true)
    27     $ERROR('#3.1: At embedded "if/else" constructions engine must select right branches');
    29 //CHECK# 4
    30 if(false)
    31   if (true)
    32     $ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');

mercurial