pub struct Audit { /* private fields */ }Expand description
How to walk an application, and what to look at.
use ravenrs_app_a11y::Audit;
use ravenrs_widgets::{Button, Ui};
let mut ui = Ui::new(Button::new("Salvar"), ravenrs_style::Theme::raven_dark());
ui.update();
Audit::new().screen(&mut ui, "início").assert_clean();Implementations§
Source§impl Audit
impl Audit
Sourcepub fn theme(self, theme: Theme) -> Self
pub fn theme(self, theme: Theme) -> Self
Also checks the contrast of this theme, which the application offers.
Sourcepub fn open(self, button: impl Into<String>) -> Self
pub fn open(self, button: impl Into<String>) -> Self
On every screen, also presses the button with this name when there is one, as New, and
looks at what it opens.
Sourcepub fn skip(self, item: impl Into<String>) -> Self
pub fn skip(self, item: impl Into<String>) -> Self
Leaves out the item of the navigation with this name, as one that leaves the application.
Sourcepub fn without_focus(self) -> Self
pub fn without_focus(self) -> Self
Does not press Tab, for a screen that changes as the focus moves.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Audit
impl RefUnwindSafe for Audit
impl Send for Audit
impl Sync for Audit
impl Unpin for Audit
impl UnsafeUnpin for Audit
impl UnwindSafe for Audit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more