master
John Lauer rust/: the tree 2.0.594 is built from, pushed whole (pup-bridge#117); ship.sh pushes it on every release from now on ccda43b 1mo ago
// 2.0.583: the wiki serves ONLY an SVG favicon; the compositor must rasterize it (it wore the generic globe before).
#[test]
fn wiki_svg_favicon_rasterizes() {
    let bytes = include_bytes!("../wiki-favicon.svg");
    assert!(pup_identity::badge::is_svg(bytes), "the wiki favicon must be recognised as SVG");
    assert!(pup_identity::badge::looks_like_image(bytes), "SVG must pass the favicon guard");
    let im = pup_identity::badge::decode(bytes).expect("the SVG must rasterize");
    let (w, h) = im.dimensions();
    assert!(w >= 32 && h >= 32 && w <= 64 && h <= 64, "unexpected size {w}x{h}");
    let painted = im.pixels().filter(|p| p[3] > 0).count();
    assert!(painted > 100, "only {painted} painted pixels: the render is blank");
    assert!(!pup_identity::badge::looks_like_image(b"<!doctype html><html><body>404</body></html>"), "HTML must still be rejected");
}