Dependencies Fix

This commit is contained in:
Combiler01 committed 2026-10-23 16:08:07 +05:30
1 parent fa11f650cd
commit 45fe40e1d7
2 files changed
+10 -7

No files matched your search

Generated
+4 -4
View File
@@ -953,9 +953,9 @@ dependencies = [
[[package]]
name = "clipboard-win"
version = "5.4.1"
version = "5.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a"
dependencies = [
"error-code",
]
@@ -1291,9 +1291,9 @@ dependencies = [
[[package]]
name = "ctutils"
version = "0.4.2"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
checksum = "38d28fb6aa7dd680b3ffd1a3e64e115c177bdba63c0ae7f9cd48129ff05c4fa0"
dependencies = [
"cmov",
"subtle",
+6 -3
View File
@@ -166,7 +166,7 @@ fn grid_duplicate_warnings_compare_contents_and_follow_undo() {
/// Run frames until `done`, giving render threads time; whether it happened.
fn settle(h: &mut Harness<'static, PdfCraftApp>, done: impl Fn(&PdfCraftApp) -> bool) -> bool {
for _ in 0..400 {
for _ in 0..800 {
h.run_steps(1);
if done(h.state()) {
return true;
@@ -1233,18 +1233,21 @@ fn a_right_click_on_a_card_offers_preview_and_remove() {
#[test]
fn the_preview_closes_when_its_file_leaves_and_keeps_to_three_render_threads() {
let files: Vec<(String, Vec<u8>)> = (0..12).map(|i| (format!("f{i:02}.pdf"), heavy())).collect();
let files: Vec<(String, Vec<u8>)> = (0..12).map(|i| (format!("f{i:02}.pdf"), if i < 6 { heavy() } else { fixture(1) })).collect();
let mut h = grid_after_one(files.iter().map(|(n, b)| (n.as_str(), b.clone())).collect(), vec2(1400.0, 900.0));
hover_card(&mut h, "f03.pdf");
h.get_by_label("Preview").click();
let (mut most, mut rendered) = (0, false);
for frame in 0..60 {
for frame in 0..120 {
h.run_steps(1);
let threads = h.state_mut().combine_thumbnail_threads();
most = most.max(threads);
assert!(threads <= 3, "frame {frame}: {threads} render threads");
// The large page itself is rendered (under way, or done) among them.
rendered |= matches!(h.state().combine_preview(), Some((_, _, CombineThumb::Pending | CombineThumb::Ready { .. })));
if rendered && frame >= 40 {
break;
}
std::thread::sleep(Duration::from_millis(5));
}
assert!(most > 0);