[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.
This commit is contained in:
parent
eee2ace6a1
commit
f6c964a32b
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include <KWayland/Client/shell.h>
|
#include <KWayland/Client/shell.h>
|
||||||
#include <KWayland/Client/surface.h>
|
#include <KWayland/Client/surface.h>
|
||||||
#include <KWayland/Client/pointer.h>
|
#include <KWayland/Client/pointer.h>
|
||||||
|
#include <KWayland/Server/buffer_interface.h>
|
||||||
#include <KWayland/Server/surface_interface.h>
|
#include <KWayland/Server/surface_interface.h>
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
@ -341,6 +342,7 @@ void SceneQPainterTest::testX11Window()
|
||||||
}
|
}
|
||||||
QVERIFY(client->surface());
|
QVERIFY(client->surface());
|
||||||
QTRY_VERIFY(client->surface()->buffer());
|
QTRY_VERIFY(client->surface()->buffer());
|
||||||
|
QTRY_COMPARE(client->surface()->buffer()->data().size(), client->geometry().size());
|
||||||
|
|
||||||
// enough time for rendering the window
|
// enough time for rendering the window
|
||||||
QTest::qWait(100);
|
QTest::qWait(100);
|
||||||
|
|
Loading…
Reference in a new issue