fixing tests

This commit is contained in:
ari committed 2026-10-20 22:57:34 -04:00
1 parent b38c66bcc8
commit 5d78004720
1 file changed
+4 -2
+4 -2
View File
@@ -177,8 +177,10 @@ mod tests {
#[tokio::test]
async fn page_pulls_nothing_from_other_origins() {
let html = built().html.as_str();
// The stylesheet may mention `https://` in a selector; no attribute may load from one.
assert!(!html.contains("=\"http"), "{html}");
// The stylesheet names `https://` in a selector; no tag may load from one.
for attr in ["src", "href", "action"] {
assert!(!html.contains(&format!("{attr}=\"http")), "{attr}: {html}");
}
assert!(!INIT_JS.contains("http://") && !INIT_JS.contains("https://"));
}