Ensure we start our tests with wayland already initialised
When debugging modifier_only_shortcut_test in _waylandonly mode I saw that it was failing, among other things, because some aspects were not initialised. This changes every test we have to run the new Test::initWaylandWorkspace() that calls waylandServer()->initWorkspace() but also makes sure that WaylandServer::initialized is emitted before we proceed.
This commit is contained in:
parent
7261bbb230
commit
a3d32fa836
60 changed files with 68 additions and 58 deletions
|
@ -59,7 +59,7 @@ void ActivationTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ActivationTest::init()
|
||||
|
|
|
@ -61,7 +61,7 @@ void ActivitiesTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ActivitiesTest::cleanupTestCase()
|
||||
|
|
|
@ -63,7 +63,7 @@ void TestDbusInterface::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
VirtualDesktopManager::self()->setCount(4);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ void DebugConsoleTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void DebugConsoleTest::cleanup()
|
||||
|
|
|
@ -141,7 +141,7 @@ void DecorationInputTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void DecorationInputTest::init()
|
||||
|
|
|
@ -55,7 +55,7 @@ void X11DesktopWindowTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void X11DesktopWindowTest::init()
|
||||
|
|
|
@ -62,7 +62,7 @@ void DontCrashAuroraeDestroyDecoTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -71,7 +71,7 @@ void DontCrashCursorPhysicalSizeEmpty::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void DontCrashCursorPhysicalSizeEmpty::testMoveCursorOverDeco()
|
||||
|
|
|
@ -53,7 +53,7 @@ void DontCrashEmptyDecorationTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -63,7 +63,7 @@ void DontCrashNoBorder::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -72,7 +72,7 @@ void DontCrashReinitializeCompositorTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -60,7 +60,7 @@ void TestDontCrashUseractionsMenu::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestDontCrashUseractionsMenu::init()
|
||||
|
|
|
@ -65,7 +65,7 @@ void DesktopSwitchingAnimationTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -63,7 +63,7 @@ void MaximizeAnimationTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void MaximizeAnimationTest::init()
|
||||
|
|
|
@ -67,7 +67,7 @@ void MinimizeAnimationTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -73,7 +73,7 @@ void PopupOpenCloseAnimationTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void PopupOpenCloseAnimationTest::init()
|
||||
|
|
|
@ -68,7 +68,7 @@ void ToplevelOpenCloseAnimationTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -68,7 +68,7 @@ void GlobalShortcutsTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void GlobalShortcutsTest::init()
|
||||
|
|
|
@ -52,7 +52,7 @@ void TestIdleInhibition::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestIdleInhibition::init()
|
||||
|
|
|
@ -62,7 +62,7 @@ void InputStackingOrderTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void InputStackingOrderTest::init()
|
||||
|
|
|
@ -75,7 +75,7 @@ void InputMethodTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ void InternalWindowTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void InternalWindowTest::init()
|
||||
|
|
|
@ -141,7 +141,7 @@ void KeyboardLayoutTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
// don't get DBus signal on one-layout configuration
|
||||
// QVERIFY(layoutsReconfiguredSpy.wait());
|
||||
|
|
|
@ -62,7 +62,7 @@ void KeymapCreationFailureTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void KeymapCreationFailureTest::init()
|
||||
|
|
|
@ -364,6 +364,9 @@ bool lockScreen();
|
|||
* @returns @c true if the screen could be unlocked, @c false otherwise
|
||||
*/
|
||||
bool unlockScreen();
|
||||
|
||||
void initWaylandWorkspace();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ void KWinBindingsTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void KWinBindingsTest::init()
|
||||
|
|
|
@ -64,7 +64,7 @@ void LayerShellV1ClientTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void LayerShellV1ClientTest::init()
|
||||
|
|
|
@ -186,7 +186,7 @@ void LockScreenTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
auto scene = KWin::Compositor::self()->scene();
|
||||
QVERIFY(scene);
|
||||
|
|
|
@ -64,7 +64,7 @@ void TestMaximized::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestMaximized::init()
|
||||
|
|
|
@ -90,7 +90,7 @@ void ModifierOnlyShortcutTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ModifierOnlyShortcutTest::init()
|
||||
|
|
|
@ -46,7 +46,7 @@ void NightColorTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
NightColorManager *manager = NightColorManager::self();
|
||||
QVERIFY(manager);
|
||||
|
|
|
@ -100,7 +100,7 @@ void NoGlobalShortcutsTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void NoGlobalShortcutsTest::init()
|
||||
|
|
|
@ -69,7 +69,7 @@ void TestOutputManagement::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestOutputManagement::init()
|
||||
|
|
|
@ -94,7 +94,7 @@ void TestPlacement::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestPlacement::setPlacementPolicy(Placement::Policy policy)
|
||||
|
|
|
@ -70,7 +70,7 @@ void PlasmaWindowTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
setenv("QMLSCENE_DEVICE", "softwarecontext", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void PlasmaWindowTest::init()
|
||||
|
|
|
@ -77,7 +77,7 @@ void TestPointerConstraints::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestPointerConstraints::init()
|
||||
|
|
|
@ -155,7 +155,7 @@ void PointerInputTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void PointerInputTest::init()
|
||||
|
|
|
@ -42,7 +42,7 @@ void ScreenChangesTest::initTestCase()
|
|||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ScreenChangesTest::init()
|
||||
|
|
|
@ -61,7 +61,7 @@ void ScreenEdgeClientShowTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ScreenEdgeClientShowTest::init()
|
||||
|
|
|
@ -62,7 +62,7 @@ void ScreensTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ScreensTest::init()
|
||||
|
|
|
@ -56,7 +56,7 @@ void MinimizeAllScriptTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
static QString locateMainScript(const QString &pluginName)
|
||||
|
|
|
@ -50,7 +50,7 @@ void ShadeTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ShadeTest::init()
|
||||
|
|
|
@ -42,7 +42,7 @@ void ShowingDesktopTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void ShowingDesktopTest::init()
|
||||
|
|
|
@ -65,7 +65,7 @@ void StackingOrderTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void StackingOrderTest::init()
|
||||
|
|
|
@ -77,7 +77,7 @@ void StrutsTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void StrutsTest::init()
|
||||
|
|
|
@ -55,7 +55,7 @@ void TabBoxTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TabBoxTest::init()
|
||||
|
|
|
@ -947,5 +947,12 @@ bool unlockScreen()
|
|||
return true;
|
||||
}
|
||||
|
||||
void initWaylandWorkspace()
|
||||
{
|
||||
QSignalSpy workspaceInitializedSpy(waylandServer(), &WaylandServer::initialized);
|
||||
waylandServer()->initWorkspace();
|
||||
QVERIFY(workspaceInitializedSpy.count() || workspaceInitializedSpy.wait());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ void VirtualKeyboardDBusTest::initTestCase()
|
|||
static_cast<WaylandTestApplication *>(kwinApp())->setInputMethodServerToStart("internal");
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
QVERIFY(setupWaylandConnection(AdditionalWaylandInterface::Seat |
|
||||
AdditionalWaylandInterface::InputMethodV1 |
|
||||
|
|
|
@ -59,7 +59,7 @@ void TouchInputTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TouchInputTest::init()
|
||||
|
|
|
@ -64,7 +64,7 @@ void TransientPlacementTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TransientPlacementTest::init()
|
||||
|
|
|
@ -49,7 +49,7 @@ void VirtualDesktopTest::initTestCase()
|
|||
|
||||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
|
||||
if (kwinApp()->x11Connection()) {
|
||||
// verify the current desktop x11 property on startup, see BUG: 391034
|
||||
|
|
|
@ -54,7 +54,7 @@ void WindowRuleTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void WindowRuleTest::init()
|
||||
|
|
|
@ -65,7 +65,7 @@ void TestWindowSelection::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestWindowSelection::init()
|
||||
|
|
|
@ -66,7 +66,7 @@ void X11ClientTest::initTestCase()
|
|||
kwinApp()->start();
|
||||
QVERIFY(applicationStartedSpy.wait());
|
||||
QVERIFY(KWin::Compositor::self());
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void X11ClientTest::init()
|
||||
|
|
|
@ -148,7 +148,7 @@ void TestXdgShellClientRules::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestXdgShellClientRules::init()
|
||||
|
|
|
@ -183,7 +183,7 @@ void TestXdgShellClient::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void TestXdgShellClient::init()
|
||||
|
|
|
@ -54,7 +54,7 @@ void XWaylandInputTest::initTestCase()
|
|||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
setenv("QT_QPA_PLATFORM", "wayland", true);
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void XWaylandInputTest::init()
|
||||
|
|
|
@ -56,7 +56,7 @@ void XwaylandSelectionsTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
// // wait till the xclipboard sync data device is created
|
||||
// if (clipboardSyncDevicedCreated.empty()) {
|
||||
// QVERIFY(clipboardSyncDevicedCreated.wait());
|
||||
|
|
|
@ -61,7 +61,7 @@ void XwaylandServerCrashTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
void XwaylandServerCrashTest::testCrash()
|
||||
|
|
|
@ -58,7 +58,7 @@ void XwaylandServerRestartTest::initTestCase()
|
|||
QCOMPARE(screens()->count(), 2);
|
||||
QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024));
|
||||
QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024));
|
||||
waylandServer()->initWorkspace();
|
||||
Test::initWaylandWorkspace();
|
||||
}
|
||||
|
||||
static void kwin_safe_kill(QProcess *process)
|
||||
|
|
Loading…
Reference in a new issue