aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2018-09-24 10:23:19 +0300
committerMitch Curtis <mitch.curtis@qt.io>2018-09-24 08:20:38 +0000
commit50d1d95af5cb271285abb4375e63ca28cbadd77a (patch)
treeb00811225384d6018812bebb25f3c4a8c5e6f63c
parent6d429be4d77841218d89f5e563593fb39812395d (diff)
tests: Verify current item in selectionListSelectCurrentItem
For investigating flaky tests. Task-number: QTBUG-62518 Task-number: QTBUG-61279 Task-number: QTQAINFRA-2226 Change-Id: I447f8e4a332b60df617c834fc3ccbf4e3f6a47ce Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--tests/auto/inputpanel/data/inputpanel/inputpanel.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
index 517caadb..18ca94b4 100644
--- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
+++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
@@ -579,6 +579,17 @@ InputPanel {
if (!inputPanel.wordCandidateView.currentItem)
return false
testcase.wait(200)
+ testcase.verify(inputPanel.wordCandidateView.currentItem,
+ "Expected wordCandidateView to have a currentItem, but it's null."
+ + " Its property values at the time of failure are:"
+ + " x=" + inputPanel.wordCandidateView.x
+ + " y=" + inputPanel.wordCandidateView.y
+ + " width=" + inputPanel.wordCandidateView.width
+ + " height=" + inputPanel.wordCandidateView.height
+ + " count=" + inputPanel.wordCandidateView.count
+ + " flicking=" + inputPanel.wordCandidateView.flicking
+ + " moving=" + inputPanel.wordCandidateView.moving
+ + " visible=" + inputPanel.wordCandidateView.visible)
var itemPos = inputPanel.mapFromItem(inputPanel.wordCandidateView.currentItem,
inputPanel.wordCandidateView.currentItem.width / 2,
inputPanel.wordCandidateView.currentItem.height / 2)