summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/qgeometry
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-02-26 14:16:21 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-03-05 12:00:29 +0000
commitaf20237e24ca355c9369eff116c4b16df62737cd (patch)
tree77f829355d34f982eb5f18b885f6a837a6633f6d /tests/auto/render/qgeometry
parent34b3c898f4d7cbac46550a59bf5ac487df578188 (diff)
QGeometry: move verticesPerPath to QGeometryRenderer
Change-Id: I6f86164eff9f0709f400c4404cf1d104e7632be5 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/render/qgeometry')
-rw-r--r--tests/auto/render/qgeometry/tst_qgeometry.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/auto/render/qgeometry/tst_qgeometry.cpp b/tests/auto/render/qgeometry/tst_qgeometry.cpp
index c59a38c7a..c23d14d18 100644
--- a/tests/auto/render/qgeometry/tst_qgeometry.cpp
+++ b/tests/auto/render/qgeometry/tst_qgeometry.cpp
@@ -59,7 +59,6 @@ private Q_SLOTS:
QTest::newRow("defaultConstructed") << defaultConstructed << 0;
Qt3DRender::QGeometry *geometry1 = new Qt3DRender::QGeometry();
- geometry1->setVerticesPerPatch(2);
Qt3DRender::QAttribute *attribute = new Qt3DRender::QAttribute(Q_NULLPTR, QStringLiteral("Attr1"), Qt3DRender::QAttribute::Float, 4, 454);
geometry1->addAttribute(attribute);
geometry1->addAttribute(new Qt3DRender::QAttribute(Q_NULLPTR, QStringLiteral("Attr2"), Qt3DRender::QAttribute::Float, 4, 555));
@@ -73,7 +72,6 @@ private Q_SLOTS:
geometry2->addAttribute(attribute);
geometry2->addAttribute(new Qt3DRender::QAttribute(Q_NULLPTR, QStringLiteral("Attr3"), Qt3DRender::QAttribute::Float, 2, 327));
geometry2->removeAttribute(attribute);
- geometry2->setVerticesPerPatch(3);
QTest::newRow("3 - 1 attributes") << geometry2 << 2;
}
@@ -92,7 +90,6 @@ private Q_SLOTS:
QCOMPARE(geometry->id(), clone->id());
QCOMPARE(attributeCount, geometry->attributes().count());
QCOMPARE(attributeCount, clone->attributes().count());
- QCOMPARE(geometry->verticesPerPatch(), clone->verticesPerPatch());
if (geometry->boundingVolumeSpecifier()->positionAttribute())
QCOMPARE(geometry->boundingVolumeSpecifier()->positionAttribute()->id(), clone->boundingVolumeSpecifier()->positionAttribute()->id());
@@ -152,19 +149,6 @@ private Q_SLOTS:
arbiter.events.clear();
// WHEN
- geometry->setVerticesPerPatch(2);
- QCoreApplication::processEvents();
-
- // THEN
- QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
- QCOMPARE(change->propertyName(), "verticesPerPatch");
- QCOMPARE(change->value().toInt(), 2);
- QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
-
- arbiter.events.clear();
-
- // WHEN
geometry->boundingVolumeSpecifier()->setPositionAttribute(&attr);
QCoreApplication::processEvents();