diff options
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 */ /* \\*/ |