Re-enable the QMacStyle test.
This test has only stable failures. Mark those failures with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-25296 Change-Id: I5615700ec8119a827c30e43ae651a684e78170fe Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>bb10
parent
e998f971f6
commit
39e6d75511
|
|
@ -2,6 +2,3 @@ CONFIG += testcase
|
|||
TARGET = tst_qmacstyle
|
||||
QT += widgets testlib
|
||||
SOURCES += tst_qmacstyle.cpp
|
||||
|
||||
|
||||
mac*:CONFIG+=insignificant_test # QTBUG-25296
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ void tst_QMacStyle::sizeHints()
|
|||
QCOMPARE(sh(&progress1).width(), SIZE(16, 10, 10)); // Builder
|
||||
|
||||
QRadioButton radio1("Radio", &w);
|
||||
QEXPECT_FAIL("", "QTBUG-25296", Abort);
|
||||
QCOMPARE(sh(&radio1).height(), SIZE(15, 12, 10)); // Builder
|
||||
|
||||
QCheckBox checkBox1("Switch", &w);
|
||||
|
|
@ -401,6 +402,8 @@ void tst_QMacStyle::smallMiniNormalExclusivity()
|
|||
opt.initFrom(&dummyWidget);
|
||||
QSize size = dummyWidget.style()->sizeFromContents(QStyle::CT_PushButton, &opt,
|
||||
QSize(0, 0), &dummyWidget);
|
||||
if (size.height() != expected[i])
|
||||
QEXPECT_FAIL("", "QTBUG-25296", Abort);
|
||||
QCOMPARE(size.height(), expected[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue