[autotests] Disable OnScreenNotification in PointerConstraintsTest
Using QtQuick in test environment fails due to no OpenGL.
This commit is contained in:
parent
1d622fbbc3
commit
2baaf327d4
1 changed files with 9 additions and 0 deletions
|
@ -77,6 +77,15 @@ void TestPointerConstraints::initTestCase()
|
||||||
QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2));
|
QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2));
|
||||||
QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit()));
|
QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit()));
|
||||||
|
|
||||||
|
// set custom config which disables the OnScreenNotification
|
||||||
|
KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig);
|
||||||
|
KConfigGroup group = config->group("OnScreenNotification");
|
||||||
|
group.writeEntry(QStringLiteral("QmlPath"), QString("/does/not/exist.qml"));
|
||||||
|
group.sync();
|
||||||
|
|
||||||
|
kwinApp()->setConfig(config);
|
||||||
|
|
||||||
|
|
||||||
kwinApp()->start();
|
kwinApp()->start();
|
||||||
QVERIFY(workspaceCreatedSpy.wait());
|
QVERIFY(workspaceCreatedSpy.wait());
|
||||||
QCOMPARE(screens()->count(), 2);
|
QCOMPARE(screens()->count(), 2);
|
||||||
|
|
Loading…
Reference in a new issue