From: Jakub Pawlowicz Date: Wed, 11 Jun 2014 21:02:19 +0000 (+0100) Subject: Moves escaping specs under cssContext. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=114215db8383625f6dcf99095fa0fd06da13af86;p=clean-css.git Moves escaping specs under cssContext. --- diff --git a/test/unit-test.js b/test/unit-test.js index 4e6f6a24..2da2e4eb 100644 --- a/test/unit-test.js +++ b/test/unit-test.js @@ -301,6 +301,10 @@ vows.describe('clean-units').addBatch({ '*{color:red}' ] }), + 'escaping': cssContext({ + 'escaped @ symbol in class name': '.pad--all0\\@sm{padding:0}', + 'escaped @ symbol in id': '#id\\@sm{padding:0}' + }), 'important comments - one': cssContext({ 'strip all but first': [ '/*! important comment */a{color:red}/* some comment *//*! important comment */', @@ -1942,7 +1946,5 @@ title']{display:block}", '@-ms-viewport': '@-ms-viewport{width:device-width}', '@-o-viewport': '@-o-viewport{width:device-width}', '@viewport': '@viewport{width:device-width}' - }), - 'escaped @ symbol in class name': '.pad--all0\\@sm{padding:0}', - 'escaped @ symbol in id': '#id\\@sm{padding:0}' + }) }).export(module);