Add test for double backslash CSS

Issue was reported at https://github.com/forkcms/forkcms/issues/387
This commit is contained in:
Matthias Mullie 2013-04-22 10:16:01 +02:00
parent 622b021aaf
commit 5ff011d577

View File

@ -84,6 +84,19 @@ class CSSTest extends PHPUnit_Framework_TestCase
Minify\CSS::STRIP_WHITESPACE
);
/*
* https://github.com/forkcms/forkcms/issues/387
*
* CSS backslash.
* * Backslash escaped by backslash in CSS
* * Double CSS backslashed escaped twice for in PHP string
*/
$tests[] = array(
'.iconic.map-pin:before { content: "\\\\"; }',
'.iconic.map-pin:before{content:"\\\\"}',
Minify\CSS::ALL
);
return $tests;
}
}