Fix XPASS in tst_QGraphicsWidget on Mac OS X
Don't expect failure from these 2 tests anymore: XPASS : tst_QGraphicsWidget::initStyleOption(all) COMPARE() Loc: [tst_qgraphicswidget.cpp(1162)] XPASS : tst_QGraphicsWidget::initialShow2() COMPARE() Loc: [tst_qgraphicswidget.cpp(3196)] Change-Id: Ibd1178f8cab480fa9fad9c829083a4862749c60b Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
37167e3420
commit
619fbc129d
@ -1157,7 +1157,7 @@ void tst_QGraphicsWidget::initStyleOption()
|
||||
bool hasFocus = option.state & QStyle::State_HasFocus;
|
||||
QCOMPARE(hasFocus, focus);
|
||||
bool isUnderMouse = option.state & QStyle::State_MouseOver;
|
||||
#ifndef Q_OS_WINCE
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_MAC)
|
||||
QEXPECT_FAIL("all", "QTBUG-22457", Abort);
|
||||
QCOMPARE(isUnderMouse, underMouse);
|
||||
#endif
|
||||
@ -3192,7 +3192,9 @@ void tst_QGraphicsWidget::initialShow2()
|
||||
view.show();
|
||||
QTest::qWaitForWindowShown(&view);
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
QEXPECT_FAIL("", "QTBUG-20778", Abort);
|
||||
#endif
|
||||
QTRY_COMPARE(widget->repaints, expectedRepaintCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user