mirror of https://github.com/qt/qtbase.git
baseline tst_Widgets::tst_QLCDNumber: Use takeStandardSnapshots
Instead of manually taking a single snapshot. The latter does not automatically show the window, which means the size might be wrong. Plus we should test all states, as they are slightly different. Change-Id: Icaf0d8829cf4fed28cefc6f4a3e258f4d8e60e43 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
9139b5c426
commit
e00e77bc41
|
@ -1351,7 +1351,7 @@ void tst_Widgets::tst_QLCDNumber()
|
|||
layout.addWidget(lcdNumber.get());
|
||||
testWindow()->setLayout(&layout);
|
||||
|
||||
QBASELINE_CHECK_DEFERRED(takeSnapshot(), "lcdnumber");
|
||||
takeStandardSnapshots();
|
||||
}
|
||||
|
||||
QBASELINETEST_MAIN(tst_Widgets)
|
||||
|
|
Loading…
Reference in New Issue