diff options
Diffstat (limited to 'tests/auto/controls/data/tst_combobox.qml')
-rw-r--r-- | tests/auto/controls/data/tst_combobox.qml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml index 2ba9be8f..0cd2e258 100644 --- a/tests/auto/controls/data/tst_combobox.qml +++ b/tests/auto/controls/data/tst_combobox.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2015 The Qt Company Ltd. +** Copyright (C) 2017 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. @@ -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() } |