Compare the contents of the dialog not the dialog itself
commitf7891421343b9e3034ea3a167e2d6adc585af9b1
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 14 Sep 2015, 15:53 (11 years ago)
parenta2d50c1
tests/qmltests/Components/tst_Dialogs.qml+1−1
@@ -105,7 +105,7 @@ Rectangle {
105105 var dialogsPrivate = findInvisibleChild(dialogs, "dialogsPrivate");
106106 dialogsPrivate.showPowerDialog();
107107 var dialogLoader = findInvisibleChild(dialogs, "dialogLoader");
108− tryCompare(dialogLoader.item, "focus", true);
108+ tryCompare(dialogLoader.item.__foreground, "focus", true);
109109 }
110110 }
111111}