aboutsummaryrefslogtreecommitdiff
path: root/test/compress/loops.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/loops.js')
-rw-r--r--test/compress/loops.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js
index 2d04e235..df3011cd 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -257,7 +257,7 @@ issue_186: {
else
bar();
}
- expect_exact: 'var x=3;if(foo())do do alert(x);while(--x)while(x)else bar();'
+ expect_exact: 'var x=3;if(foo())do{do{alert(x)}while(--x)}while(x);else bar();'
}
issue_186_ie8: {
@@ -276,7 +276,7 @@ issue_186_ie8: {
else
bar();
}
- expect_exact: 'var x=3;if(foo())do do alert(x);while(--x)while(x)else bar();'
+ expect_exact: 'var x=3;if(foo()){do{do{alert(x)}while(--x)}while(x)}else bar();'
}
issue_186_beautify: {
@@ -295,7 +295,7 @@ issue_186_beautify: {
else
bar();
}
- expect_exact: 'var x = 3;\n\nif (foo()) do do alert(x); while (--x); while (x); else bar();'
+ expect_exact: 'var x = 3;\n\nif (foo()) do {\n do {\n alert(x);\n } while (--x);\n} while (x); else bar();'
}
issue_186_beautify_ie8: {
@@ -314,7 +314,7 @@ issue_186_beautify_ie8: {
else
bar();
}
- expect_exact: 'var x = 3;\n\nif (foo()) do do alert(x); while (--x) while (x) else bar();'
+ expect_exact: 'var x = 3;\n\nif (foo()) {\n do {\n do {\n alert(x);\n } while (--x);\n } while (x);\n} else bar();'
}
issue_186_bracketize: {
@@ -394,5 +394,5 @@ issue_186_beautify_bracketize_ie8: {
else
bar();
}
- expect_exact: 'var x = 3;\n\nif (foo()) {\n do {\n do {\n alert(x);\n } while (--x)\n } while (x)\n} else {\n bar();\n}'
+ expect_exact: 'var x = 3;\n\nif (foo()) {\n do {\n do {\n alert(x);\n } while (--x);\n } while (x);\n} else {\n bar();\n}'
}