aboutsummaryrefslogtreecommitdiff
path: root/test/input/issue-1482/beautify.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-01-08 20:44:03 +0800
committerGitHub <noreply@github.com>2020-01-08 20:44:03 +0800
commit5d258259a492d1e04c952024d3d5662c65bb0ce6 (patch)
tree93bcf4fc17af21cef2ed4ec333a3e19444b4e5eb /test/input/issue-1482/beautify.js
parent14c35739ddb1c0b181d8c54566171f217014b563 (diff)
downloadtracifyjs-5d258259a492d1e04c952024d3d5662c65bb0ce6.tar.gz
tracifyjs-5d258259a492d1e04c952024d3d5662c65bb0ce6.zip
introduce `--output-opts` CLI option (#3678)
closes #3675
Diffstat (limited to 'test/input/issue-1482/beautify.js')
-rw-r--r--test/input/issue-1482/beautify.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/input/issue-1482/beautify.js b/test/input/issue-1482/beautify.js
new file mode 100644
index 00000000..14054e98
--- /dev/null
+++ b/test/input/issue-1482/beautify.js
@@ -0,0 +1,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();
+}