diff options
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/snapshots/creates_a_new_task-linux.sha256 | 1 | ||||
-rw-r--r-- | examples/todos/snapshots/creates_a_new_task.sha256 | 1 | ||||
-rw-r--r-- | examples/todos/src/main.rs | 4 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/todos/snapshots/creates_a_new_task-linux.sha256 b/examples/todos/snapshots/creates_a_new_task-linux.sha256 deleted file mode 100644 index 9291711e..00000000 --- a/examples/todos/snapshots/creates_a_new_task-linux.sha256 +++ /dev/null @@ -1 +0,0 @@ -e0b1f2e0c0af6324eb45fde8e82384d16acc2a80a9e157bdf3f42ac6548181cf
\ No newline at end of file diff --git a/examples/todos/snapshots/creates_a_new_task.sha256 b/examples/todos/snapshots/creates_a_new_task.sha256 new file mode 100644 index 00000000..193132c5 --- /dev/null +++ b/examples/todos/snapshots/creates_a_new_task.sha256 @@ -0,0 +1 @@ +3160686067cb7c738802009cdf2f3c5f5a5bd8c89ada70517388b7adbe64c313
\ No newline at end of file diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 1cc47782..45034d6c 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -590,7 +590,7 @@ impl SavedState { mod tests { use super::*; - use iced::Settings; + use iced::{Settings, Theme}; use iced_test::{selector, Error, Simulator}; fn simulator(todos: &Todos) -> Simulator<Message> { @@ -621,7 +621,7 @@ mod tests { let mut ui = simulator(&todos); let _ = ui.find(selector::text("Create the universe"))?; - let snapshot = ui.snapshot()?; + let snapshot = ui.snapshot(&Theme::Dark)?; assert!( snapshot.matches_hash("snapshots/creates_a_new_task")?, "snapshots should match!" |