From: Jakub Pawlowicz Date: Thu, 7 Apr 2016 06:57:02 +0000 (+0200) Subject: See #753 - extra tests covering `local(...)` values. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2521f35cfdb644cac70b32ad2bbc763a055a8db7;p=clean-css.git See #753 - extra tests covering `local(...)` values. --- diff --git a/test/integration-test.js b/test/integration-test.js index e2c902fb..cb3c9af2 100644 --- a/test/integration-test.js +++ b/test/integration-test.js @@ -1582,6 +1582,10 @@ vows.describe('integration tests') '@font-face{font-family:PublicVintage;src:url(/PublicVintage.otf) format("opentype")}', '@font-face{font-family:PublicVintage;src:url(/PublicVintage.otf) format("opentype")}' ], + 'keep local quotation': [ + '@font-face{font-family:X;src:local("Pacifico") format("opentype")}', + '@font-face{font-family:X;src:local("Pacifico") format("opentype")}' + ], 'remove font family quotation': [ 'a{font-family:"Helvetica",\'Arial\'}', 'a{font-family:Helvetica,Arial}' diff --git a/test/text/free-text-processor-test.js b/test/text/free-text-processor-test.js index 8f09e9ce..8c8c880f 100644 --- a/test/text/free-text-processor-test.js +++ b/test/text/free-text-processor-test.js @@ -56,6 +56,11 @@ vows.describe(FreeTextProcessor) '@font-face{font-family:X;src:X.ttf format(__ESCAPED_FREE_TEXT_CLEAN_CSS0__)}', '@font-face{font-family:X;src:X.ttf format(\'opentype\')}' ], + 'inside local': [ + '@font-face{font-family:X;src:local(\'Pacifico\') format(\'opentype\')}', + '@font-face{font-family:X;src:local(__ESCAPED_FREE_TEXT_CLEAN_CSS0__) format(__ESCAPED_FREE_TEXT_CLEAN_CSS1__)}', + '@font-face{font-family:X;src:local(\'Pacifico\') format(\'opentype\')}' + ], 'attribute': [ 'a[data-type="search"]{}', 'a[data-type=__ESCAPED_FREE_TEXT_CLEAN_CSS0__]{}',