diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-09-15 14:35:24 +0200 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2018-09-15 15:39:21 +0000 |
commit | 6bb0cbc6865911c31f5edee7c24f270d265bd46d (patch) | |
tree | 2666556d0faf21eba59c6127ee33fda290cd6e2b /config.tests/avx512/avx512.cpp | |
parent | f4dd670fe93b094aade3eac26adc81cf71b197b7 (diff) |
tst_QMdiSubWindow: fix flaky setOpaqueResizeAndMove test
tst_QMdiSubWindow::setOpaqueResizeAndMove checks if a resize of the mdi
subwindow works as expected by simulating mouse events. Those events are
sent to fast and therefore the operationMap of QMdiSubWindowPrivate is
not yet updated which let the test fail. There was already a call to
qWait(250) to wait for the 200ms timer but sometimes (esp. in virtual
environments) the timer was not triggered after this period.
Fix it by checking if resizeTimerId is set back to -1 which means that
updateDirtyRegions() was called.
Change-Id: I961ba80589d2f725a6858ba70b84fb35750a6964
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'config.tests/avx512/avx512.cpp')
0 files changed, 0 insertions, 0 deletions