()
| 100 | |
| 101 | #[test] |
| 102 | fn dont_inline_styles() { |
| 103 | css_inline() |
| 104 | .arg("tests/example.html") |
| 105 | .arg("--inline-style-tags=false") |
| 106 | .arg("--output-filename-prefix=inlined.dont-inline-styles.") |
| 107 | .assert() |
| 108 | .success() |
| 109 | .stdout("tests/example.html: SUCCESS\n"); |
| 110 | let content = fs::read_to_string("tests/inlined.dont-inline-styles.example.html").unwrap(); |
| 111 | assert_eq!( |
| 112 | content, |
| 113 | "<html><head>\n \n \n \n\ |
| 114 | </head>\n\ |
| 115 | <body>\n\ |
| 116 | <a class=\"test-class\" href=\"https://example.com\">Test</a>\n\ |
| 117 | <h1>Test</h1>\n\n\n\ |
| 118 | </body></html>" |
| 119 | ) |
| 120 | } |
| 121 | |
| 122 | #[test] |
| 123 | fn no_remote_stylesheets() { |
nothing calls this directly
no test coverage detected