Enable most of tst_qstatictext on non-developer builds
Only two tests inside tst_qstatictext required private symbols, so we can enable the rest on all builds. Change-Id: Id222ba01d9676c40b6447c1526ee127fcc2090d3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
39efe3c84d
commit
8589bb334f
@ -3,5 +3,7 @@ CONFIG += parallel_test
|
||||
linux: CONFIG += insignificant_test
|
||||
TARGET = tst_qstatictext
|
||||
QT += testlib
|
||||
QT += core-private gui-private
|
||||
|
||||
SOURCES += tst_qstatictext.cpp
|
||||
|
||||
contains(QT_CONFIG, private_tests): QT += core-private gui-private
|
||||
|
@ -39,7 +39,9 @@
|
||||
#include <qstatictext.h>
|
||||
#include <qpaintengine.h>
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
#include <private/qstatictext_p.h>
|
||||
#endif
|
||||
|
||||
// #define DEBUG_SAVE_IMAGE
|
||||
|
||||
@ -90,8 +92,10 @@ private slots:
|
||||
|
||||
void unprintableCharacter_qtbug12614();
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
void underlinedColor_qtbug20159();
|
||||
void textDocumentColor();
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool supportsTransformations() const;
|
||||
@ -829,6 +833,7 @@ void tst_QStaticText::unprintableCharacter_qtbug12614()
|
||||
QVERIFY(staticText.size().isValid()); // Force layout. Should not crash.
|
||||
}
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
void tst_QStaticText::underlinedColor_qtbug20159()
|
||||
{
|
||||
QString multiScriptText;
|
||||
@ -865,6 +870,7 @@ void tst_QStaticText::textDocumentColor()
|
||||
|
||||
QCOMPARE(d->items[1].color, QColor(Qt::red));
|
||||
}
|
||||
#endif
|
||||
|
||||
QTEST_MAIN(tst_QStaticText)
|
||||
#include "tst_qstatictext.moc"
|
||||
|
@ -30,6 +30,5 @@ win32:SUBDIRS -= qtextpiecetable
|
||||
!contains(QT_CONFIG, private_tests): SUBDIRS -= \
|
||||
qfontcache \
|
||||
qcssparser \
|
||||
qstatictext \
|
||||
qtextlayout \
|
||||
qtextpiecetable \
|
||||
|
Loading…
Reference in New Issue
Block a user