added unit test illustrating issue #198 (CSS Relative Paths with…

added unit test illustrating issue #198 (CSS Relative Paths with querystring/hash are not converted)
parent 77153842
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
.relative-url { .relative-url {
background-image: url(../images/sprite-buttons.png); background-image: url(../images/sprite-buttons.png);
} }
.relative-url-querystring {
background-image: url(../images/sprite-buttons.png?v=1.0#foo=bar);
}
.absolute-url { .absolute-url {
background-image: url(/images/sprite-buttons.png); background-image: url(/images/sprite-buttons.png);
} }
......
...@@ -115,6 +115,9 @@ class CompressorTest(TestCase): ...@@ -115,6 +115,9 @@ class CompressorTest(TestCase):
.relative-url { .relative-url {
background-image: url(../pipeline/images/sprite-buttons.png); background-image: url(../pipeline/images/sprite-buttons.png);
} }
.relative-url-querystring {
background-image: url(../pipeline/images/sprite-buttons.png?v=1.0#foo=bar);
}
.absolute-url { .absolute-url {
background-image: url(/images/sprite-buttons.png); background-image: url(/images/sprite-buttons.png);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment