summaryrefslogtreecommitdiff
path: root/tests/auto/extras/data/tst_statusindicator.qml
diff options
context:
space:
mode:
authorSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-05-29 15:02:40 +0300
committerSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-08-22 12:52:23 +0000
commitcaa38d217ecbcaaa5617255290598012477c4492 (patch)
tree0a343f27df7c35d5b7bb01586473278a42737351 /tests/auto/extras/data/tst_statusindicator.qml
parent008716e94a4eacbc904ffac2bc9ee19d3af56e79 (diff)
downloadqtquickcontrols-caa38d217ecbcaaa5617255290598012477c4492.tar.gz
Fix tests for boot2qtv5.10.0-alpha1
The tests for boot2qt were disabled with commit 555750221ee3850ba70169a2b6854041b434c592. The tests can be enabled since qtdeclarative now fallbacks to software renderer if OpenGL is not supported. Changes needed: - Using grabImage does not work correctly on offscreen platform, so tests relying on it are skipped - Extra 1ms delay is needed between two mouse clicks to get rid of test_activeFocusOnPress() flakiness on software quick renderer Change-Id: Ie985110c171bc395bac0d63cd2fbb94207c63516 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/extras/data/tst_statusindicator.qml')
-rw-r--r--tests/auto/extras/data/tst_statusindicator.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/extras/data/tst_statusindicator.qml b/tests/auto/extras/data/tst_statusindicator.qml
index 257ec715..8801ead7 100644
--- a/tests/auto/extras/data/tst_statusindicator.qml
+++ b/tests/auto/extras/data/tst_statusindicator.qml
@@ -90,6 +90,9 @@ TestCase {
}
function test_active(data) {
+ if (Qt.platform.pluginName === "offscreen")
+ skip("Using grabImage does not work on offscreen platform");
+
indicator = Qt.createQmlObject("import QtQuick.Extras 1.4; StatusIndicator { }", testCase, "");
verify(indicator);
compare(indicator.active, false);
@@ -106,6 +109,9 @@ TestCase {
}
function test_color() {
+ if (Qt.platform.pluginName === "offscreen")
+ skip("Using grabImage does not work on offscreen platform");
+
var flatStyle = Settings.styleName === "Flat";
indicator = Qt.createQmlObject("import QtQuick.Extras 1.4; StatusIndicator { }", testCase, "");