Stabilize tst_QWindow::childWindowPositioning

Change-Id: I13215eb9f4efc145922e9c4a98d66db568381783
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
Frederik Gladhorn 2015-11-11 15:24:37 +01:00 committed by Jędrzej Nowacki
parent d7e27e4d26
commit e5b166875a

View File

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