MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / no_remote_stylesheets

Function no_remote_stylesheets

css-inline/tests/test_cli.rs:123–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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")]

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected