diff options
Diffstat (limited to 'test/compress/max_line_len.js')
-rw-r--r-- | test/compress/max_line_len.js | 34 |
1 files changed, 24 insertions, 10 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: [] } |