test: harden checked boundary coverage

Use DOM-aware rendered-text inspection for the v0 shell marker check and extend unkeyed h-for validation coverage from slots to handles.

req: test/005

req: scope/001
This commit is contained in:
slhx agent
2026-05-25 23:15:54 +02:00
parent e5c7872fa6
commit 355fc99888
2 changed files with 28 additions and 15 deletions
+4 -1
View File
@@ -248,7 +248,10 @@ mod tests {
);
assert_eq!(document.select(&selector("script[src=\"/slhx.js\"]")).count(), 1);
assert_eq!(document.select(&selector("main[data-slhx-root=\"docs\"]")).count(), 1);
assert!(!html.contains("{+="));
assert!(
document.root_element().text().all(|text| !text.contains("{+=")),
"hemplate insertion markers must not leak into rendered text"
);
}
// req: html_safety/002 req: view/001 req: test/005