diff options
Diffstat (limited to 'tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp')
-rw-r--r-- | tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp b/tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp index 021adde..ffca2fc 100644 --- a/tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp +++ b/tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp @@ -283,6 +283,12 @@ void tst_BMEllipse::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(); @@ -294,7 +300,7 @@ void tst_BMEllipse::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_ELLIPSE_IX) break; |