1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

egui_kittest: more ergonomic functions taking Impl Into<String> (#7307)

This commit is contained in:
Emil Ernerfeldt
2025-07-07 13:50:53 +02:00
committed by GitHub
parent b11b77e85f
commit 09596a5e7b
7 changed files with 34 additions and 22 deletions

View File

@@ -71,6 +71,6 @@ fn test_variants(
harness.fit_contents();
}
results.add(harness.try_snapshot(&format!("sides/{name}_{variant_name}")));
results.add(harness.try_snapshot(format!("sides/{name}_{variant_name}")));
}
}

View File

@@ -244,7 +244,7 @@ fn test_widget_layout(name: &str, mut w: impl FnMut(&mut Ui) -> Response) -> Sna
});
harness.fit_contents();
harness.try_snapshot(&format!("layout/{name}"))
harness.try_snapshot(format!("layout/{name}"))
}
/// Utility to create a snapshot test of the different states of a egui widget.
@@ -370,7 +370,7 @@ impl<'a> VisualTests<'a> {
harness.fit_contents();
harness.try_snapshot(&format!("visuals/{}", self.name))
harness.try_snapshot(format!("visuals/{}", self.name))
}
}