summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-11-10 14:52:11 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2015-11-16 12:26:57 +0000
commitc91a03ca64ee4e4db1c98d1b007674177b6d9169 (patch)
tree60d19636c3346c6c5993b957072d0dd19dc4241c /tests
parentba6c8d3f856286f54751bab70b0c2500c7ef9dc1 (diff)
Updated Entity unit tests
Change-Id: I27866c85f3ad221e750dab4810dd4f5b8a7d0155 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/render/entity/tst_entity.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/render/entity/tst_entity.cpp b/tests/auto/render/entity/tst_entity.cpp
index 7a44df40b..0d828c5e2 100644
--- a/tests/auto/render/entity/tst_entity.cpp
+++ b/tests/auto/render/entity/tst_entity.cpp
@@ -110,6 +110,7 @@ private slots:
QVERIFY(entity.componentUuid<BoundingVolumeDebug>().isNull());
QVERIFY(entity.componentsUuid<Layer>().isEmpty());
QVERIFY(entity.componentsUuid<ShaderData>().isEmpty());
+ QVERIFY(!entity.isBoundingVolumeDirty());
// WHEN
Q_FOREACH (QComponent *component, components) {
@@ -128,6 +129,7 @@ private slots:
QVERIFY(!entity.componentUuid<BoundingVolumeDebug>().isNull());
QVERIFY(!entity.componentsUuid<Layer>().isEmpty());
QVERIFY(!entity.componentsUuid<ShaderData>().isEmpty());
+ QVERIFY(entity.isBoundingVolumeDirty());
// WHEN
entity.cleanup();
@@ -141,6 +143,7 @@ private slots:
QVERIFY(entity.componentUuid<BoundingVolumeDebug>().isNull());
QVERIFY(entity.componentsUuid<Layer>().isEmpty());
QVERIFY(entity.componentsUuid<ShaderData>().isEmpty());
+ QVERIFY(!entity.isBoundingVolumeDirty());
}
void shouldHandleSingleComponentEvents_data()