aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-19 23:00:50 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-19 22:05:06 +0000
commitf86b6ff82fbde9ff8ace566fe0a5ad94843e5485 (patch)
tree1d9fd74776ab55460209a4463c574063f2d48ea9
parent74c00af27c381fd56b5f81c7e52a3cba9a4030f4 (diff)
Fix tst_combobox for popup transitions
Change-Id: Ia2eb18492b0cac280eed78d345e35ea640f53db7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--tests/auto/controls/data/tst_combobox.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index c8b720cb..2da0cc64 100644
--- a/tests/auto/controls/data/tst_combobox.qml
+++ b/tests/auto/controls/data/tst_combobox.qml
@@ -447,7 +447,7 @@ TestCase {
compare(control.popup.visible, data.showPopup)
keyRelease(data.key2)
compare(control.pressed, false)
- compare(control.popup.visible, !data.hidePopup)
+ tryCompare(control.popup, "visible", !data.hidePopup)
control.destroy()
}
@@ -468,7 +468,7 @@ TestCase {
// hide
mouseClick(control)
compare(control.pressed, false)
- compare(control.popup.visible, false)
+ tryCompare(control.popup, "visible", false)
// show above
control.y = window.height - control.height
@@ -521,7 +521,7 @@ TestCase {
mouseRelease(content)
compare(activatedSpy.count, 1)
compare(highlightedSpy.count, 1)
- compare(control.popup.visible, false)
+ tryCompare(control.popup, "visible", false)
control.destroy()
}
@@ -539,7 +539,7 @@ TestCase {
window.contentItem.forceActiveFocus()
verify(window.contentItem.activeFocus)
verify(!control.activeFocus)
- compare(control.popup.visible, false)
+ tryCompare(control.popup, "visible", false)
control.destroy()
}