From b8c88afe590d7b38f4a8ad6d72ea9b7328013128 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 5 Jun 2014 18:38:41 +0200 Subject: [PATCH] CSSMin: Add tests for handling existing data: URIs Just a sanity check inspired by bug 66112. Change-Id: Iac60a1eb15b3ff60822a3f24f2511c4bc64c092a --- tests/phpunit/includes/libs/CSSMinTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }', -- 2.20.1