See #753 - extra tests covering `local(...)` values.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 7 Apr 2016 06:57:02 +0000 (08:57 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 9 Apr 2016 15:28:04 +0000 (17:28 +0200)
test/integration-test.js
test/text/free-text-processor-test.js

index e2c902f..cb3c9af 100644 (file)
@@ -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}'
index 8f09e9c..8c8c880 100644 (file)
@@ -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__]{}',