Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ystring/hash are not converted)
  • Loading branch information...
commit 2bc8245c470ec1e946089f54ed714251aafe5b06 1 parent 7715384
@miki725 miki725 authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  tests/assets/css/urls.css
  2. +3 −0  tests/tests/test_compressor.py
View
3  tests/assets/css/urls.css
@@ -9,6 +9,9 @@
.relative-url {
background-image: url(../images/sprite-buttons.png);
}
+.relative-url-querystring {
+ background-image: url(../images/sprite-buttons.png?v=1.0#foo=bar);
+}
.absolute-url {
background-image: url(/images/sprite-buttons.png);
}
View
3  tests/tests/test_compressor.py
@@ -115,6 +115,9 @@ def test_url_rewrite(self):
.relative-url {
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 {
background-image: url(/images/sprite-buttons.png);
}
Please sign in to comment.
Something went wrong with that request. Please try again.