summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2022-04-07 15:22:01 +0300
committerTarja Sundqvist <tarja.sundqvist@qt.io>2022-04-07 15:22:01 +0300
commit5f8e2a037d5201c902149c828d102b71e90257e2 (patch)
treed216ff0f6ed44218eaf7d063009a5737d0c24849 /tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
parent19af9584f7b80928ee49950c573c770af68c9519 (diff)
parent2f208b8c4f46f0bfe08a93f0e23aeb2caa80e6b2 (diff)
Merge remote-tracking branch 'origin/tqtc/lts-5.15.4' into tqtc/lts-5.15-opensourcev5.15.4-lts-lgpl
Diffstat (limited to 'tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp')
-rw-r--r--tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
index cda6bcce..1516e67d 100644
--- a/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-proxy/tst_proxy.cpp
@@ -47,6 +47,7 @@ private slots:
void initialProperties();
void initializeProperties();
+ void initialRow();
private:
QSurfaceDataProxy *m_proxy;
@@ -105,5 +106,14 @@ void tst_proxy::initializeProperties()
QCOMPARE(m_proxy->rowCount(), 2);
}
+void tst_proxy::initialRow()
+{
+ QSurfaceDataProxy proxy;
+ QSurfaceDataRow row{QSurfaceDataItem{QVector3D{0, 0, 0}},
+ QSurfaceDataItem{QVector3D{1, 1, 1}}};
+ proxy.addRow(new QSurfaceDataRow(row));
+ proxy.addRow(new QSurfaceDataRow(row));
+}
+
QTEST_MAIN(tst_proxy)
#include "tst_proxy.moc"