Build a comprehensive testing suite for various paths for Drupal’s CSS cache. This should include
- Source CSS files in various sub folders
- Make sure that image URLs are changed correctly
- Make sure that urls can be wrapped in quotes optionally
- Make sure that paths relative to the host aren’t touched
- Make sure that absolute paths aren’t touched
- Make sure that paths like
../directory/../otherdirare evaluated correctly - Allow
./path/file.pngnotation
- Make sure that
@importrules are evaluated and the replaced by the actual file- Make sure that files aren’t imported twice (needs discussion)
- Make sure that files import into
@imported files also work correctly (i.e. check recursion) - Make sure that all image URLs are correctly rewritten like above (see http://drupal.org/node/265719)
- Make sure that rewriting also works with
$base_path != '/'
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | style-1.css_.txt | 1.36 KB | sime |
| #6 | style-2.css_.txt | 119 bytes | sime |
Comments
Comment #1
kkaefer commentedMake sure that
@importis supported correctly. This includes:url()or without (see http://www.w3.org/TR/CSS21/cascade.html#at-import)@imported file (see http://www.w3.org/TR/CSS21/media.html#media-sheets)Comment #2
kkaefer commentedMake sure that all valid characters in a URL are allowed and don't break anything. Valid URIs are described at http://www.ietf.org/rfc/rfc2396.txt.
Comment #3
kkaefer commentedNote: that means that also characters like ; ' " etc. are allowed which might break some regular expressions.
Comment #4
kkaefer commentedMake sure that regular expressions allow whitespace whereever it is allowed.
Comment #5
kkaefer commentedMake sure that @import rules and url() references can also span multiple lines.
Comment #6
simeHere are some starting stylesheets for ./modules/simpletest/files/ which contain weird syntax.
Getting these RTBC is a good starting point. They could probably use some more examples though, but they are a good starting point.
Comment #7
simeI'm postponed the following tests until the sample files are ready and commited:
http://drupal.org/node/296400#comment-988225
http://drupal.org/node/296391#comment-988227
Comment #8
simeComment #9
catchThis needs rerolling as a patch to the modules/simpletest/tests directory.
Comment #10
casey commentedtagging