diff options
Diffstat (limited to 'tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp')
-rw-r--r-- | tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp b/tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp index 1ff17f9aa..a817028c3 100644 --- a/tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp +++ b/tests/auto/animation/lerpclipblend/tst_lerpclipblend.cpp @@ -50,8 +50,6 @@ public: , m_duration(duration) {} - float blend(float, float) const Q_DECL_FINAL { return 0.0f; } - QVector<Qt3DCore::QNodeId> dependencyIds() const Q_DECL_FINAL { return QVector<Qt3DCore::QNodeId>(); @@ -181,35 +179,6 @@ private Q_SLOTS: } } - void checkBlend_data() - { - QTest::addColumn<float>("value1"); - QTest::addColumn<float>("value2"); - QTest::addColumn<float>("blendFactor"); - QTest::addColumn<float>("result"); - - QTest::newRow("0_blending") << 8.0f << 5.0f << 0.0f << 8.0f; - QTest::newRow("0.5_blending") << 8.0f << 5.0f << 0.5f << 6.5f; - QTest::newRow("1_blending") << 8.0f << 5.0f << 1.0f << 5.0f; - } - - void checkBlend() - { - // GIVEN - QFETCH(float, value1); - QFETCH(float, value2); - QFETCH(float, blendFactor); - QFETCH(float, result); - LerpClipBlend lerpBlend; - - // WHEN - lerpBlend.setBlendFactor(blendFactor); - const float computed = lerpBlend.blend(value1, value2); - - // THEN - QCOMPARE(computed, result); - } - void checkDependencyIds() { // GIVEN |