From f799e0d16b324b1ee89d95be477f900a019aa2c1 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Thu, 23 Jan 2025 18:00:58 +0100 Subject: [PATCH] Rename base screenshots to initial screenshots --- masonry/examples/calc_masonry.rs | 2 +- masonry/examples/custom_widget.rs | 2 +- masonry/examples/grid_masonry.rs | 2 +- masonry/examples/readme.md | 10 +++++----- ... => calc_masonry__tests__initial_screenshot.png} | Bin ...=> custom_widget__tests__initial_screenshot.png} | Bin ... => grid_masonry__tests__initial_screenshot.png} | Bin ... => simple_image__tests__initial_screenshot.png} | Bin ...ng => to_do_list__tests__initial_screenshot.png} | Bin masonry/examples/simple_image.rs | 2 +- masonry/examples/to_do_list.rs | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) rename masonry/examples/screenshots/{calc_masonry__tests__base_screenshot.png => calc_masonry__tests__initial_screenshot.png} (100%) rename masonry/examples/screenshots/{custom_widget__tests__base_screenshot.png => custom_widget__tests__initial_screenshot.png} (100%) rename masonry/examples/screenshots/{grid_masonry__tests__base_screenshot.png => grid_masonry__tests__initial_screenshot.png} (100%) rename masonry/examples/screenshots/{simple_image__tests__base_screenshot.png => simple_image__tests__initial_screenshot.png} (100%) rename masonry/examples/screenshots/{to_do_list__tests__base_screenshot.png => to_do_list__tests__initial_screenshot.png} (100%) diff --git a/masonry/examples/calc_masonry.rs b/masonry/examples/calc_masonry.rs index c1b8955c2..5c1c16be7 100644 --- a/masonry/examples/calc_masonry.rs +++ b/masonry/examples/calc_masonry.rs @@ -414,7 +414,7 @@ mod tests { fn screenshot_test() { let mut harness = TestHarness::create(build_calc()); assert_debug_snapshot!(harness.root_widget()); - assert_render_snapshot!(harness, "base_screenshot"); + assert_render_snapshot!(harness, "initial_screenshot"); // TODO - Test clicking buttons } diff --git a/masonry/examples/custom_widget.rs b/masonry/examples/custom_widget.rs index 43b60b1b8..3da5e3537 100644 --- a/masonry/examples/custom_widget.rs +++ b/masonry/examples/custom_widget.rs @@ -193,6 +193,6 @@ mod tests { let mut harness = TestHarness::create(CustomWidget(my_string)); assert_debug_snapshot!(harness.root_widget()); - assert_render_snapshot!(harness, "base_screenshot"); + assert_render_snapshot!(harness, "initial_screenshot"); } } diff --git a/masonry/examples/grid_masonry.rs b/masonry/examples/grid_masonry.rs index 6542af0de..3dec8d3b5 100644 --- a/masonry/examples/grid_masonry.rs +++ b/masonry/examples/grid_masonry.rs @@ -140,7 +140,7 @@ mod tests { fn screenshot_test() { let mut harness = TestHarness::create(make_grid(1.0)); assert_debug_snapshot!(harness.root_widget()); - assert_render_snapshot!(harness, "base_screenshot"); + assert_render_snapshot!(harness, "initial_screenshot"); // TODO - Test clicking buttons } diff --git a/masonry/examples/readme.md b/masonry/examples/readme.md index aeb55a2f0..b52a6fa63 100644 --- a/masonry/examples/readme.md +++ b/masonry/examples/readme.md @@ -11,34 +11,34 @@ Example used to test text input and text focus. ## `calc_masonry` -![](screenshots/calc_masonry__tests__base_screenshot.png) +![](screenshots/calc_masonry__tests__initial_screenshot.png) Calculator app. ## `to_do_list` -![](screenshots/to_do_list__tests__base_screenshot.png) +![](screenshots/to_do_list__tests__initial_screenshot.png) To-do list app. ## `custom_widget` -![](screenshots/custom_widget__tests__base_screenshot.png) +![](screenshots/custom_widget__tests__initial_screenshot.png) Static render showing off Vello's capabilities. ## `grid_masonry` -![](screenshots/grid_masonry__tests__base_screenshot.png) +![](screenshots/grid_masonry__tests__initial_screenshot.png) Demonstration of the grid layout. ## `simple_image` -![](screenshots/simple_image__tests__base_screenshot.png) +![](screenshots/simple_image__tests__initial_screenshot.png) Simple image example. diff --git a/masonry/examples/screenshots/calc_masonry__tests__base_screenshot.png b/masonry/examples/screenshots/calc_masonry__tests__initial_screenshot.png similarity index 100% rename from masonry/examples/screenshots/calc_masonry__tests__base_screenshot.png rename to masonry/examples/screenshots/calc_masonry__tests__initial_screenshot.png diff --git a/masonry/examples/screenshots/custom_widget__tests__base_screenshot.png b/masonry/examples/screenshots/custom_widget__tests__initial_screenshot.png similarity index 100% rename from masonry/examples/screenshots/custom_widget__tests__base_screenshot.png rename to masonry/examples/screenshots/custom_widget__tests__initial_screenshot.png diff --git a/masonry/examples/screenshots/grid_masonry__tests__base_screenshot.png b/masonry/examples/screenshots/grid_masonry__tests__initial_screenshot.png similarity index 100% rename from masonry/examples/screenshots/grid_masonry__tests__base_screenshot.png rename to masonry/examples/screenshots/grid_masonry__tests__initial_screenshot.png diff --git a/masonry/examples/screenshots/simple_image__tests__base_screenshot.png b/masonry/examples/screenshots/simple_image__tests__initial_screenshot.png similarity index 100% rename from masonry/examples/screenshots/simple_image__tests__base_screenshot.png rename to masonry/examples/screenshots/simple_image__tests__initial_screenshot.png diff --git a/masonry/examples/screenshots/to_do_list__tests__base_screenshot.png b/masonry/examples/screenshots/to_do_list__tests__initial_screenshot.png similarity index 100% rename from masonry/examples/screenshots/to_do_list__tests__base_screenshot.png rename to masonry/examples/screenshots/to_do_list__tests__initial_screenshot.png diff --git a/masonry/examples/simple_image.rs b/masonry/examples/simple_image.rs index a8def6223..f594ecfda 100644 --- a/masonry/examples/simple_image.rs +++ b/masonry/examples/simple_image.rs @@ -63,6 +63,6 @@ mod tests { fn screenshot_test() { let mut harness = TestHarness::create(make_image()); assert_debug_snapshot!(harness.root_widget()); - assert_render_snapshot!(harness, "base_screenshot"); + assert_render_snapshot!(harness, "initial_screenshot"); } } diff --git a/masonry/examples/to_do_list.rs b/masonry/examples/to_do_list.rs index a92370e45..c6d62d8ef 100644 --- a/masonry/examples/to_do_list.rs +++ b/masonry/examples/to_do_list.rs @@ -88,7 +88,7 @@ mod tests { fn screenshot_test() { let mut harness = TestHarness::create(make_widget_tree()); assert_debug_snapshot!(harness.root_widget()); - assert_render_snapshot!(harness, "base_screenshot"); + assert_render_snapshot!(harness, "initial_screenshot"); // TODO - Test clicking buttons // TODO - Test typing text