Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/quick_tiling_test.cpp
Show First 20 Lines • Show All 409 Lines • ▼ Show 20 Line(s) | |||||
410 | 410 | | |||
411 | void QuickTilingTest::testQuickTilingPointerMove() | 411 | void QuickTilingTest::testQuickTilingPointerMove() | ||
412 | { | 412 | { | ||
413 | using namespace KWayland::Client; | 413 | using namespace KWayland::Client; | ||
414 | 414 | | |||
415 | QScopedPointer<Surface> surface(Test::createSurface()); | 415 | QScopedPointer<Surface> surface(Test::createSurface()); | ||
416 | QVERIFY(!surface.isNull()); | 416 | QVERIFY(!surface.isNull()); | ||
417 | 417 | | |||
418 | QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellV6Surface( | 418 | QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellStableSurface( | ||
419 | surface.data(), surface.data(), Test::CreationSetup::CreateOnly)); | 419 | surface.data(), surface.data(), Test::CreationSetup::CreateOnly)); | ||
420 | QVERIFY(!shellSurface.isNull()); | 420 | QVERIFY(!shellSurface.isNull()); | ||
421 | 421 | | |||
422 | // wait for the initial configure event | 422 | // wait for the initial configure event | ||
423 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | 423 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | ||
424 | QVERIFY(configureRequestedSpy.isValid()); | 424 | QVERIFY(configureRequestedSpy.isValid()); | ||
425 | surface->commit(Surface::CommitFlag::None); | 425 | surface->commit(Surface::CommitFlag::None); | ||
426 | QVERIFY(configureRequestedSpy.wait()); | 426 | QVERIFY(configureRequestedSpy.wait()); | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 481 | { | |||
482 | // test verifies that touch on decoration also allows quick tiling | 482 | // test verifies that touch on decoration also allows quick tiling | ||
483 | // see BUG: 390113 | 483 | // see BUG: 390113 | ||
484 | using namespace KWayland::Client; | 484 | using namespace KWayland::Client; | ||
485 | 485 | | |||
486 | QScopedPointer<Surface> surface(Test::createSurface()); | 486 | QScopedPointer<Surface> surface(Test::createSurface()); | ||
487 | QVERIFY(!surface.isNull()); | 487 | QVERIFY(!surface.isNull()); | ||
488 | QScopedPointer<ServerSideDecoration> deco(Test::waylandServerSideDecoration()->create(surface.data())); | 488 | QScopedPointer<ServerSideDecoration> deco(Test::waylandServerSideDecoration()->create(surface.data())); | ||
489 | 489 | | |||
490 | QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellV6Surface( | 490 | QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellStableSurface( | ||
491 | surface.data(), surface.data(), Test::CreationSetup::CreateOnly)); | 491 | surface.data(), surface.data(), Test::CreationSetup::CreateOnly)); | ||
492 | QVERIFY(!shellSurface.isNull()); | 492 | QVERIFY(!shellSurface.isNull()); | ||
493 | 493 | | |||
494 | // wait for the initial configure event | 494 | // wait for the initial configure event | ||
495 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | 495 | QSignalSpy configureRequestedSpy(shellSurface.data(), &XdgShellSurface::configureRequested); | ||
496 | QVERIFY(configureRequestedSpy.isValid()); | 496 | QVERIFY(configureRequestedSpy.isValid()); | ||
497 | surface->commit(Surface::CommitFlag::None); | 497 | surface->commit(Surface::CommitFlag::None); | ||
498 | QVERIFY(configureRequestedSpy.wait()); | 498 | QVERIFY(configureRequestedSpy.wait()); | ||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |