Skip to content

Commit

Permalink
See #753 - extra tests covering local(...) values.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubpawlowicz committed Apr 7, 2016
1 parent 89aa590 commit c0d4f4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
5 changes: 5 additions & 0 deletions test/text/free-text-processor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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__]{}',
Expand Down

0 comments on commit c0d4f4a

Please sign in to comment.