Commit 53a0c4fa authored by Jan Blackquill's avatar Jan Blackquill 🌈
Browse files

Add test for application menu in PWM interface

Test Plan: See that the test works as expected.

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision:
parent a20f5db5
......@@ -55,6 +55,7 @@ private Q_SLOTS:
void testGeometry();
void testIcon();
void testPid();
void testApplicationMenu();
void cleanup();
......@@ -638,5 +639,22 @@ void TestWindowManagement::testPid()
void TestWindowManagement::testApplicationMenu()
using namespace KWayland::Client;
const auto serviceName = QStringLiteral("");
const auto objectPath = QStringLiteral("/org/kde/bar");
m_windowInterface->setApplicationMenuPaths(serviceName, objectPath);
QSignalSpy applicationMenuChangedSpy(m_window, &PlasmaWindow::applicationMenuChanged);
QCOMPARE(m_window->applicationMenuServiceName(), serviceName);
QCOMPARE(m_window->applicationMenuObjectPath(), objectPath);
#include "test_wayland_windowmanagement.moc"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment