diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2005-11-03 12:47:01 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2005-11-03 12:47:01 +0100 |
commit | 5646f69041af08c6131237b27bd8adedd4a717e7 (patch) | |
tree | 0f2f7edef7cfb563bdc4e9b893ca5e816036f970 /_test | |
parent | 0dc92c6f78995331021c3b8c6a889913cf3f7de3 (diff) | |
download | rpg-5646f69041af08c6131237b27bd8adedd4a717e7.tar.gz rpg-5646f69041af08c6131237b27bd8adedd4a717e7.tar.bz2 |
a small CSS hack to make the buttons work in IE5.2 Mac
darcs-hash:20051103114701-6e07b-cb87eca037066a21f59da7f14e65986873607e29.gz
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/lib/exe/css_css_compress.test.php | 8 | ||||
-rw-r--r-- | _test/lib/testmanager.php | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/_test/cases/lib/exe/css_css_compress.test.php b/_test/cases/lib/exe/css_css_compress.test.php index 138635999..df5d4cba0 100644 --- a/_test/cases/lib/exe/css_css_compress.test.php +++ b/_test/cases/lib/exe/css_css_compress.test.php @@ -21,6 +21,14 @@ class css_css_compress_test extends UnitTestCase { $this->assertEqual(css_compress($text), '#comment/* */{color:lime;}'); } + function test_hack(){ + $text = '/* Mac IE will not see this and continue with inline-block */ + /* \\*/ + display: inline; + /* */'; + $this->assertEqual(css_compress($text), '/* \\*/display:inline;/* */'); + } + function test_nl1(){ $text = "a{left:20px;\ntop:20px}"; $this->assertEqual(css_compress($text), 'a{left:20px;top:20px}'); diff --git a/_test/lib/testmanager.php b/_test/lib/testmanager.php index 70a2cd979..c23d18441 100644 --- a/_test/lib/testmanager.php +++ b/_test/lib/testmanager.php @@ -9,9 +9,9 @@ define('TEST_CASES',realpath(dirname(__FILE__).'/../cases')); // try to load runkit extension if (!extension_loaded('runkit')) { if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { - dl('php_runkit.dll'); + @dl('php_runkit.dll'); } else { - dl('runkit.so'); + @dl('runkit.so'); } } |