Skip tst_QPushButton::sizeHint() with Mac style on Mac OS X
QStyleFactory cannot create the Mac style, so skip the test for now. Task-number: QTBUG-23680 Change-Id: I2ae61aab152cd8a4e6a7270902df40dd3cc6df3b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
9f0ddaae41
commit
2f46ea9fd6
@ -599,6 +599,11 @@ void tst_QPushButton::sizeHint()
|
||||
{
|
||||
QFETCH(QString, stylename);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
if (stylename == "mac")
|
||||
QSKIP("QStyleFactory cannot create the Mac style, see QTBUG-23680");
|
||||
#endif
|
||||
|
||||
QStyle *style = QStyleFactory::create(stylename);
|
||||
if (!style)
|
||||
QFAIL(qPrintable(QString::fromLatin1("Cannot create style: %1").arg(stylename)));
|
||||
|
Loading…
Reference in New Issue
Block a user