aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/max_line_len.js34
-rw-r--r--test/input/issue-505/output.js6
2 files changed, 27 insertions, 13 deletions
diff --git a/test/compress/max_line_len.js b/test/compress/max_line_len.js
index 7ad9ee0e..5be4e059 100644
--- a/test/compress/max_line_len.js
+++ b/test/compress/max_line_len.js
@@ -8,14 +8,14 @@ too_short: {
}
}
expect_exact: [
- 'function f(a){',
- 'return{',
- 'c:42,',
- 'd:a(),',
- 'e:"foo"}}',
+ "function f(",
+ "a){return{",
+ "c:42,d:a(",
+ '),e:"foo"}',
+ "}",
]
expect_warnings: [
- "WARN: Output exceeds 10 characters"
+ "WARN: Output exceeds 10 characters",
]
}
@@ -29,11 +29,25 @@ just_enough: {
}
}
expect_exact: [
- 'function f(a){',
- 'return{c:42,',
+ "function f(a){",
+ "return{c:42,",
'd:a(),e:"foo"}',
- '}',
+ "}",
]
- expect_warnings: [
+ expect_warnings: []
+}
+
+issue_304: {
+ beautify = {
+ max_line_len: 10,
+ }
+ input: {
+ var a = 0, b = 0, c = 0, d = 0, e = 0;
+ }
+ expect_exact: [
+ "var a=0,",
+ "b=0,c=0,",
+ "d=0,e=0;",
]
+ expect_warnings: []
}
diff --git a/test/input/issue-505/output.js b/test/input/issue-505/output.js
index 5a1bc018..fec88ee0 100644
--- a/test/input/issue-505/output.js
+++ b/test/input/issue-505/output.js
@@ -1,5 +1,5 @@
function test(a){
"aaaaaaaaaaaaaaaa"
-;a(err,data),a(err,data)
-}
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIjAiXSwibmFtZXMiOlsidGVzdCIsImNhbGxiYWNrIiwiZXJyIiwiZGF0YSJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsS0FBS0M7QUFDVjtDQUNBQSxFQUFTQyxJQUFLQyxNQUNkRixFQUFTQyxJQUFLQyJ9 \ No newline at end of file
+;a(err,data),a(err,
+data)}
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIjAiXSwibmFtZXMiOlsidGVzdCIsImNhbGxiYWNrIiwiZXJyIiwiZGF0YSJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsS0FBS0M7QUFDVjtDQUNBQSxFQUFTQyxJQUFLQyxNQUNkRixFQUFTQztBQUFLQyJ9 \ No newline at end of file