diff options
Diffstat (limited to 'tests/auto/bodymovin/shape/fill/tst_bmfill.cpp')
-rw-r--r-- | tests/auto/bodymovin/shape/fill/tst_bmfill.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/bodymovin/shape/fill/tst_bmfill.cpp b/tests/auto/bodymovin/shape/fill/tst_bmfill.cpp index 70a86d7..81de85f 100644 --- a/tests/auto/bodymovin/shape/fill/tst_bmfill.cpp +++ b/tests/auto/bodymovin/shape/fill/tst_bmfill.cpp @@ -204,6 +204,12 @@ void tst_BMFill::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(); @@ -215,7 +221,7 @@ void tst_BMFill::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_FILL_IX) break; |