()
| 79 | |
| 80 | #[test] |
| 81 | fn minify_css() { |
| 82 | css_inline() |
| 83 | .arg("tests/example.html") |
| 84 | .arg("--minify-css") |
| 85 | .arg("--output-filename-prefix=inlined.minify-css.") |
| 86 | .assert() |
| 87 | .success() |
| 88 | .stdout("tests/example.html: SUCCESS\n"); |
| 89 | let content = fs::read_to_string("tests/inlined.minify-css.example.html").unwrap(); |
| 90 | assert_eq!( |
| 91 | content, |
| 92 | "<html><head>\n \n \n \n\ |
| 93 | </head>\n\ |
| 94 | <body>\n\ |
| 95 | <a class=\"test-class\" href=\"https://example.com\" style=\"color:#ffffff\">Test</a>\n\ |
| 96 | <h1 style=\"text-decoration:none\">Test</h1>\n\n\n\ |
| 97 | </body></html>" |
| 98 | ) |
| 99 | } |
| 100 | |
| 101 | #[test] |
| 102 | fn dont_inline_styles() { |
nothing calls this directly
no test coverage detected