egui/crates/egui_kittest/tests
lucasmerlin e32ca218e8
Add `WidgetType::Image` and `Image::alt_text` (#5534)
This adds `WidgetType::Image` and correctly sets it in the Image widget.
This allows us to query for images in kittest tests and tells accesskit
that a node is an image.
It also adds `Image::alt_text` to set a text that will be shown if the
image fails to load and will be read via screen readers. This also
allows us to query images by label in kittest.


* [x] I have followed the instructions in the PR template

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-12-30 12:53:46 +01:00
..
snapshots Add `WidgetType::Image` and `Image::alt_text` (#5534) 2024-12-30 12:53:46 +01:00
accesskit.rs Move egui tests to avoid cyclic dependency 2024-12-16 18:10:01 +01:00
regression_tests.rs Add `WidgetType::Image` and `Image::alt_text` (#5534) 2024-12-30 12:53:46 +01:00
tests.rs Remove cylic dependency of egui_kittest on itself 2024-12-16 18:10:01 +01:00