Stabilize tst_qsplitter
This is the worst fix ever, adding one more qWait. The test has been updated in the 5.13 branch, so there a different fix will be needed. For now this is in line with the rest of the code. This test is currently one of the worst offenders when it comes to flaky tests. Task-number: QTBUG-64639 Change-Id: Ia1e71cc948997408b9658839013c9ad098111033 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
parent
7940791f47
commit
73a19a3a10
|
|
@ -1,2 +0,0 @@
|
|||
[replaceWidget:visible, not collapsed]
|
||||
xcb
|
||||
|
|
@ -735,6 +735,7 @@ void tst_QSplitter::replaceWidget()
|
|||
|
||||
// Configure splitter
|
||||
QWidget *oldWidget = sp.widget(index);
|
||||
QTest::qWait(100); // Make sure we record the right original size (after the window manager adds the frame)
|
||||
const QRect oldGeom = oldWidget ? oldWidget->geometry() : QRect();
|
||||
if (oldWidget) {
|
||||
// Collapse first, then hide, if necessary
|
||||
|
|
|
|||
Loading…
Reference in New Issue