aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_combobox.qml
diff options
context:
space:
mode:
authorSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-06-05 12:48:40 +0300
committerSimon Hausmann <simon.hausmann@qt.io>2017-08-22 12:03:49 +0000
commitadb0f009de9ddc603234913a316744d0f8ca417f (patch)
treee4aae43fe7ce0f17266509403d8f10999c3350ed /tests/auto/controls/data/tst_combobox.qml
parentc4e5208dd17196fd6870bd8672cf68ff50873ad1 (diff)
Fix tests for boot2qt
The tests for boot2qt were disabled with commit 28063805bf22b77a93f22a4289ca8afa9f1cb201. The tests can be enabled since qtdeclarative now fallbacks to software renderer if OpenGL is not supported. Some tests involving mouse behavior and window grabbing need to be skipped on minimal/offscreen platforms. Task-number: QTBUG-60268 Change-Id: Ib468638df8d5001bf127dd17aee7dcfe38b11780 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_combobox.qml')
-rw-r--r--tests/auto/controls/data/tst_combobox.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index 136c0830..dc146ba3 100644
--- a/tests/auto/controls/data/tst_combobox.qml
+++ b/tests/auto/controls/data/tst_combobox.qml
@@ -732,6 +732,9 @@ TestCase {
compare(highlightedSpy.count, 0)
mouseMove(content, content.width / 2 + 1, content.height / 2 + 1)
compare(activatedSpy.count, 0)
+ if ((Qt.platform.pluginName === "offscreen")
+ || (Qt.platform.pluginName === "minimal"))
+ expectFail("", "Mouse highlighting not functional on offscreen/minimal platforms")
compare(highlightedSpy.count, 1)
mouseRelease(content)
compare(activatedSpy.count, 1)
@@ -1177,6 +1180,9 @@ TestCase {
}
function test_mouseHighlight() {
+ if ((Qt.platform.pluginName === "offscreen")
+ || (Qt.platform.pluginName === "minimal"))
+ skip("Mouse highlight not functional on offscreen/minimal platforms")
var control = createTemporaryObject(comboBox, testCase, {model: 20})
verify(control)