Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Pim
Commits
af701cd2
Commit
af701cd2
authored
May 15, 2012
by
Christophe Giboudeaux
Browse files
Fix hanging test
BUG: 300016
parent
1da4fc2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/grantlee/tests/thememanagertest.cpp
View file @
af701cd2
...
...
@@ -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
(
"A
n
Simple theme"
)
);
QCOMPARE
(
theme
.
description
(),
QLatin1String
(
"A Simple theme"
)
);
}
else
if
(
theme
.
identifier
()
==
QLatin1String
(
"test"
)
)
{
QCOMPARE
(
theme
.
name
(),
QLatin1String
(
"Test"
)
);
QCOMPARE
(
theme
.
description
(),
QLatin1String
(
"A
n
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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment