diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/modeltest.cpp | 14 | ||||
-rw-r--r-- | tests/script/menuscript.py | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index 1b0ea95..8be92a6 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -25,6 +25,19 @@ #include <QtTest> #include <QDebug> +extern "C" { +#include <gio/gio.h> +} + +class TestMenuModel : public QMenuModel +{ +public: + TestMenuModel(GMenuModel *other, QObject *parent=0) + : QMenuModel(other, parent) + { + } +}; + class ModelTest : public QObject { Q_OBJECT @@ -247,7 +260,6 @@ private Q_SLOTS: delete model; } - }; QTEST_MAIN(ModelTest) diff --git a/tests/script/menuscript.py b/tests/script/menuscript.py index d30adc5..542308a 100644 --- a/tests/script/menuscript.py +++ b/tests/script/menuscript.py @@ -207,6 +207,9 @@ class ActionList(object): if self._ownNameID: Gio.bus_unown_name(self._ownNameID) self._ownNameID = None + + self._root = None + self._rootAction = None self._restore() def _onActionActivated(self, action, parameter): |