[autotests] Disable OnScreenNotification in PointerConstraintsTest

Using QtQuick in test environment fails due to no OpenGL.
This commit is contained in:
Martin Gräßlin 2016-12-22 19:05:47 +01:00
parent 1d622fbbc3
commit 2baaf327d4

View file

@ -77,6 +77,15 @@ void TestPointerConstraints::initTestCase()
QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2));
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();
QVERIFY(workspaceCreatedSpy.wait());
QCOMPARE(screens()->count(), 2);