path: root/tests/auto/gui/kernel/qtouchevent/
diff options
authorFriedemann Kleint <>2015-05-21 16:45:37 +0200
committerSimon Hausmann <>2015-05-29 16:36:48 +0000
commit0c5befa129ad913c5934e72f19abbff553aee6da (patch)
tree3e891e1a810f38759b44e7b65aeb306c473db11a /tests/auto/gui/kernel/qtouchevent/
parent4964c895406b8316d15668affd32cc5eb7b6c7ea (diff)
Reanimate test gui/kernel/qtouchevent/tst_qtouchevent.
Add CONFIG += testcase to the .pro file which was missing. The test thus was never executed by make check and left to rot. Fix up code: - Remove module includes. - Introduce explicit constructors taking parent object for helper classes, removing calls to setParent(). - Ensure test does not leak objects by converting pointers to stack variables or introducing QScopedPointer, verify by checking for an empty window list in cleanup(). - Simplify code by removing unneeded variables. - Split up conditions in QVERIFY(). Fix tests: - Show windows were required when events are sent to QWidget::windowHandle(). - Invert the conditions checking whether touch events are accepted by widgets since widgets no longer accept them by defaults in Qt 5 after e50416066cab4be7df8382bd224d9e4ddd7a903a. - XFAIL multiPointRawEventTranslationOnTouchPad() which started to fail at some point in Qt 5. - Mark as insignificant on OS X due to crash. Task-number: QTBUG-46266 Change-Id: I6676d021afb015411a24d97d9b8f7c327d4d3c3f Reviewed-by: Simon Hausmann <>
Diffstat (limited to 'tests/auto/gui/kernel/qtouchevent/')
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qtouchevent/ b/tests/auto/gui/kernel/qtouchevent/
index 7136611165..b1e3c10724 100644
--- a/tests/auto/gui/kernel/qtouchevent/
+++ b/tests/auto/gui/kernel/qtouchevent/
@@ -1,3 +1,5 @@
+CONFIG += testcase
+osx: CONFIG += insignificant_test # QTBUG-46266, crashes
QT += testlib widgets gui-private