@@ -12,6 +12,12 @@ describe("url", function() {
1212 test ( "background img 3" , ".class { background: green url( 'img.png' ) xyz }" , [
1313 [ 1 , ".class { background: green url({./img.png}) xyz }" , "" ]
1414 ] ) ;
15+ test ( "background img contain space in name" , ".class { background: green url( \"img img.png\" ) xyz }" , [
16+ [ 1 , ".class { background: green url(\"{./img img.png}\") xyz }" , "" ]
17+ ] ) ;
18+ test ( "background 2 img contain space in name" , ".class { background: green url( 'img img.png' ) xyz }" , [
19+ [ 1 , ".class { background: green url('{./img img.png}') xyz }" , "" ]
20+ ] ) ;
1521 test ( "background img absolute" , ".class { background: green url(/img.png) xyz }" , [
1622 [ 1 , ".class { background: green url(/img.png) xyz }" , "" ]
1723 ] ) ;
@@ -63,6 +69,12 @@ describe("url", function() {
6369 test ( "background img 3 with url" , ".class { background: green url( 'img.png' ) xyz }" , [
6470 [ 1 , ".class { background: green url( 'img.png' ) xyz }" , "" ]
6571 ] , "?-url" ) ;
72+ test ( "background img with url contain space in name" , ".class { background: green url( \"img img.png\" ) xyz }" , [
73+ [ 1 , ".class { background: green url( \"img img.png\" ) xyz }" , "" ]
74+ ] , "?-url" ) ;
75+ test ( "background 2 img with url contain space in name" , ".class { background: green url( 'img img.png' ) xyz }" , [
76+ [ 1 , ".class { background: green url( 'img img.png' ) xyz }" , "" ]
77+ ] , "?-url" ) ;
6678 test ( "background img absolute with url" , ".class { background: green url(/img.png) xyz }" , [
6779 [ 1 , ".class { background: green url(/img.png) xyz }" , "" ]
6880 ] , "?-url" ) ;
0 commit comments