From: Bartosz DziewoƄski Date: Thu, 5 Jun 2014 16:38:41 +0000 (+0200) Subject: CSSMin: Add tests for handling existing data: URIs X-Git-Tag: 1.31.0-rc.0~15463^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=b8c88afe590d7b38f4a8ad6d72ea9b7328013128;p=lhc%2Fweb%2Fwiklou.git CSSMin: Add tests for handling existing data: URIs Just a sanity check inspired by bug 66112. Change-Id: Iac60a1eb15b3ff60822a3f24f2511c4bc64c092a --- diff --git a/tests/phpunit/includes/libs/CSSMinTest.php b/tests/phpunit/includes/libs/CSSMinTest.php index 5475a82c80..bb5e398c6a 100644 --- a/tests/phpunit/includes/libs/CSSMinTest.php +++ b/tests/phpunit/includes/libs/CSSMinTest.php @@ -202,6 +202,16 @@ class CSSMinTest extends MediaWikiTestCase { 'foo { /* @embed */ background: url(red.gif); }', "foo { background: url($red); background: url(http://localhost/w/red.gif?timestamp)!ie; }", ), + array( + 'Can not re-embed data: URIs', + "foo { /* @embed */ background: url($red); }", + "foo { background: url($red); }", + ), + array( + 'Can not remap data: URIs', + "foo { background: url($red); }", + "foo { background: url($red); }", + ), array( 'Can not embed remote URLs', 'foo { /* @embed */ background: url(http://example.org/w/foo.png); }',