| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 |
| 3 | |
| 4 | import { AboutSlint } from "std-widgets.slint" ; |
| 5 | |
| 6 | export component TestCase inherits Window { |
| 7 | about := AboutSlint { } |
| 8 | } |
| 9 | |
| 10 | |
| 11 | /* |
| 12 | ```rust |
| 13 | use i_slint_backend_testing::AccessibleRole; |
| 14 | |
| 15 | let instance = TestCase::new().unwrap(); |
| 16 | |
| 17 | let mut image_search = slint_testing::ElementHandle::find_by_accessible_label(&instance, "#MadeWithSlint"); |
| 18 | let image = image_search.next().unwrap(); |
| 19 | |
| 20 | assert_eq!(image.accessible_role(), Some(AccessibleRole::Image)); |
| 21 | ``` |
| 22 | */ |
| 23 | |