summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJuan José Casafranca <juan.casafranca@kdab.com>2020-09-30 13:34:23 +0200
committerPaul Lemire <paul.lemire@kdab.com>2020-10-27 08:54:20 +0100
commit9ed9a165f8470cfe88fdbc658b8d12b38f111f1e (patch)
treedc151790c31bef8c19aca9f4e67ef92a933b5af7 /tests
parent2e089e74e5cb2337f801359157c842f24aa73f3d (diff)
Pass the raw data to the texture data extractor
Change-Id: If6ca151b22f442985df1ff34108ca0bd216ebf47 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> (cherry picked from commit 6fdf835639e56c68ae01da894c7d2b9f552dd87d)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/render/qtextureimagedata/tst_qtextureimagedata.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/tests/auto/render/qtextureimagedata/tst_qtextureimagedata.cpp b/tests/auto/render/qtextureimagedata/tst_qtextureimagedata.cpp
index 58e360378..429d6cfe7 100644
--- a/tests/auto/render/qtextureimagedata/tst_qtextureimagedata.cpp
+++ b/tests/auto/render/qtextureimagedata/tst_qtextureimagedata.cpp
@@ -62,38 +62,16 @@ private Q_SLOTS:
QCOMPARE(tid->alignment(), 1);
}
- void checkCloning_data()
- {
-
- }
-
- void checkCloning()
- {
- }
-
- void checkPropertyUpdates()
- {
- }
-
void checkTextureDataUsesFunctor() {
Qt3DRender::QTextureImageData *tid = new Qt3DRender::QTextureImageData();
- tid->setData({}, [](int, int, int) {
+ tid->setData({}, [](QByteArray, int, int, int) {
return QByteArray("a");
}, false);
QByteArray data = tid->data();
QCOMPARE(data.data()[0], 'a');
}
-/*
-protected:
-
- Qt3DCore::QNode *doClone() const override
- {
- return nullptr;
- }
- */
-
};
QTEST_MAIN(tst_QTextureImageData)