1 | #![allow (deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/crashes"# ] |
2 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
3 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
4 | |
5 | SubSubCompo := Rectangle { } |
6 | SubCompo := SubSubCompo {} |
7 | |
8 | export TestCase := Window { |
9 | SubCompo {} |
10 | } |
11 | |
12 | /* |
13 | ```cpp |
14 | auto handle = TestCase::create(); |
15 | const TestCase &instance = *handle; |
16 | slint_testing::send_mouse_click(&instance, 5., 5.); |
17 | ``` |
18 | |
19 | ```rust |
20 | let instance = TestCase::new().unwrap(); |
21 | slint_testing::send_mouse_click(&instance, 5., 5.); |
22 | ``` |
23 | |
24 | */ |
25 | } |
26 | |
27 | #[test ] fn t_0() -> std::result::Result<(), std::boxed::Box<dyn std::error::Error>> { |
28 | use i_slint_backend_testing as slint_testing; |
29 | slint_testing::init(); |
30 | let instance = TestCase::new().unwrap(); |
31 | slint_testing::send_mouse_click(&instance, x:5., y:5.); |
32 | Ok(()) |
33 | } |