on xenial help sign in
test item gets the focus as suggested by mzanetti
aa1c784Albert Astals Cid
qml/Components/Dialogs.qml+1
@@ -57,6 +57,7 @@ Item {
57 }
57 }
58 Loader {
58 Loader {
59 id: dialogLoader
59 id: dialogLoader
60+ objectName: "dialogLoader"
60 anchors.fill: parent
61 anchors.fill: parent
61 active: false
62 active: false
62 }
63 }
tests/qmltests/Components/tst_Dialogs.qml+3−1
@@ -96,9 +96,11 @@ Rectangle {
96 name: "Dialogs"
96 name: "Dialogs"
97 when: windowShown
97 when: windowShown
98
98
99− function showPowerDialog() {
99+ function test_showPowerDialog() {
100 var dialogsPrivate = findInvisibleChild(dialogs, "dialogsPrivate");
100 var dialogsPrivate = findInvisibleChild(dialogs, "dialogsPrivate");
101 dialogsPrivate.showPowerDialog();
101 dialogsPrivate.showPowerDialog();
102+ var dialogLoader = findInvisibleChild(dialogs, "dialogLoader");
103+ tryCompare(dialogLoader.item, "focus", true);
102 }
104 }
103 }
105 }
104}
106}