Commit 1c838ba3 authored by Christophe Giboudeaux's avatar Christophe Giboudeaux
Browse files

Fix hanging test

BUG: 300016
(cherry picked from commit af701cd2)
parent 65112a3e
......@@ -21,7 +21,9 @@ void ThemeManagerTest::testThemes()
Grantlee::ThemeManager manager;
QCOMPARE( manager.themes().count(), 0 );
manager.setThemesPath( "/mnt/archive/src/kde-trunk/src/kdepim/kaddressbook/grantlee/tests/themes/" );
const QString themesDir( KDESRCDIR "/themes/" );
manager.setThemesPath( themesDir );
QCOMPARE( manager.themes().count(), 3 );
const Grantlee::Theme::List themes = manager.themes();
......@@ -32,10 +34,10 @@ void ThemeManagerTest::testThemes()
QCOMPARE( theme.description(), QLatin1String( "An Air theme" ) );
} else if ( theme.identifier() == QLatin1String( "simple" ) ) {
QCOMPARE( theme.name(), QLatin1String( "Simple" ) );
QCOMPARE( theme.description(), QLatin1String( "An Simple theme" ) );
QCOMPARE( theme.description(), QLatin1String( "A Simple theme" ) );
} else if ( theme.identifier() == QLatin1String( "test" ) ) {
QCOMPARE( theme.name(), QLatin1String( "Test" ) );
QCOMPARE( theme.description(), QLatin1String( "An Test theme" ) );
QCOMPARE( theme.description(), QLatin1String( "A Test theme" ) );
}
}
}
......@@ -45,10 +47,11 @@ void ThemeManagerTest::testSignals()
Grantlee::ThemeManager manager;
QCOMPARE( manager.themes().count(), 0 );
manager.setThemesPath( "/mnt/archive/src/kde-trunk/src/kdepim/kaddressbook/grantlee/tests/themes/" );
const QString themesDir( KDESRCDIR "/themes/" );
manager.setThemesPath( themesDir );
QEventLoop loop;
loop.exec();
//QEventLoop loop;
//loop.exec();
}
#include "thememanagertest.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment