diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-01-17 13:26:41 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-23 14:47:10 +0100 |
commit | 2f46ea9fd677ffff3592b096db4aecdaaaa2b5aa (patch) | |
tree | 5986bb566b137d9bdfb080a1067495f81b3e0647 /tests/auto/widgets/widgets/qpushbutton | |
parent | 9f0ddaae4192edb9d26ebb0a9f52b34a300d3422 (diff) |
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>
Diffstat (limited to 'tests/auto/widgets/widgets/qpushbutton')
-rw-r--r-- | tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp b/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp index c0b3d34f7e..fda94f5450 100644 --- a/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp +++ b/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp @@ -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))); |