diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-13 20:01:51 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-13 20:03:13 +0200 |
commit | e80146ebf289d9243a864b9c8db1d97ba9516724 (patch) | |
tree | eadf94be661108013f5a8bd001550d4bf562739d /_test | |
parent | d4b5605e03683fedafdb95f821eb32e9a0cb9f8a (diff) | |
download | rpg-e80146ebf289d9243a864b9c8db1d97ba9516724.tar.gz rpg-e80146ebf289d9243a864b9c8db1d97ba9516724.tar.bz2 |
added another test for fe5a50
That commit did not test what it actually made for. Handling protocol
relative URLs in CSS.
Diffstat (limited to '_test')
-rw-r--r-- | _test/tests/lib/exe/css_css_compress.test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_test/tests/lib/exe/css_css_compress.test.php b/_test/tests/lib/exe/css_css_compress.test.php index f0eb17968..4769684a8 100644 --- a/_test/tests/lib/exe/css_css_compress.test.php +++ b/_test/tests/lib/exe/css_css_compress.test.php @@ -53,6 +53,13 @@ class css_css_compress_test extends DokuWikiTest { $this->assertEquals('#foo{background-image:url(http://foo.bar/baz.jpg);}', css_compress($text)); } + function test_slcom6(){ + $text = '#foo { + background-image: url(//foo.bar/baz.jpg); // background-image: url(http://foo.bar/baz.jpg); this is all commented + }'; + $this->assertEquals('#foo{background-image:url(//foo.bar/baz.jpg);}', css_compress($text)); + } + function test_hack(){ $text = '/* Mac IE will not see this and continue with inline-block */ /* \\*/ |