aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-23 14:41:21 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-23 14:41:21 -0300
commitaa56c7b79317fb88c12fc0573fc23b6939337fe4 (patch)
treed13cf7c507530260dccd35f6a207b4dcd3b8a313 /tests/client
parentaf103ebfb8945c903accb42944516d234fe5744c (diff)
downloadqmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.tar.gz
qmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.tar.bz2
qmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.zip
Take care of object ref internally on QMenumodel, instead of QDBusMenuModel.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/modeltest.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp
index bc5d95e..8be92a6 100644
--- a/tests/client/modeltest.cpp
+++ b/tests/client/modeltest.cpp
@@ -260,21 +260,6 @@ private Q_SLOTS:
delete model;
}
-
- /*
- * Test if the model is clearead after GMenuModel be destroyed
- */
- void testDestroyGMenuModel()
- {
- GMenu *menu = g_menu_new();
- g_menu_append(menu, "test-menu0", NULL);
- g_menu_append(menu, "test-menu1", NULL);
- TestMenuModel model(reinterpret_cast<GMenuModel*>(menu));
- QCOMPARE(model.rowCount(), 2);
-
- g_object_unref(menu);
- QCOMPARE(model.rowCount(), 0);
- }
};
QTEST_MAIN(ModelTest)