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:
@@ -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}")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user