From c00aef76210cc7e657a9e8a02cdacdf305c76af3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 12 Nov 2005 12:38:22 +0100 Subject: fix for comment stripping in CSS compression darcs-hash:20051112113822-7ad00-507d694e91f85274266df71b7912690c65bc2b5e.gz --- _test/cases/lib/exe/css_css_compress.test.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '_test') diff --git a/_test/cases/lib/exe/css_css_compress.test.php b/_test/cases/lib/exe/css_css_compress.test.php index df5d4cba0..68d19fae8 100644 --- a/_test/cases/lib/exe/css_css_compress.test.php +++ b/_test/cases/lib/exe/css_css_compress.test.php @@ -29,6 +29,16 @@ class css_css_compress_test extends UnitTestCase { $this->assertEqual(css_compress($text), '/* \\*/display:inline;/* */'); } + function test_hack2(){ + $text = '/* min-height hack for Internet Explorer http://www.cssplay.co.uk/boxes/minheight.html */ + /*\\*/ + * html .page { + height: 450px; + } + /**/'; + $this->assertEqual(css_compress($text), '/*\\*/* html .page{height:450px;}/**/'); + } + function test_nl1(){ $text = "a{left:20px;\ntop:20px}"; $this->assertEqual(css_compress($text), 'a{left:20px;top:20px}'); -- cgit v1.2.3