Changeset View
Changeset View
Standalone View
Standalone View
autotests/client/test_wayland_surface.cpp
Show First 20 Lines • Show All 504 Lines • ▼ Show 20 Line(s) | 366 | { | |||
---|---|---|---|---|---|
505 | buffer->unref(); | 505 | buffer->unref(); | ||
506 | } | 506 | } | ||
507 | 507 | | |||
508 | void TestWaylandSurface::testMultipleSurfaces() | 508 | void TestWaylandSurface::testMultipleSurfaces() | ||
509 | { | 509 | { | ||
510 | using namespace KWayland::Client; | 510 | using namespace KWayland::Client; | ||
511 | using namespace KWayland::Server; | 511 | using namespace KWayland::Server; | ||
512 | Registry registry; | 512 | Registry registry; | ||
513 | registry.setEventQueue(m_queue); | ||||
513 | QSignalSpy shmSpy(®istry, SIGNAL(shmAnnounced(quint32,quint32))); | 514 | QSignalSpy shmSpy(®istry, SIGNAL(shmAnnounced(quint32,quint32))); | ||
514 | registry.create(m_connection->display()); | 515 | registry.create(m_connection->display()); | ||
515 | QVERIFY(registry.isValid()); | 516 | QVERIFY(registry.isValid()); | ||
516 | registry.setup(); | 517 | registry.setup(); | ||
517 | QVERIFY(shmSpy.wait()); | 518 | QVERIFY(shmSpy.wait()); | ||
518 | 519 | | |||
519 | ShmPool pool1; | 520 | ShmPool pool1; | ||
520 | ShmPool pool2; | 521 | ShmPool pool2; | ||
▲ Show 20 Lines • Show All 683 Lines • Show Last 20 Lines |