tst_QImageReader: move text reading tests behind a flag
Moved tst_QImageReader::readText() and tst_QImageReader::preserveTexts() behind QT_NO_IMAGEIO_TEXT_LOADING flag. The tests were failing on webOS. Fixes: QTBUG-99717 Pick-to: 6.3 Change-Id: Ib23decbaffe8d87c07fd68c41a28a3f7ca969cb1 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
a325016aa9
commit
3535f66e07
@ -1953,6 +1953,10 @@ void tst_QImageReader::readText_data()
|
||||
|
||||
void tst_QImageReader::readText()
|
||||
{
|
||||
#ifdef QT_NO_IMAGEIO_TEXT_LOADING
|
||||
QSKIP("Reading text from image is configured away");
|
||||
#endif
|
||||
|
||||
QFETCH(QString, fileName);
|
||||
QFETCH(QString, key);
|
||||
QFETCH(QString, text);
|
||||
@ -1994,6 +1998,10 @@ void tst_QImageReader::preserveTexts_data()
|
||||
|
||||
void tst_QImageReader::preserveTexts()
|
||||
{
|
||||
#ifdef QT_NO_IMAGEIO_TEXT_LOADING
|
||||
QSKIP("Reading text from image is configured away");
|
||||
#endif
|
||||
|
||||
QFETCH(QString, fileName);
|
||||
QByteArray format = fileName.right(3).toLatin1();
|
||||
QFETCH(QString, text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user