diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-01-08 20:44:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 20:44:03 +0800 |
commit | 5d258259a492d1e04c952024d3d5662c65bb0ce6 (patch) | |
tree | 93bcf4fc17af21cef2ed4ec333a3e19444b4e5eb /test/input/issue-1482 | |
parent | 14c35739ddb1c0b181d8c54566171f217014b563 (diff) | |
download | tracifyjs-5d258259a492d1e04c952024d3d5662c65bb0ce6.tar.gz tracifyjs-5d258259a492d1e04c952024d3d5662c65bb0ce6.zip |
introduce `--output-opts` CLI option (#3678)
closes #3675
Diffstat (limited to 'test/input/issue-1482')
-rw-r--r-- | test/input/issue-1482/beautify.js | 17 | ||||
-rw-r--r-- | test/input/issue-1482/default.js | 18 |
2 files changed, 18 insertions, 17 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(); +} diff --git a/test/input/issue-1482/default.js b/test/input/issue-1482/default.js index 14054e98..505b30cc 100644 --- a/test/input/issue-1482/default.js +++ b/test/input/issue-1482/default.js @@ -1,17 +1 @@ -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(); -} +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()} |