()
| 58 | |
| 59 | #[test] |
| 60 | fn keep_at_rules() { |
| 61 | css_inline() |
| 62 | .arg("tests/example.html") |
| 63 | .arg("--keep-at-rules") |
| 64 | .arg("--output-filename-prefix=inlined.keep-at-rules.") |
| 65 | .assert() |
| 66 | .success() |
| 67 | .stdout("tests/example.html: SUCCESS\n"); |
| 68 | let content = fs::read_to_string("tests/inlined.keep-at-rules.example.html").unwrap(); |
| 69 | assert_eq!( |
| 70 | content, |
| 71 | "<html><head>\n \n \n \n\ |
| 72 | </head>\n\ |
| 73 | <body>\n\ |
| 74 | <a class=\"test-class\" href=\"https://example.com\" style=\"color: #ffffff;\">Test</a>\n\ |
| 75 | <h1 style=\"text-decoration: none;\">Test</h1>\n\n\n\ |
| 76 | </body></html>" |
| 77 | ) |
| 78 | } |
| 79 | |
| 80 | #[test] |
| 81 | fn minify_css() { |
nothing calls this directly
no test coverage detected