summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/uniform/tst_uniform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/uniform/tst_uniform.cpp')
-rw-r--r--tests/auto/render/uniform/tst_uniform.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/render/uniform/tst_uniform.cpp b/tests/auto/render/uniform/tst_uniform.cpp
index 213646369..c0e33f49b 100644
--- a/tests/auto/render/uniform/tst_uniform.cpp
+++ b/tests/auto/render/uniform/tst_uniform.cpp
@@ -143,6 +143,15 @@ private Q_SLOTS:
}
}
}
+ {
+ // GIVEN
+ const Qt3DCore::QNodeId nodeId = Qt3DCore::QNodeId::createId();
+ UniformValue v(nodeId);
+
+ // THEN
+ QCOMPARE(v.byteSize(), sizeof(Qt3DCore::QNodeId));
+ QCOMPARE(v.constData<Qt3DCore::QNodeId>()[0], nodeId);
+ }
}
void checkFromVariant()