[autotests] Use DMZ-White as cursor theme
On build.kde.org we cannot use the breeze cursor theme. Instead we have DMZ-White (debian package dmz-cursor-theme). This change adjusts the PointerInput test to enforce DMZ-White and uses SizeAllCursor instead of OpenHandCursor as that one seems to be missing in that theme. Hopefully with these changes the test starts to pass on build.kde.org.
This commit is contained in:
parent
95c8af33b5
commit
09dd9153d8
1 changed files with 11 additions and 11 deletions
|
@ -96,8 +96,8 @@ void PointerInputTest::initTestCase()
|
|||
|
||||
kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig));
|
||||
|
||||
qputenv("XCURSOR_THEME", QByteArrayLiteral("breeze_cursors"));
|
||||
qputenv("XCURSOR_SIZE", QByteArrayLiteral("32"));
|
||||
qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White"));
|
||||
qputenv("XCURSOR_SIZE", QByteArrayLiteral("24"));
|
||||
|
||||
kwinApp()->start();
|
||||
QVERIFY(workspaceCreatedSpy.wait());
|
||||
|
@ -908,19 +908,19 @@ void PointerInputTest::testEffectOverrideCursorImage()
|
|||
|
||||
// now create an effect and set an override cursor
|
||||
QScopedPointer<HelperEffect> effect(new HelperEffect);
|
||||
effects->startMouseInterception(effect.data(), Qt::OpenHandCursor);
|
||||
const QImage openHand = p->cursorImage();
|
||||
QVERIFY(!openHand.isNull());
|
||||
QVERIFY(openHand != fallback);
|
||||
effects->startMouseInterception(effect.data(), Qt::SizeAllCursor);
|
||||
const QImage sizeAll = p->cursorImage();
|
||||
QVERIFY(!sizeAll.isNull());
|
||||
QVERIFY(sizeAll != fallback);
|
||||
QVERIFY(leftSpy.wait());
|
||||
|
||||
// let's change to arrow cursor, this should be our fallback
|
||||
effects->defineCursor(Qt::ArrowCursor);
|
||||
QCOMPARE(p->cursorImage(), fallback);
|
||||
|
||||
// back to openhand
|
||||
effects->defineCursor(Qt::OpenHandCursor);
|
||||
QCOMPARE(p->cursorImage(), openHand);
|
||||
// back to size all
|
||||
effects->defineCursor(Qt::SizeAllCursor);
|
||||
QCOMPARE(p->cursorImage(), sizeAll);
|
||||
|
||||
// move cursor outside the window area
|
||||
Cursor::setPos(800, 800);
|
||||
|
@ -929,8 +929,8 @@ void PointerInputTest::testEffectOverrideCursorImage()
|
|||
QCOMPARE(p->cursorImage(), fallback);
|
||||
|
||||
// start mouse interception again
|
||||
effects->startMouseInterception(effect.data(), Qt::OpenHandCursor);
|
||||
QCOMPARE(p->cursorImage(), openHand);
|
||||
effects->startMouseInterception(effect.data(), Qt::SizeAllCursor);
|
||||
QCOMPARE(p->cursorImage(), sizeAll);
|
||||
|
||||
// move cursor to area of window
|
||||
Cursor::setPos(window->geometry().center());
|
||||
|
|
Loading…
Reference in a new issue