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
5App := Rectangle {
6 property <string> hello: "ooo";
7 if (hello != "") : Text { text <=> hello; }
8
9 property<bool> test1: hello == "ooo";
10
11 // Another crash:
12 property <string> directory: "hello";
13 vl := VerticalLayout {
14 if true: pp:= Rectangle {
15 property <string> text <=> root.directory;
16 HorizontalLayout {
17 inner := Text {
18 text: pp.text;
19 }
20 }
21 }
22 }
23 ref := Text { text: "hello"; }
24 property<bool> test2: vl.preferred-width == ref.preferred-width;
25
26 property<bool> test: test1 && test2;
27}
28}
29