aboutsummaryrefslogtreecommitdiff
path: root/test/input/issue-1482
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/issue-1482')
-rw-r--r--test/input/issue-1482/beautify.js17
-rw-r--r--test/input/issue-1482/default.js18
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()}