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
6import { ListView } from "std-widgets.slint";
7
8App := Window {
9 width: 100px;
10 height: 600px;
11
12 ListView {
13 for item in [
14 {}, {},
15 ] : Rectangle {
16 drop-shadow-blur: 5px;
17 HorizontalLayout {
18 Image {
19 source: @image-url("../../../logo/slint-logo-square-light-128x128.png");
20 }
21 }
22 }
23 }
24}
25
26
27/*
28
29```rust
30let ui = App::new().unwrap();
31// this should not panic
32slint_testing::send_mouse_click(&ui, 50., 50.);
33```
34
35*/
36}
37
38#[test] fn t_0() -> std::result::Result<(), std::boxed::Box<dyn std::error::Error>> {
39 use i_slint_backend_testing as slint_testing;
40 slint_testing::init();
41 let ui = App::new().unwrap();
42 // this should not panic
43 slint_testing::send_mouse_click(&ui, x:50., y:50.);
44 Ok(())
45}