From 721bfe174085c042b74326a9270fc766cd7b94e0 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 30 Sep 2021 10:28:31 +0300 Subject: [PATCH] autotests: Fix TestDBusInterface x11DesktopNumber property was replaced with the desktops property, which is a list of desktop ids. --- autotests/integration/dbus_interface_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotests/integration/dbus_interface_test.cpp b/autotests/integration/dbus_interface_test.cpp index a54543b7ce..e324faefd2 100644 --- a/autotests/integration/dbus_interface_test.cpp +++ b/autotests/integration/dbus_interface_test.cpp @@ -126,7 +126,7 @@ void TestDbusInterface::testGetWindowInfoXdgShellClient() QCOMPARE(windowData.value(QStringLiteral("y")).toInt(), client->y()); QCOMPARE(windowData.value(QStringLiteral("width")).toInt(), client->width()); QCOMPARE(windowData.value(QStringLiteral("height")).toInt(), client->height()); - QCOMPARE(windowData.value(QStringLiteral("x11DesktopNumber")).toInt(), 1); + QCOMPARE(windowData.value(QStringLiteral("desktops")).toStringList(), client->desktopIds()); QCOMPARE(windowData.value(QStringLiteral("minimized")).toBool(), false); QCOMPARE(windowData.value(QStringLiteral("shaded")).toBool(), false); QCOMPARE(windowData.value(QStringLiteral("fullscreen")).toBool(), false); @@ -191,7 +191,7 @@ void TestDbusInterface::testGetWindowInfoXdgShellClient() QCOMPARE(client->desktop(), 2); reply = getWindowInfo(client->internalId()); reply.waitForFinished(); - QCOMPARE(reply.value().value(QStringLiteral("x11DesktopNumber")).toInt(), 2); + QCOMPARE(reply.value().value(QStringLiteral("desktops")).toStringList(), client->desktopIds()); client->move(QPoint(10, 20)); reply = getWindowInfo(client->internalId()); @@ -269,7 +269,7 @@ void TestDbusInterface::testGetWindowInfoX11Client() QCOMPARE(windowData.value(QStringLiteral("y")).toInt(), client->y()); QCOMPARE(windowData.value(QStringLiteral("width")).toInt(), client->width()); QCOMPARE(windowData.value(QStringLiteral("height")).toInt(), client->height()); - QCOMPARE(windowData.value(QStringLiteral("x11DesktopNumber")).toInt(), 1); + QCOMPARE(windowData.value(QStringLiteral("desktops")).toStringList(), client->desktopIds()); QCOMPARE(windowData.value(QStringLiteral("minimized")).toBool(), false); QCOMPARE(windowData.value(QStringLiteral("shaded")).toBool(), false); QCOMPARE(windowData.value(QStringLiteral("fullscreen")).toBool(), false);