diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/gui/kernel/qwindow/tst_qwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp index a953a36559..79bfc8bf53 100644 --- a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp +++ b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp @@ -563,8 +563,9 @@ void tst_QWindow::childWindowPositioning() } // Creation order shouldn't affect the geometry - QCOMPARE(topLevelWindowFirst.geometry(), topLevelWindowAfter.geometry()); - QCOMPARE(childWindowAfter.geometry(), childWindowFirst.geometry()); + // Use try compare since on X11 the window manager may still re-position the window after expose + QTRY_COMPARE(topLevelWindowFirst.geometry(), topLevelWindowAfter.geometry()); + QTRY_COMPARE(childWindowAfter.geometry(), childWindowFirst.geometry()); // Creation order shouldn't affect the child ending up at 0,0 QCOMPARE(childWindowFirst.framePosition(), topLeftOrigin); |