Skip to content

Commit

Permalink
Rename base screenshots to initial screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Jan 23, 2025
1 parent c516cb1 commit f799e0d
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion masonry/examples/calc_masonry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion masonry/examples/custom_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
2 changes: 1 addition & 1 deletion masonry/examples/grid_masonry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
10 changes: 5 additions & 5 deletions masonry/examples/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion masonry/examples/simple_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
2 changes: 1 addition & 1 deletion masonry/examples/to_do_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f799e0d

Please sign in to comment.