diff options
Diffstat (limited to 'tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp')
-rw-r--r-- | tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp b/tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp index 50c0eb524..cc09c7941 100644 --- a/tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp +++ b/tests/auto/animation/findrunningclipanimatorsjob/tst_findrunningclipanimatorsjob.cpp @@ -61,7 +61,8 @@ public: const Qt3DCore::QNodeId targetId, const QString &property, const char *propertyName, - int type) + int type, + int componentCount) { auto channelMappingId = Qt3DCore::QNodeId::createId(); ChannelMapping *channelMapping = handler->channelMappingManager()->getOrCreateResource(channelMappingId); @@ -72,6 +73,7 @@ public: channelMapping->setPropertyName(propertyName); channelMapping->setChannelName(channelName); channelMapping->setType(type); + channelMapping->setComponentCount(componentCount); channelMapping->setMappingType(ChannelMapping::ChannelMappingType); return channelMapping; } @@ -143,7 +145,8 @@ private Q_SLOTS: Qt3DCore::QNodeId::createId(), QLatin1String("translation"), "translation", - static_cast<int>(QVariant::Vector3D)); + static_cast<int>(QVariant::Vector3D), + 3); QVector<ChannelMapping *> channelMappings; channelMappings.push_back(channelMapping); @@ -188,7 +191,8 @@ private Q_SLOTS: Qt3DCore::QNodeId::createId(), QLatin1String("translation"), "translation", - static_cast<int>(QVariant::Vector3D)); + static_cast<int>(QVariant::Vector3D), + 3); QVector<ChannelMapping *> channelMappings; channelMappings.push_back(channelMapping); @@ -198,9 +202,9 @@ private Q_SLOTS: animator->setEnabled(false); // Has to be marked as enabled for the job to process it QTest::newRow("disabled animator") - << handler - << dirtyClipAnimators - << expectedResults; + << handler + << dirtyClipAnimators + << expectedResults; } } |