summaryrefslogtreecommitdiffstats
path: root/tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp')
-rw-r--r--tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp b/tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp
index e6f2e41..88d2b27 100644
--- a/tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp
+++ b/tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp
@@ -428,6 +428,12 @@ void tst_BMRepeaterTransform::loadTestData(const QByteArray &filename)
if (rootObj.empty())
QFAIL("Cannot parse test file");
+ QStringList vs = rootObj.value(QLatin1String("v")).toString().split(u'.');
+ QList<int> vi;
+ foreach (QString v, vs)
+ vi.append(v.toInt());
+ QVersionNumber version = QVersionNumber(vi);
+
QJsonArray layers = rootObj.value(QLatin1String("layers")).toArray();
QJsonObject layerObj = layers[0].toObject();
int type = layerObj.value(QLatin1String("ty")).toInt();
@@ -439,7 +445,7 @@ void tst_BMRepeaterTransform::loadTestData(const QByteArray &filename)
BMShape* shape = nullptr;
while (shapesIt != shapes.end()) {
QJsonObject childObj = (*shapesIt).toObject();
- shape = BMShape::construct(childObj);
+ shape = BMShape::construct(childObj, version);
QVERIFY(shape != nullptr);
if (shape->type() == BM_SHAPE_REPEATER_IX)
break;