[autotests] Another change for SceneQPainterTest::testX11Window to make it pass CI

Still missing ideas, theory is that rendering on Xwayland is too slow and
we have an invalid buffer or that reparenting took to long.
icc-effect-5.14.5
Martin Flöser 2017-07-28 06:50:00 +02:00
parent eee2ace6a1
commit f6c964a32b
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KWayland/Client/shell.h>
#include <KWayland/Client/surface.h>
#include <KWayland/Client/pointer.h>
#include <KWayland/Server/buffer_interface.h>
#include <KWayland/Server/surface_interface.h>
#include <QPainter>
@ -341,6 +342,7 @@ void SceneQPainterTest::testX11Window()
}
QVERIFY(client->surface());
QTRY_VERIFY(client->surface()->buffer());
QTRY_COMPARE(client->surface()->buffer()->data().size(), client->geometry().size());
// enough time for rendering the window
QTest::qWait(100);