From 0ad40d03387a8127b445305a1c63fa3d2ac45ed7 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 17 Dec 2024 01:53:39 +0100 Subject: Reduce size of `Simulator` in `todos` test --- examples/todos/snapshots/creates_a_new_task.sha256 | 2 +- examples/todos/src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/todos') diff --git a/examples/todos/snapshots/creates_a_new_task.sha256 b/examples/todos/snapshots/creates_a_new_task.sha256 index 15efcd77..75d5f2ce 100644 --- a/examples/todos/snapshots/creates_a_new_task.sha256 +++ b/examples/todos/snapshots/creates_a_new_task.sha256 @@ -1 +1 @@ -a7c2ac4b57f84416812e2134e48fe34db55a757d9176beedf5854a2f69532e32 \ No newline at end of file +b41c73d214894bf5f94f787e5f265cff6500822b2d4a29a4ac0c847a71db7123 \ No newline at end of file diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 1cc47782..0b80f002 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -594,11 +594,12 @@ mod tests { use iced_test::{selector, Error, Simulator}; fn simulator(todos: &Todos) -> Simulator { - Simulator::with_settings( + Simulator::with_size( Settings { fonts: vec![Todos::ICON_FONT.into()], ..Settings::default() }, + (512.0, 512.0), todos.view(), ) } -- cgit