Tests: drop the units test's PNG debug hook; the PDF link test's doc says only web and mail links export

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-25 13:43:25 -04:00
co-authored by Claude Opus 5.5
parent 4504495e2b
commit d20b08e3af
2 changed files with 3 additions and 5 deletions
+3 -2
View File
@@ -139,8 +139,9 @@ fn text_layer_links_and_bookmarks_survive_serialization() {
}
}
/// Links from an untrusted deck: scripts, `data:` and network shares (a UNC path leaks the user's
/// NTLM credentials on Windows) do not become PDF links; web, mail, local and relative links do.
/// Links from an untrusted deck: only web and mail links become PDF links. Scripts, `data:`,
/// local and relative files, OS protocol handlers and network shares (a UNC path leaks the user's
/// NTLM credentials on Windows) do not.
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
#[cfg_attr(not(target_arch = "wasm32"), test)]
fn unsafe_url_links_are_not_exported() {
-3
View File
@@ -50,9 +50,6 @@ fn the_format_pane_shows_and_takes_centimetres() {
app.ui.tab = "Shape Format".into();
let mut h = harness(app);
h.run_steps(3);
if let (Ok(path), Ok(img)) = (std::env::var("DECKCRAFT_PNG_OUT_UNITS"), h.render()) {
let _ = img.save(path);
}
h.state_mut().ui.tab = "Home".into();
h.run_steps(3);
let shown = text_values(&h);