forked from mirrors/gecko-dev
I had to change the test a little bit to avoid some failures due to color and text both having a sanitizedValue which was making the test use the first assertion instead of the second one in some cases. The sanitize_value implementation is pretty simple, we iterate over the content and checks that the content is 7 characters long, that the first character is a `#` and then that all the following characters are hexadecimal. If all those requirements are met, we lowercase the content, otherwise we put `#000000` in it. Source-Repo: https://github.com/servo/servo Source-Revision: 72e7f6095e56ca6230651fc73bced8b460487569 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : e4985200fa96b3d6e40d09c9f30b5df47d8cbf3a |
||
|---|---|---|
| .. | ||
| build.rs | ||
| Cargo.toml | ||
| lib.rs | ||
| static_atoms.txt | ||