aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qquicklistview/BLACKLIST2
-rw-r--r--tests/auto/quick/qquicklistview/tst_qquicklistview.cpp8
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicklistview/BLACKLIST b/tests/auto/quick/qquicklistview/BLACKLIST
index 6e100ef319..6273398744 100644
--- a/tests/auto/quick/qquicklistview/BLACKLIST
+++ b/tests/auto/quick/qquicklistview/BLACKLIST
@@ -14,5 +14,3 @@ opensuse-leap
ubuntu-18.04
[touchCancel]
* # QTBUG-86729
-[parentBinding]
-* # QTBUG-86729
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
index 4f504103d4..132c42ec1f 100644
--- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
+++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
@@ -45,6 +45,7 @@
#include <QtQmlModels/private/qqmlobjectmodel_p.h>
#include <QtQmlModels/private/qqmllistmodel_p.h>
#include <QtQmlModels/private/qqmldelegatemodel_p.h>
+#include <qpa/qwindowsysteminterface.h>
#include "../../shared/util.h"
#include "../shared/viewtestutil.h"
#include "../shared/visualtestutil.h"
@@ -8068,6 +8069,13 @@ void tst_QQuickListView::destroyItemOnCreation()
void tst_QQuickListView::parentBinding()
{
+ // Ensure there's at least one mouse on every platform, to avoid the messageHandler seeing "no mouse-like devices registered"
+ QScopedPointer<QPointingDevice> fallbackMouse(
+ new QPointingDevice("test mouse", 1000, QInputDevice::DeviceType::Mouse, QPointingDevice::PointerType::Generic,
+ QInputDevice::Capability::Position | QInputDevice::Capability::Hover | QInputDevice::Capability::Scroll,
+ 1, 5, QString(), QPointingDeviceUniqueId(), this));
+ QWindowSystemInterface::registerInputDevice(fallbackMouse.data());
+
QScopedPointer<QQuickView> window(createView());
QQmlTestMessageHandler messageHandler;