From e08a6055854464ede380380d966be1a68f5b13eb Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Wed, 22 Apr 2020 10:47:49 +0200 Subject: tst_qiviabstractfeature: Fix wrong QML test case The autodiscovery QML test is trying to set the discoveryMode from Javascript and rediscover manually. Because of QTBUG-83703 the QML code is wrong and is only working because of the previous registration of the Feature using the same name. In Qt6 this won't work anymore and the QML code needs to be fixed to use the original enum. Change-Id: If52c370403958cb86c80d5952bf1efc7cd001dc8 Reviewed-by: Robert Griebl --- tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml b/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml index cac548c..73ca1b5 100644 --- a/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml +++ b/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml @@ -28,6 +28,7 @@ ****************************************************************************/ import QtQuick 2.0 +import QtIvi 1.0 import testfeature 1.0 Item { @@ -43,7 +44,9 @@ Item { } function discover() { - noAutoItem.discoveryMode = TestFeature.LoadOnlyProductionBackends + // We have to use AbstractFeature here instead of TestFeature because of + // QTBUG-83703 + noAutoItem.discoveryMode = AbstractFeature.LoadOnlyProductionBackends noAutoItem.startAutoDiscovery() } } -- cgit v1.2.1