-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose the
AboutSlint
widget in the accessibility tree
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright © SixtyFPS GmbH <[email protected]> | ||
// 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)); | ||
``` | ||
*/ |