diff --git a/crates/egui_demo_lib/src/demo/demo_app_windows.rs b/crates/egui_demo_lib/src/demo/demo_app_windows.rs index 2a39d02f5d7..a8d95b58e63 100644 --- a/crates/egui_demo_lib/src/demo/demo_app_windows.rs +++ b/crates/egui_demo_lib/src/demo/demo_app_windows.rs @@ -370,17 +370,17 @@ mod tests { let mut errors = Vec::new(); for mut demo in demos.demos { + // Widget Gallery needs to be customized (to set a specific date) and has its own test + if demo.name() == crate::WidgetGallery::default().name() { + continue; + } + // Remove the emoji from the demo name let name = demo .name() .split_once(' ') .map_or(demo.name(), |(_, name)| name); - // Widget Gallery needs to be customized (to set a specific date) and has its own test - if name == crate::WidgetGallery::default().name() { - continue; - } - let mut harness = Harness::new(|ctx| { demo.show(ctx, &mut true); });