aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/popup
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-05-02 12:27:11 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-05-02 13:02:19 +0000
commite95b5368ce769002f495b8e8cea8f223c208e3a0 (patch)
tree3ad4aa91809cf2b326a41cda5ef9cff9f1225324 /tests/auto/popup
parentabb948f700000e762f4dde5b5988b7128107132b (diff)
tst_popup: disable touch compression
09b9a55 added touch event tests to tst_popup::overlay(). In order to make touch tests reliable, touch event compression must be disabled. Change-Id: I9fcda132447d9a8cf6ef80163be46aea391eff24 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/popup')
-rw-r--r--tests/auto/popup/tst_popup.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/popup/tst_popup.cpp b/tests/auto/popup/tst_popup.cpp
index b052f9ca..9001c3ee 100644
--- a/tests/auto/popup/tst_popup.cpp
+++ b/tests/auto/popup/tst_popup.cpp
@@ -53,6 +53,7 @@ class tst_popup : public QQmlDataTest
Q_OBJECT
private slots:
+ void initTestCase();
void visible_data();
void visible();
void state();
@@ -77,6 +78,12 @@ private slots:
void componentComplete();
};
+void tst_popup::initTestCase()
+{
+ QQmlDataTest::initTestCase();
+ qputenv("QML_NO_TOUCH_COMPRESSION", "1");
+}
+
void tst_popup::visible_data()
{
QTest::addColumn<QString>("source");