diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-01-22 13:46:13 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-01-22 13:46:13 +0100 |
commit | fd7c2db0d17e5b53981fef40fe9e3eca46b34038 (patch) | |
tree | c083768128839c2c61702db007f7b4646e8a3a43 /_test | |
parent | bf5e5a5ba7408165918eb7d2398680ff245a48bb (diff) | |
download | rpg-fd7c2db0d17e5b53981fef40fe9e3eca46b34038.tar.gz rpg-fd7c2db0d17e5b53981fef40fe9e3eca46b34038.tar.bz2 |
CSS compressor fix
darcs-hash:20060122124613-7ad00-41ed03a1d6668874a324db8bc98aee72ab90e277.gz
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/lib/exe/css_css_compress.test.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_test/cases/lib/exe/css_css_compress.test.php b/_test/cases/lib/exe/css_css_compress.test.php index 68d19fae8..026caad3c 100644 --- a/_test/cases/lib/exe/css_css_compress.test.php +++ b/_test/cases/lib/exe/css_css_compress.test.php @@ -21,6 +21,25 @@ class css_css_compress_test extends UnitTestCase { $this->assertEqual(css_compress($text), '#comment/* */{color:lime;}'); } + function test_slcom1(){ + $text = '// this is a comment'; + $this->assertEqual(css_compress($text), ''); + } + + function test_slcom2(){ + $text = '#foo { + color: lime; // another comment + }'; + $this->assertEqual(css_compress($text), '#foo{color:lime;}'); + } + + function test_slcom3(){ + $text = '#foo { + background-image: url(http://foo.bar/baz.jpg); + }'; + $this->assertEqual(css_compress($text), '#foo{background-image:url(http://foo.bar/baz.jpg);}'); + } + function test_hack(){ $text = '/* Mac IE will not see this and continue with inline-block */ /* \\*/ |