mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-31 05:56:55 -06:00
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:
co-authored by
Claude Opus 5.5
parent
4504495e2b
commit
d20b08e3af
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user