diff options
author | deva <deva> | 2009-08-31 11:33:57 +0000 |
---|---|---|
committer | deva <deva> | 2009-08-31 11:33:57 +0000 |
commit | 86bd08d47842e5681835412ac6c08d7135a6adc5 (patch) | |
tree | 767a04c8e126d152bab922629a65a4f3e02d0953 /client/test/util.cc | |
parent | 6cbc11417ee97c50fadedc1cb976f15a0c69fecc (diff) |
Initial attempt on a unit test system.
Diffstat (limited to 'client/test/util.cc')
-rw-r--r-- | client/test/util.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/test/util.cc b/client/test/util.cc new file mode 100644 index 0000000..257b561 --- /dev/null +++ b/client/test/util.cc @@ -0,0 +1,20 @@ +#include "util.h" +#include <QDomDocument> + +MacroWindow *createMacroWindow() +{ + MacroWindow *m; + m = NULL; + return m; +} + +QDomElement getWidgetElement(QString type, QString name, QString value) +{ + QDomDocument doc; + + QDomElement e = doc.createElement(type); + e.setAttribute("name", name); + if(value != "") e.setAttribute("value", value); + + return e; +} |