summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
Diffstat (limited to '_test')
-rw-r--r--_test/cases/lib/exe/css_css_compress.test.php8
-rw-r--r--_test/lib/testmanager.php4
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');
}
}