Stabilize tst_QWindow::childWindowPositioning
Change-Id: I13215eb9f4efc145922e9c4a98d66db568381783 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
d7e27e4d26
commit
e5b166875a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user