slint/tests/cases/widgets/about.slint
Arnold Loubriat 90c337f1d1
Add AccessibleRole::Image and use it in the AboutSlint widget (#7593)
* Add `AccessibleRole::Image`

* Improve accessibility of the `AboutSlint` widget

* Filter out some images from the accessibility tree
2025-02-18 09:43:53 +01:00

22 lines
607 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
import { AboutSlint } from "std-widgets.slint";
export component TestCase inherits Window {
about := AboutSlint { }
}
/*
```rust
use i_slint_backend_testing::AccessibleRole;
let instance = TestCase::new().unwrap();
let mut image_search = slint_testing::ElementHandle::find_by_accessible_label(&instance, "#MadeWithSlint");
let image = image_search.next().unwrap();
assert_eq!(image.accessible_role(), Some(AccessibleRole::Image));
```
*/