Skip to content

Commit

Permalink
Added tests, docs for clean-css.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Apr 17, 2012
1 parent ea570d8 commit 438ed44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/builtin_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ CSS compressors
.. autoclass:: webassets.filter.yui.YUICSSFilter


``cleancss``
~~~~~~~~~~~

.. autoclass:: webassets.filter.cleancss.CleanCSSFilter


.. _filters-css-compilers:

CSS Compilers
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.pip
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Django
# sudo npm install -g less
# sudo npm install -g uglify-js
# sudo npm install -g coffeescript
# sudo npm install -g clean-css
4 changes: 4 additions & 0 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ def test_yui_css(self):
self.mkbundle('foo.css', filters='yui_css', output='out.css').build()
assert self.get('out.css') == """h1{font-family:"Verdana";color:#fff}"""

def test_cleancss(self):
self.mkbundle('foo.css', filters='cleancss', output='out.css').build()
assert self.get('out.css') == 'h1{font-family:"Verdana";color:#FFF}'


class TestCoffeeScript(TempEnvironmentHelper):

Expand Down

0 comments on commit 438ed44

Please sign in to comment.