()
| 207 | |
| 208 | #[test] |
| 209 | fn extra_css() { |
| 210 | css_inline() |
| 211 | .arg("tests/example.html") |
| 212 | .arg("--extra-css=.test-class { background: green; }") |
| 213 | .arg("--output-filename-prefix=inlined.extra-css-cli.") |
| 214 | .assert() |
| 215 | .success() |
| 216 | .stdout("tests/example.html: SUCCESS\n"); |
| 217 | |
| 218 | let content = fs::read_to_string("tests/inlined.extra-css-cli.example.html").unwrap(); |
| 219 | assert!( |
| 220 | content.contains(r#"style="color: #ffffff;background: green;""#), |
| 221 | "expected inline background from --extra-css but got:\n{content}", |
| 222 | ); |
| 223 | } |
| 224 | |
| 225 | #[test] |
| 226 | fn not_found() { |
nothing calls this directly
no test coverage detected