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

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:3b8a15cf956c
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
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 */
10
11 //CHECK# 1
12 if(true)
13 if (false)
14 $ERROR('#1.1: At embedded "if/else" constructions engine must select right branches');
15
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');
23
24 //CHECK# 3
25 if(false)
26 if (true)
27 $ERROR('#3.1: At embedded "if/else" constructions engine must select right branches');
28
29 //CHECK# 4
30 if(false)
31 if (true)
32 $ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
33

mercurial