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
|
|
@ -109,10 +109,17 @@ pub trait Headless {
|
|||
fn new(
|
||||
default_font: Font,
|
||||
default_text_size: Pixels,
|
||||
backend: Option<&str>,
|
||||
) -> impl Future<Output = Option<Self>>
|
||||
where
|
||||
Self: Sized;
|
||||
|
||||
/// Returns the unique name of the renderer.
|
||||
///
|
||||
/// This name may be used by testing libraries to uniquely identify
|
||||
/// snapshots.
|
||||
fn name(&self) -> String;
|
||||
|
||||
/// Draws offscreen into a screenshot, returning a collection of
|
||||
/// bytes representing the rendered pixels in RGBA order.
|
||||
fn screenshot(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue