diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2022-10-25 15:52:35 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-10-31 19:34:01 +0000 |
| commit | e27b91e4cc277698c62191ce3c349afc988a2a2b (patch) | |
| tree | 7cfc131ebdefddd5c12eeea2d8bd4048f2670748 | |
| parent | b8a329883d679f60daa1a353962f9f1ca5285783 (diff) | |
Qml: add test for nested group properties fix
Amends fed5b07980d9ae5a392a00563f70ee34fc261dbc by adding another test
that also stopped crashing with fed5b07980d9ae5a392a00563f70ee34fc261dbc,
to avoid any regressions of this crash in the future.
Task-number: QTBUG-107795
Change-Id: I2789be2d6c089d27687ff8f64ed8a3a819ffa5a7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 728270a0cb8f652ffe4bf0da623583674e6f9357)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| -rw-r--r-- | tests/auto/qml/qqmllanguage/data/alias.15.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/alias.15.qml b/tests/auto/qml/qqmllanguage/data/alias.15.qml index 5f3de9c83e..7e362d8823 100644 --- a/tests/auto/qml/qqmllanguage/data/alias.15.qml +++ b/tests/auto/qml/qqmllanguage/data/alias.15.qml @@ -9,4 +9,25 @@ Item { Item { id: symbol } + + Rectangle { + id: txtElevationValue + + property Rectangle background: Rectangle { } + + state: "ValidatorInvalid" + + states: [ + State { + name: "ValidatorInvalid" + PropertyChanges { + target: txtElevationValue + background.border.color: "red" // this line caused the segfault in qtbug107795 + } + }, + State { + name: "ValidatorAcceptable" + } + ] + } } |
