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

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:1184adf42f98
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_T3.js
8 * @description Using embedded "if/else" into "if" without "else" 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 else
16 ;
17
18 //CHECK# 2
19 if(true)
20 if (true)
21 ;
22 else
23 $ERROR('#2.1: At embedded "if/else" constructions engine must select right branches');
24
25 //CHECK# 3
26 if(false)
27 if (true)
28 $ERROR('#3.1: At embedded "if/else" constructions engine must select right branches');
29 else
30 $ERROR('#3.2: At embedded "if/else" constructions engine must select right branches');
31
32 //CHECK# 4
33 if(false)
34 if (true)
35 $ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
36 else
37 $ERROR('#4.2: At embedded "if/else" constructions engine must select right branches');
38

mercurial