8ea74e265e43710bbe5e9b5443db0fc702f53132
[platform/framework/web/crosswalk-tizen.git] /
1 if(true){doStuff()}
2
3 if(   foo ||bar   ){ if (bar      ===  'bar'){
4     // nested
5 log('nested if'); } else { log('nested else')
6 } }
7 else if   (baz==null)
8 {
9             // else if
10 log('elseif');
11 }else{
12         // else
13     log('else');
14 // should keep the 2 empty lines
15
16
17 }
18
19 if(    singleLine  )singleLine();
20
21
22 // it's a trap!
23 if (asi && noBraces)
24 dolor()
25 else
26     amet();
27
28
29
30 // issue #34 (break line comment into individual line)
31 if ( window.DOMParser ) { // Standard
32     tmp = new DOMParser();
33     xml = tmp.parseFromString( data , "text/xml" );
34 } else { // IE
35     xml = new ActiveXObject( "Microsoft.XMLDOM" );
36     xml.async = "false";
37     xml.loadXML( data );
38 }
39
40
41 // issue #196
42 if (a)
43   a(); // run a
44 else if (b)
45   b(); // run b
46 else {
47   c(); // run c
48 }