aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-12-22 19:05:47 +0100
committerMartin Gräßlin <[email protected]>2016-12-22 19:05:47 +0100
commit2baaf327d4f799cd60e7465284c8e8ab1d644a06 (patch)
tree24d436099926e967246121b01a270d982770a43d
parent1d622fbbc300b2cf84af68c47d1928b860dda030 (diff)
[autotests] Disable OnScreenNotification in PointerConstraintsTest
Using QtQuick in test environment fails due to no OpenGL.
-rw-r--r--autotests/integration/pointer_constraints_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/autotests/integration/pointer_constraints_test.cpp b/autotests/integration/pointer_constraints_test.cpp
index 848dc66..7890a34 100644
--- a/autotests/integration/pointer_constraints_test.cpp
+++ b/autotests/integration/pointer_constraints_test.cpp
@@ -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);