summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2020-04-22 10:47:49 +0200
committerDominik Holland <dominik.holland@qt.io>2020-04-23 10:40:55 +0200
commite08a6055854464ede380380d966be1a68f5b13eb (patch)
tree5ef54164da4bbf9d5822ad5e3d28bbaf456a7cd6
parentd15d570d0730b917785b73f5f267fe3b8ea05b18 (diff)
downloadqtivi-5.14.tar.gz
tst_qiviabstractfeature: Fix wrong QML test case5.14
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 <robert.griebl@qt.io>
-rw-r--r--tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml5
1 files changed, 4 insertions, 1 deletions
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()
}
}