()
| 177 | |
| 178 | #[test] |
| 179 | fn extra_css_file() { |
| 180 | css_inline() |
| 181 | .arg("tests/example.html") |
| 182 | .arg("--extra-css-file=tests/extra.css") |
| 183 | .arg("--output-filename-prefix=inlined.extra-css.") |
| 184 | .assert() |
| 185 | .success() |
| 186 | .stdout("tests/example.html: SUCCESS\n"); |
| 187 | |
| 188 | let content = fs::read_to_string("tests/inlined.extra-css.example.html").unwrap(); |
| 189 | assert!( |
| 190 | content.contains(r#"style="color: #ffffff;background: red;""#), |
| 191 | "inlined output did not include extra-css rules:\n{content}" |
| 192 | ); |
| 193 | } |
| 194 | |
| 195 | #[test] |
| 196 | fn extra_css_file_not_found() { |
nothing calls this directly
no test coverage detected