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 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-11 05:06:52 -04:00
parent 8d76d193db
commit c5b073f5f7
1 changed files with 1 additions and 1 deletions

View File

@ -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 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>| { move |ui, state: &mut Option<LauncherUi>| {
if state.is_none() if state.is_none()
&& let Some(b) = backend.take() && let Some(b) = backend.take()