@@ -12,6 +12,12 @@ describe("url", function() {
12
12
test ( "background img 3" , ".class { background: green url( 'img.png' ) xyz }" , [
13
13
[ 1 , ".class { background: green url({./img.png}) xyz }" , "" ]
14
14
] ) ;
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
+ ] ) ;
15
21
test ( "background img absolute" , ".class { background: green url(/img.png) xyz }" , [
16
22
[ 1 , ".class { background: green url(/img.png) xyz }" , "" ]
17
23
] ) ;
@@ -63,6 +69,12 @@ describe("url", function() {
63
69
test ( "background img 3 with url" , ".class { background: green url( 'img.png' ) xyz }" , [
64
70
[ 1 , ".class { background: green url( 'img.png' ) xyz }" , "" ]
65
71
] , "?-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" ) ;
66
78
test ( "background img absolute with url" , ".class { background: green url(/img.png) xyz }" , [
67
79
[ 1 , ".class { background: green url(/img.png) xyz }" , "" ]
68
80
] , "?-url" ) ;
0 commit comments