mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-10-14 14:26:48 -04:00
UI tests: the title-bar test needs no GPU unless it saves a snapshot
It asked for a wgpu device up front, which panics where there is none: the FreeBSD VM job has failed on it since it landed. Like the other tests, let the default renderer create a device only when a snapshot is rendered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8d76d193db
commit
c5b073f5f7
1 file changed
+1
-1
@@ -850,7 +850,7 @@ fn custom_title_bar_has_window_buttons() {
|
||||
}
|
||||
}
|
||||
let mut backend = Some(Fake { events: events(), sent: Rc::new(RefCell::new(Vec::new())), manage: true, clock: Rc::new(Cell::new(NOW)) });
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1180.0, 900.0)).wgpu().build_ui_state(
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1180.0, 900.0)).build_ui_state(
|
||||
move |ui, state: &mut Option<LauncherUi>| {
|
||||
if state.is_none()
|
||||
&& let Some(b) = backend.take()
|
||||
|
||||
Reference in new issue
Block a user