Skip to content

Commit

Permalink
Wait for window focus instead of expose event
Browse files Browse the repository at this point in the history
This fixes the flakiness seen in OpenSUSE KDE/X11 desktop.

Fixes: QTBUG-70590
Task-number: QTBUG-105177
Change-Id: I7c2431e58b2a60ea04e26d4e70c0f2867d544ff2
Reviewed-by: Thorbjørn Lund Martsum <[email protected]>
Reviewed-by: Axel Spoerl <[email protected]>
  • Loading branch information
jimis committed Aug 11, 2022
1 parent 4cf30d8 commit d68da61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/auto/widgets/itemviews/qheaderview/BLACKLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[stretchAndRestoreLastSection]
opensuse-leap
# QTBUG-87406
[stretchAndRestoreLastSection]
android
Original file line number Diff line number Diff line change
Expand Up @@ -3380,7 +3380,7 @@ void tst_QHeaderView::stretchAndRestoreLastSection()
const int someOtherSectionSize = 40;
const int biggerSizeThanAnySection = 50;

QVERIFY(QTest::qWaitForWindowExposed(&tv));
QVERIFY(QTest::qWaitForWindowActive(&tv));

QHeaderView &header = *tv.horizontalHeader();
// set minimum size before resizeSections() is called
Expand Down

0 comments on commit d68da61

Please sign in to comment.