diff options
author | Svenn-Arne Dragly <svenn-arne.dragly@qt.io> | 2017-11-15 12:50:34 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-15 19:05:21 +0000 |
commit | 1035298fc3c35aa7509f12c33ec045d8e81d55ad (patch) | |
tree | f4b269a5d81e5de791173ee5f3e13d3010f7ff93 | |
parent | 056d5410b31d7c589f39e58162412f08cc922d0d (diff) |
Test if m_mappingType is properly initialized in tst_channelmapping
Change-Id: I125462c2ca8abfd4a563c8128dce9b9efcae02f8
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | tests/auto/animation/channelmapping/tst_channelmapping.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/animation/channelmapping/tst_channelmapping.cpp b/tests/auto/animation/channelmapping/tst_channelmapping.cpp index 8f276f0bd..a947d4a2d 100644 --- a/tests/auto/animation/channelmapping/tst_channelmapping.cpp +++ b/tests/auto/animation/channelmapping/tst_channelmapping.cpp @@ -68,6 +68,7 @@ private Q_SLOTS: QCOMPARE(backendMapping.channelName(), mapping.channelName()); QCOMPARE(backendMapping.targetId(), mapping.target()->id()); QCOMPARE(backendMapping.property(), mapping.property()); + QCOMPARE(backendMapping.mappingType(), Qt3DAnimation::Animation::ChannelMapping::ChannelMappingType); // GIVEN Qt3DAnimation::Animation::ChannelMapping backendSkeletonMapping; @@ -83,6 +84,7 @@ private Q_SLOTS: QCOMPARE(backendSkeletonMapping.peerId(), skeletonMapping.id()); QCOMPARE(backendSkeletonMapping.isEnabled(), skeletonMapping.isEnabled()); QCOMPARE(backendSkeletonMapping.skeletonId(), skeletonMapping.skeleton()->id()); + QCOMPARE(backendSkeletonMapping.mappingType(), Qt3DAnimation::Animation::ChannelMapping::SkeletonMappingType); } void checkInitialAndCleanedUpState() @@ -99,6 +101,7 @@ private Q_SLOTS: QCOMPARE(backendMapping.targetId(), Qt3DCore::QNodeId()); QCOMPARE(backendMapping.property(), QString()); QCOMPARE(backendMapping.skeletonId(), Qt3DCore::QNodeId()); + QCOMPARE(backendMapping.mappingType(), Qt3DAnimation::Animation::ChannelMapping::ChannelMappingType); // GIVEN Qt3DAnimation::QChannelMapping mapping; @@ -118,6 +121,7 @@ private Q_SLOTS: QCOMPARE(backendMapping.targetId(), Qt3DCore::QNodeId()); QCOMPARE(backendMapping.property(), QString()); QCOMPARE(backendMapping.skeletonId(), Qt3DCore::QNodeId()); + QCOMPARE(backendMapping.mappingType(), Qt3DAnimation::Animation::ChannelMapping::ChannelMappingType); } void checkPropertyChanges() |