aboutsummaryrefslogtreecommitdiff
path: root/test/input/issue-1482/beautify.js
blob: 14054e9820ed1f30a01eebd96eee4c6728d8b23f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if (x) foo();

if (x) foo(); else baz();

if (x) foo(); else if (y) bar(); else baz();

if (x) if (y) foo(); else bar(); else baz();

if (x) foo(); else if (y) bar(); else if (z) baz(); else moo();

function f() {
    if (x) foo();
    if (x) foo(); else baz();
    if (x) foo(); else if (y) bar(); else baz();
    if (x) if (y) foo(); else bar(); else baz();
    if (x) foo(); else if (y) bar(); else if (z) baz(); else moo();
}