CSSMin: Add tests for handling existing data: URIs
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Jun 2014 16:38:41 +0000 (18:38 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Jun 2014 16:38:41 +0000 (18:38 +0200)
Just a sanity check inspired by bug 66112.

Change-Id: Iac60a1eb15b3ff60822a3f24f2511c4bc64c092a

tests/phpunit/includes/libs/CSSMinTest.php

index 5475a82..bb5e398 100644 (file)
@@ -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); }',