Append renderer name to iced_test snapshots
This commit is contained in:
parent
175a53bc86
commit
5e5c7c85ad
7 changed files with 66 additions and 12 deletions
|
|
@ -410,10 +410,21 @@ impl renderer::Headless for Renderer {
|
|||
async fn new(
|
||||
default_font: Font,
|
||||
default_text_size: Pixels,
|
||||
backend: Option<&str>,
|
||||
) -> Option<Self> {
|
||||
if backend.is_some_and(|backend| {
|
||||
!["tiny-skia", "tiny_skia"].contains(&backend)
|
||||
}) {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(Self::new(default_font, default_text_size))
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"tiny-skia".to_owned()
|
||||
}
|
||||
|
||||
fn screenshot(
|
||||
&mut self,
|
||||
size: Size<u32>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue