mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 21:11:52 +00:00
chore: format print tests and lock winprint dependency
This commit is contained in:
1 parent
80420ee9d6
commit
a1cc08ab03
3 files changed
+29
-10
No files matched your search
Generated
+23
-2
@@ -1250,7 +1250,7 @@ dependencies = [
|
||||
"miniz_oxide 0.9.1",
|
||||
"roxmltree 0.21.2",
|
||||
"tempfile",
|
||||
"winprint",
|
||||
"winprint 0.2.1 (git+https://github.com/storytold/winprint.rs?rev=51934db382f225454cf152a8657eb03789be63c4)",
|
||||
"winsafe",
|
||||
]
|
||||
|
||||
@@ -4661,7 +4661,7 @@ dependencies = [
|
||||
"pdfcraft-model",
|
||||
"pdfcraft-render",
|
||||
"thiserror 2.0.21",
|
||||
"winprint",
|
||||
"winprint 0.2.1 (git+https://github.com/storytold/winprint.rs?rev=5f80b9baf6b58937c401656634e42d33f00ddf49)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -8327,6 +8327,27 @@ dependencies = [
|
||||
"xml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winprint"
|
||||
version = "0.2.1"
|
||||
source = "git+https://github.com/storytold/winprint.rs?rev=5f80b9baf6b58937c401656634e42d33f00ddf49#5f80b9baf6b58937c401656634e42d33f00ddf49"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"fmt-derive",
|
||||
"reqwest",
|
||||
"scopeguard",
|
||||
"sigstore-trust-root",
|
||||
"sigstore-types",
|
||||
"sigstore-verify",
|
||||
"strum",
|
||||
"tar",
|
||||
"thiserror 2.0.21",
|
||||
"windows",
|
||||
"windows-core",
|
||||
"windows-implement",
|
||||
"xml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winreg"
|
||||
version = "0.55.0"
|
||||
|
||||
@@ -1403,4 +1403,3 @@ fn texts_read_up_answers_many_pages_from_one_walk() {
|
||||
assert!(up.iter().all(|u| !u), "upright text, and no page 3000");
|
||||
assert_eq!(up[1], text_reads_up(&doc, 1));
|
||||
}
|
||||
}
|
||||
@@ -1237,13 +1237,12 @@ fn gated_paper_detection_blocks_print_on_printer_switch_reuse_until_resolved() {
|
||||
vec![("B-Paper 5x7".into(), (360.0, 504.0))]
|
||||
}
|
||||
}));
|
||||
h.state_mut().default_paper_source = Some(Arc::new(|p| {
|
||||
if p == "Printer A" {
|
||||
Some(("A-Paper 4x6".into(), (288.0, 432.0)))
|
||||
} else {
|
||||
Some(("B-Paper 5x7".into(), (360.0, 504.0)))
|
||||
}
|
||||
}));
|
||||
h.state_mut().default_paper_source =
|
||||
Some(Arc::new(
|
||||
|p| {
|
||||
if p == "Printer A" { Some(("A-Paper 4x6".into(), (288.0, 432.0))) } else { Some(("B-Paper 5x7".into(), (360.0, 504.0))) }
|
||||
},
|
||||
));
|
||||
|
||||
// 1. Open print dialog: Printer A is default and starts reading papers
|
||||
assert!(h.state_mut().execute("print.dialog"));
|
||||
|
||||
Reference in new issue
Block a user