aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/controls/data/tst_popup.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml
index 24465db1..beae39d1 100644
--- a/tests/auto/controls/data/tst_popup.qml
+++ b/tests/auto/controls/data/tst_popup.qml
@@ -936,8 +936,13 @@ TestCase {
var control = createTemporaryObject(popupControl, testCase)
verify(control)
+ var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
+ verify(openedSpy.valid)
+
control.open()
- waitForRendering(control.contentItem)
+ openedSpy.wait()
+ compare(openedSpy.count, 1)
+ verify(control.visible)
// implicit size of the content
control.contentItem.implicitWidth = 10