aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/codemodel/check/accessById.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/codemodel/check/accessById.qml')
-rw-r--r--tests/auto/qml/codemodel/check/accessById.qml21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/auto/qml/codemodel/check/accessById.qml b/tests/auto/qml/codemodel/check/accessById.qml
index dd91ac671e..1fd4b34ca8 100644
--- a/tests/auto/qml/codemodel/check/accessById.qml
+++ b/tests/auto/qml/codemodel/check/accessById.qml
@@ -28,11 +28,22 @@ Window {
Text {
id: innerText
}
- states: State {
- name: "widerText"
- PropertyChanges { myText.width: undefined }
- AnchorChanges { innerRect.width: undefined } // 16 29 37
- }
+ states: [
+ State {
+ name: "widerText"
+ PropertyChanges { myText.width: undefined }
+ AnchorChanges { innerRect.width: undefined } // 16 29 37
+ },
+ State {
+ when: root.visible
+ PropertyChanges {
+ // change an object property that is not an ancestor
+ innerRect {
+ color: "blue"
+ }
+ }
+ }
+ ]
}
Binding {rect.width: innerText.width}