Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 28, 2024
1 parent 745bfef commit 817c133
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/egui_demo_lib/src/demo/demo_app_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 817c133

Please sign in to comment.