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
5SubSubCompo := Rectangle { }
6SubCompo := SubSubCompo {}
7
8export TestCase := Window {
9 SubCompo {}
10}
11
12/*
13```cpp
14auto handle = TestCase::create();
15const TestCase &instance = *handle;
16slint_testing::send_mouse_click(&instance, 5., 5.);
17```
18
19```rust
20let instance = TestCase::new().unwrap();
21slint_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}