fix kwin definition again

This commit is contained in:
2017-02-14 05:11:00 +03:00
parent 53afc07457
commit 9c8dbdcb41
3 changed files with 7 additions and 6 deletions

View File

@ -22,14 +22,14 @@
#include <QEventLoop>
#include <QSet>
#include <QStandardPaths>
#include <QtTest>
bool AWTestLibrary::isKWinActive()
{
QEventLoop loop;
loop.connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), SLOT(quit()));
QSignalSpy spy(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)));
KWindowSystem::setShowingDesktop(true);
loop.exec();
spy.wait(5000);
bool state = KWindowSystem::showingDesktop();
KWindowSystem::setShowingDesktop(false);

View File

@ -106,7 +106,8 @@ void TestPlayerSource::test_mpd()
if (secondValue[QString("player/title")].toString() == QString("unknown"))
QSKIP("No mpd found");
QVERIFY(secondValue[QString("player/progress")].toInt() < secondValue[QString("player/duration")].toInt());
QVERIFY(secondValue[QString("player/progress")].toInt()
< secondValue[QString("player/duration")].toInt());
}