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:
Tor Arne Vestbø 2025-07-31 13:58:44 +02:00
parent 9139b5c426
commit e00e77bc41
1 changed files with 1 additions and 1 deletions

View File

@ -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)