@@ -12,12 +12,15 @@ 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 }" , "" ]
15
+ test ( "background img 4" , ".class { background: green url( img.png ) xyz }" , [
16
+ [ 1 , ".class { background: green url({./img.png}) xyz }" , "" ]
20
17
] ) ;
18
+ test ( "background img contain space in name" , ".class { background: green url( \"img img.png\" ) xyz }" , [
19
+ [ 1 , ".class { background: green url(\"{./img img.png}\") xyz }" , "" ]
20
+ ] ) ;
21
+ test ( "background 2 img contain space in name" , ".class { background: green url( 'img img.png' ) xyz }" , [
22
+ [ 1 , ".class { background: green url('{./img img.png}') xyz }" , "" ]
23
+ ] ) ;
21
24
test ( "background img absolute" , ".class { background: green url(/img.png) xyz }" , [
22
25
[ 1 , ".class { background: green url(/img.png) xyz }" , "" ]
23
26
] ) ;
@@ -77,6 +80,9 @@ describe("url", function() {
77
80
test ( "background img 3 with url" , ".class { background: green url( 'img.png' ) xyz }" , [
78
81
[ 1 , ".class { background: green url( 'img.png' ) xyz }" , "" ]
79
82
] , "?-url" ) ;
83
+ test ( "background img 4 with url" , ".class { background: green url( img.png ) xyz }" , [
84
+ [ 1 , ".class { background: green url( img.png ) xyz }" , "" ]
85
+ ] , "?-url" ) ;
80
86
test ( "background img with url contain space in name" , ".class { background: green url( \"img img.png\" ) xyz }" , [
81
87
[ 1 , ".class { background: green url( \"img img.png\" ) xyz }" , "" ]
82
88
] , "?-url" ) ;
0 commit comments