summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-12-13 13:56:45 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-12-13 13:31:28 +0000
commit74b6f1705a237f426fdef530b46dde474d335095 (patch)
tree5ccd5a3e00bc163bedac755e3f6da8809fde4c99
parent1bcd068c082b3fab92637686447c2c82b4a0968c (diff)
Stabilize tst_combobox::test_modelReset()
Task-number: QTBUG-57256 Change-Id: I4317242f48f7c94a35d3f0c9a6793ef113b69e77 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--tests/auto/controls/data/tst_combobox.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index 2ba9be8f..8076dd3c 100644
--- a/tests/auto/controls/data/tst_combobox.qml
+++ b/tests/auto/controls/data/tst_combobox.qml
@@ -968,15 +968,13 @@ TestCase {
var listview = control.popup.contentItem
verify(listview)
- waitForRendering(listview)
- compare(listview.contentItem.children.length, resetmodel.count + 1) // + highlight item
+ tryCompare(listview.contentItem.children, "length", resetmodel.count + 1) // + highlight item
resetmodel.clear()
resetmodel.append({text: "Fourth"})
resetmodel.append({text: "Fifth"})
- waitForRendering(listview)
- compare(listview.contentItem.children.length, resetmodel.count + 1) // + highlight item
+ tryCompare(listview.contentItem.children, "length", resetmodel.count + 1) // + highlight item
control.destroy()
}