Remove window frame for combo-box widget baseline test case
The window frame differs across ms-windows version and this makes combobox test case either fail or more fuzzy. To avoid this provide only window geometry for screen capture instead of complete window rectangle. Change-Id: I0f1a1a95c45218ccc69fc92f589baee0135db943 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
141d626029
commit
ee3611ce91
@ -1217,7 +1217,7 @@ void tst_Widgets::tst_QCombobox()
|
|||||||
takeStandardSnapshots();
|
takeStandardSnapshots();
|
||||||
|
|
||||||
QTest::keyClick(combobox.get(), Qt::Key_Down, Qt::AltModifier);
|
QTest::keyClick(combobox.get(), Qt::Key_Down, Qt::AltModifier);
|
||||||
QBASELINE_CHECK_DEFERRED(takeScreenSnapshot(testWindow()->rect()), "combobox");
|
QBASELINE_CHECK_DEFERRED(takeScreenSnapshot(testWindow()->geometry()), "combobox");
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_Widgets::tst_QCommandLinkButton_data()
|
void tst_Widgets::tst_QCommandLinkButton_data()
|
||||||
|
Loading…
Reference in New Issue
Block a user