aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-12-04 08:57:38 +0100
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-12-04 08:57:38 +0100
commitbf8e579d5da42dc554a6889402a62c19ce02f2bc (patch)
tree67087219e5eb2abd895f1d51a78dbf473096fe56 /tests/client
parent50d449d489262f644a33d2d2fb1479b235bc23c2 (diff)
downloadqmenumodel-bf8e579d5da42dc554a6889402a62c19ce02f2bc.tar.gz
qmenumodel-bf8e579d5da42dc554a6889402a62c19ce02f2bc.tar.bz2
qmenumodel-bf8e579d5da42dc554a6889402a62c19ce02f2bc.zip
Updated comments.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/cachetest.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/client/cachetest.cpp b/tests/client/cachetest.cpp
index 381761f..9719023 100644
--- a/tests/client/cachetest.cpp
+++ b/tests/client/cachetest.cpp
@@ -81,9 +81,7 @@ private Q_SLOTS:
g_type_init();
}
- //
- // Test if the link property always returns the same element
- //
+ // Test if the link attribute always returns the same cached menu
void testStaticMenuCache()
{
TestModel menu;
@@ -107,10 +105,7 @@ private Q_SLOTS:
QVERIFY(data.value<QObject*>() == data2.value<QObject*>());
}
-
- //
- // Test if cache works after add a new item
- //
+ // Test if the cache is correctly updated after inserting a new item
void testAddItem()
{
TestModel menu;
@@ -129,10 +124,7 @@ private Q_SLOTS:
QVERIFY(data.value<QObject*>() == data2.value<QObject*>());
}
-
- //
- // Test if cache works after remove a item
- //
+ // Test if the cache is correctly updated after removing an item that wasn’t cached
void testRemoveItem()
{
TestModel menu;
@@ -151,9 +143,7 @@ private Q_SLOTS:
QVERIFY(data.value<QObject*>() == data2.value<QObject*>());
}
- //
- // Test if cached item is removed after removed from the menu
- //
+ // Test if the cache is correctly updated after removing a cached item
void testRemoveCachedItem()
{
TestModel menu;