Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_test.cpp
Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Line(s) | 402 | { | |||
---|---|---|---|---|---|
409 | XdgShellSurface *xdgShellSurface = nullptr; | 409 | XdgShellSurface *xdgShellSurface = nullptr; | ||
410 | // fullscreen the window | 410 | // fullscreen the window | ||
411 | switch (type) { | 411 | switch (type) { | ||
412 | case Test::ShellSurfaceType::WlShell: | 412 | case Test::ShellSurfaceType::WlShell: | ||
413 | wlShellSurface = qobject_cast<ShellSurface*>(shellSurface.data()); | 413 | wlShellSurface = qobject_cast<ShellSurface*>(shellSurface.data()); | ||
414 | break; | 414 | break; | ||
415 | case Test::ShellSurfaceType::XdgShellV5: | 415 | case Test::ShellSurfaceType::XdgShellV5: | ||
416 | case Test::ShellSurfaceType::XdgShellV6: | 416 | case Test::ShellSurfaceType::XdgShellV6: | ||
417 | case Test::ShellSurfaceType::XdgShellStable: | ||||
417 | xdgShellSurface = qobject_cast<XdgShellSurface*>(shellSurface.data()); | 418 | xdgShellSurface = qobject_cast<XdgShellSurface*>(shellSurface.data()); | ||
418 | break; | 419 | break; | ||
419 | default: | 420 | default: | ||
420 | Q_UNREACHABLE(); | 421 | Q_UNREACHABLE(); | ||
421 | break; | 422 | break; | ||
422 | } | 423 | } | ||
423 | QVERIFY(wlShellSurface || xdgShellSurface); | 424 | QVERIFY(wlShellSurface || xdgShellSurface); | ||
424 | QVERIFY(!(wlShellSurface && xdgShellSurface)); | 425 | QVERIFY(!(wlShellSurface && xdgShellSurface)); | ||
▲ Show 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 615 | { | |||
621 | XdgShellSurface *xdgShellSurface = nullptr; | 622 | XdgShellSurface *xdgShellSurface = nullptr; | ||
622 | // fullscreen the window | 623 | // fullscreen the window | ||
623 | switch (type) { | 624 | switch (type) { | ||
624 | case Test::ShellSurfaceType::WlShell: | 625 | case Test::ShellSurfaceType::WlShell: | ||
625 | wlShellSurface = qobject_cast<ShellSurface*>(shellSurface.data()); | 626 | wlShellSurface = qobject_cast<ShellSurface*>(shellSurface.data()); | ||
626 | break; | 627 | break; | ||
627 | case Test::ShellSurfaceType::XdgShellV5: | 628 | case Test::ShellSurfaceType::XdgShellV5: | ||
628 | case Test::ShellSurfaceType::XdgShellV6: | 629 | case Test::ShellSurfaceType::XdgShellV6: | ||
630 | case Test::ShellSurfaceType::XdgShellStable: | ||||
629 | xdgShellSurface = qobject_cast<XdgShellSurface*>(shellSurface.data()); | 631 | xdgShellSurface = qobject_cast<XdgShellSurface*>(shellSurface.data()); | ||
630 | break; | 632 | break; | ||
631 | default: | 633 | default: | ||
632 | Q_UNREACHABLE(); | 634 | Q_UNREACHABLE(); | ||
633 | break; | 635 | break; | ||
634 | } | 636 | } | ||
635 | QVERIFY(wlShellSurface || xdgShellSurface); | 637 | QVERIFY(wlShellSurface || xdgShellSurface); | ||
636 | QVERIFY(!(wlShellSurface && xdgShellSurface)); | 638 | QVERIFY(!(wlShellSurface && xdgShellSurface)); | ||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
717 | 719 | | |||
718 | // swap back to normal | 720 | // swap back to normal | ||
719 | switch (type) { | 721 | switch (type) { | ||
720 | case Test::ShellSurfaceType::WlShell: | 722 | case Test::ShellSurfaceType::WlShell: | ||
721 | qobject_cast<ShellSurface*>(shellSurface.data())->setToplevel(); | 723 | qobject_cast<ShellSurface*>(shellSurface.data())->setToplevel(); | ||
722 | break; | 724 | break; | ||
723 | case Test::ShellSurfaceType::XdgShellV5: | 725 | case Test::ShellSurfaceType::XdgShellV5: | ||
724 | case Test::ShellSurfaceType::XdgShellV6: | 726 | case Test::ShellSurfaceType::XdgShellV6: | ||
727 | case Test::ShellSurfaceType::XdgShellStable: | ||||
725 | qobject_cast<XdgShellSurface*>(shellSurface.data())->setFullscreen(false); | 728 | qobject_cast<XdgShellSurface*>(shellSurface.data())->setFullscreen(false); | ||
726 | break; | 729 | break; | ||
727 | default: | 730 | default: | ||
728 | Q_UNREACHABLE(); | 731 | Q_UNREACHABLE(); | ||
729 | break; | 732 | break; | ||
730 | } | 733 | } | ||
731 | QVERIFY(fullscreenChangedSpy.wait()); | 734 | QVERIFY(fullscreenChangedSpy.wait()); | ||
732 | QVERIFY(sizeChangeRequestedSpy.wait()); | 735 | QVERIFY(sizeChangeRequestedSpy.wait()); | ||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |