()
| 12 | |
| 13 | #[test] |
| 14 | fn success() { |
| 15 | css_inline() |
| 16 | .arg("tests/example.html") |
| 17 | .arg("--output-filename-prefix=inlined.success.") |
| 18 | .assert() |
| 19 | .success() |
| 20 | .stdout("tests/example.html: SUCCESS\n"); |
| 21 | let content = fs::read_to_string("tests/inlined.success.example.html").unwrap(); |
| 22 | assert_eq!( |
| 23 | content, |
| 24 | "<html><head>\n \ |
| 25 | \n \ |
| 26 | \n \ |
| 27 | \n\ |
| 28 | </head>\n\ |
| 29 | <body>\n\ |
| 30 | <a class=\"test-class\" href=\"https://example.com\" style=\"color: #ffffff;\">Test</a>\n\ |
| 31 | <h1 style=\"text-decoration: none;\">Test</h1>\n\n\n\ |
| 32 | </body></html>" |
| 33 | ) |
| 34 | } |
| 35 | |
| 36 | #[test] |
| 37 | fn keep_style_tags() { |
nothing calls this directly
no test coverage detected