diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-22 12:34:03 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-05-22 17:31:26 +0000 |
commit | b3e053e2d0285064e5c3b2467dac7ffeecd88266 (patch) | |
tree | f54fdad2faaabbccfa114861fa94f58daa3b9136 /tests/auto/controls/data/tst_combobox.qml | |
parent | b4629a9466261c2fdb10d4e4431a8ce7dc039f42 (diff) |
tst_combobox: make test_highlightRange() more reliable
This test is failing with the upcoming Fusion style, perhaps because
the combo delegates are a bit heavier. Give the Popup and ListView some
time to layout themselves, before attempting to find a list item at the
bottom.
Change-Id: Ib8486bb7dbc4a43eb3549e2e7ca7ad1be5bad4a0
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_combobox.qml')
-rw-r--r-- | tests/auto/controls/data/tst_combobox.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml index 853a69e6..3d8777b3 100644 --- a/tests/auto/controls/data/tst_combobox.qml +++ b/tests/auto/controls/data/tst_combobox.qml @@ -1133,6 +1133,7 @@ TestCase { control.popup.open() compare(control.highlightedIndex, 99) tryCompare(openedSpy, "count", 2) + tryVerify(function() { return listview.height > 0 }) var last = listview.itemAt(0, listview.contentY + listview.height - 1) verify(last) |