()
| 121 | |
| 122 | #[test] |
| 123 | fn no_remote_stylesheets() { |
| 124 | css_inline() |
| 125 | .arg("tests/example.html") |
| 126 | .arg("--load-remote-stylesheets=false") |
| 127 | .arg("--output-filename-prefix=inlined.no-remote-stylesheets.") |
| 128 | .assert() |
| 129 | .success() |
| 130 | .stdout("tests/example.html: SUCCESS\n"); |
| 131 | let content = |
| 132 | fs::read_to_string("tests/inlined.no-remote-stylesheets.example.html").unwrap(); |
| 133 | assert_eq!( |
| 134 | content, |
| 135 | "<html><head>\n \n \n \n\ |
| 136 | </head>\n\ |
| 137 | <body>\n\ |
| 138 | <a class=\"test-class\" href=\"https://example.com\" style=\"color: #ffffff;\">Test</a>\n\ |
| 139 | <h1 style=\"text-decoration: none;\">Test</h1>\n\n\n\ |
| 140 | </body></html>" |
| 141 | ) |
| 142 | } |
| 143 | |
| 144 | #[test] |
| 145 | #[cfg(feature = "stylesheet-cache")] |
nothing calls this directly
no test coverage detected