This repository was archived by the owner on Sep 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,20 @@ function testComments() {
377377 $ this ->assertSame ($ sExpected , $ oDoc ->render ());
378378 }
379379
380+ function testUrlInFile () {
381+ $ oDoc = $ this ->parsedStructureForFile ('url ' , Settings::create ()->withMultibyteSupport (true ));
382+ $ sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
383+ body {background-url: url("http://somesite.com/images/someimage.gif");} ' ;
384+ $ this ->assertSame ($ sExpected , $ oDoc ->render ());
385+ }
386+
387+ function testUrlInFileMbOff () {
388+ $ oDoc = $ this ->parsedStructureForFile ('url ' , Settings::create ()->withMultibyteSupport (false ));
389+ $ sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
390+ body {background-url: url("http://somesite.com/images/someimage.gif");} ' ;
391+ $ this ->assertSame ($ sExpected , $ oDoc ->render ());
392+ }
393+
380394 function testEmptyFile () {
381395 $ oDoc = $ this ->parsedStructureForFile ('-empty ' , Settings::create ()->withMultibyteSupport (true ));
382396 $ sExpected = '' ;
Original file line number Diff line number Diff line change 1+ body { background : # FFFFFF url ("http://somesite.com/images/someimage.gif" ) repeat top center; }
2+ body {
3+ background-url : url ("http://somesite.com/images/someimage.gif" );
4+ }
You can’t perform that action at this time.
0 commit comments