diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/sequences.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 3fb26278..10492565 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -688,3 +688,25 @@ side_effects_cascade_3: { } } } + +issue_27: { + options = { + cascade: true, + passes: 2, + sequences: true, + side_effects: true, + unused: true, + } + input: { + (function(jQuery) { + var $; + $ = jQuery; + $("body").addClass("foo"); + })(jQuery); + } + expect: { + (function(jQuery) { + jQuery("body").addClass("foo"); + })(jQuery); + } +} |