From: GoalSmashers Date: Mon, 8 Jul 2013 14:39:15 +0000 (+0200) Subject: Adds tests for removing empty @media queries. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ffe1788ff344869c2f171ec27d73119b71423d6a;p=clean-css.git Adds tests for removing empty @media queries. --- diff --git a/test/unit-test.js b/test/unit-test.js index e2c7d8b7..6732a58c 100644 --- a/test/unit-test.js +++ b/test/unit-test.js @@ -758,6 +758,20 @@ title']", "@media screen{.some{display:none}}" ] }, { removeEmpty: true }), + 'empty @media': cssContext({ + 'simple': [ + '@media print{}', + '' + ], + 'simple with and': [ + '@media print and screen{}', + '' + ], + 'complex': [ + '@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {\n}', + '' + ] + }, { removeEmpty: true }), 'skip empty elements': cssContext({ 'empty #1': 'a{}', 'empty #2': 'div>a{}',