mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Tests: the font-menu hover preview test lets the menu settle
Opening the menu on the current family (#9197) paints rows whose font samples load over a few frames; on CI's font set that takes 6 steps, past egui_kittest's default of 4. Raise max_steps as other harnesses do. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
4bb367750e
commit
a2ab774eb4
1 file changed
+3
-1
@@ -531,7 +531,9 @@ fn options_bar_hover_previews_on_canvas_without_committing() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut h = Harness::builder().with_size(vec2(900.0, 700.0)).build_eframe(|cc| {
|
// Opening the menu on the current family (#9197) paints rows that load their font samples
|
||||||
|
// over a few frames, more than the default four steps.
|
||||||
|
let mut h = Harness::builder().with_size(vec2(900.0, 700.0)).with_max_steps(64).build_eframe(|cc| {
|
||||||
PhotocraftApp::setup_context(&cc.egui_ctx, crate::theme::ThemeKind::ALL[0]);
|
PhotocraftApp::setup_context(&cc.egui_ctx, crate::theme::ThemeKind::ALL[0]);
|
||||||
PreviewApp { app: PhotocraftApp::new(photocraft_engine::Session::new(), Services::default()) }
|
PreviewApp { app: PhotocraftApp::new(photocraft_engine::Session::new(), Services::default()) }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user