mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-29 01:34:38 +01:00
Use established async completion budgets for remaining UI waits
This commit is contained in:
1 parent
538466c333
commit
fd1faf45bb
2 files changed
+2
-2
No files matched your search
@@ -464,7 +464,7 @@ fn merge_dialog_retries_a_failed_preview_when_it_opens_again() {
|
||||
h.app.merge.preview.is_some() || h.app.merge.preview_task.is_some() || h.app.merge.error.is_some(),
|
||||
"the dialog shows a preview, one being made, or why not"
|
||||
);
|
||||
assert!(h.step_until(T, |h| h.app.merge.preview_task.is_none()));
|
||||
assert!(h.step_until(super::ui_settle_timeout(), |h| h.app.merge.preview_task.is_none()));
|
||||
assert!(h.app.merge.preview.is_some(), "{:?}", h.app.merge.error);
|
||||
h.app.ui.dialog = None;
|
||||
h.step();
|
||||
|
||||
@@ -811,7 +811,7 @@ mod in_the_loupe {
|
||||
fn pinch_display_fit_refreshes_main_and_before_after_a_short_pinch() {
|
||||
let (mut h, _) = demo_detail_in([1400.0, 900.0]);
|
||||
h.app.ui.before_after = crate::state::BeforeAfter::SideBySide;
|
||||
assert!(h.settle(SETTLE));
|
||||
assert!(h.settle(super::super::ui_settle_timeout()));
|
||||
let slots = [Slot::Main, Slot::Before];
|
||||
let keys = slots.map(|slot| h.app.renderer.wanted(slot).unwrap());
|
||||
let initial_fit = drawn_fit(&h);
|
||||
|
||||
Reference in new issue
Block a user