Extend tested formats in lancelot

Adds two formats that does not have optimized code-paths in qdrawhelper
to ensure the generic path has coverage.

This has already uncovered one bug fixed before this patch could go in.

Change-Id: I0e0a1a873555b27f6438f69a76982b8e06263dcf
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Allan Sandfeld Jensen 2016-09-19 10:41:57 +02:00 committed by Allan Sandfeld Jensen
parent 99242a2dec
commit bf76405afc

View File

@ -76,6 +76,10 @@ private slots:
void testRasterRGB32();
void testRasterRGB16_data();
void testRasterRGB16();
void testRasterARGB8565PM_data();
void testRasterARGB8565PM();
void testRasterGrayscale8_data();
void testRasterGrayscale8();
#ifndef QT_NO_OPENGL
void testOpenGL_data();
@ -155,6 +159,28 @@ void tst_Lancelot::testRasterRGB16()
}
void tst_Lancelot::testRasterARGB8565PM_data()
{
setupTestSuite();
}
void tst_Lancelot::testRasterARGB8565PM()
{
runTestSuite(Raster, QImage::Format_ARGB8565_Premultiplied);
}
void tst_Lancelot::testRasterGrayscale8_data()
{
setupTestSuite();
}
void tst_Lancelot::testRasterGrayscale8()
{
runTestSuite(Raster, QImage::Format_Grayscale8);
}
#ifndef QT_NO_OPENGL
bool tst_Lancelot::checkSystemGLSupport()
{