added render wait
commitb3162da2ee314e002221a6bdaf85785cb306ecea
authorNick Dedekind <nick.dedekind@canonical.com>
dateTue 10 Jan 2017, 13:50 (10 years ago)
parent458df7e
tests/qmltests/Panel/tst_Panel.qml+2
@@ -267,6 +267,8 @@ PanelTest {
267267 compare(backgroundPressedSpy.valid, true);
268268 windowControlButtonsSpy.clear();
269269 compare(windowControlButtonsSpy.valid, true);
270+
271+ waitForRendering(panel);
270272 }
271273
272274 function cleanup() {
tests/qmltests/Stage/tst_WindowDecoration.qml+2
@@ -128,6 +128,8 @@ Item {
128128 function init() {
129129 tryCompareFunction(function() { return decoration !== null }, true);
130130 decoration.menu = menuBackend;
131+
132+ waitForRendering(decoration);
131133 }
132134
133135 function cleanup() {