summaryrefslogtreecommitdiff
path: root/client/test/testmacrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 07:24:27 +0000
committerdeva <deva>2010-08-17 07:24:27 +0000
commit57c5ca5b7fc3db3ab16d9a1cf2760d114e5685ca (patch)
tree42a23e13f97b3d2d3eb65217312327a634608fad /client/test/testmacrowindow.cc
parent16fa999ed01f3f98e42e2b1248c7021d75b3ef75 (diff)
More tests
Diffstat (limited to 'client/test/testmacrowindow.cc')
-rw-r--r--client/test/testmacrowindow.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/client/test/testmacrowindow.cc b/client/test/testmacrowindow.cc
new file mode 100644
index 0000000..6c90445
--- /dev/null
+++ b/client/test/testmacrowindow.cc
@@ -0,0 +1,30 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+#include <QtTest/QtTest>
+#include "util.h"
+#include "macrowindow.h"
+
+static QString xml = "<macro name=\"foo\">\n"
+ "<widgets caption=\"bleh\"/>\n"
+ "</widgets>\n"
+ "</macro>";
+
+class TestMacroWindow: public QObject
+{
+Q_OBJECT
+private slots:
+ void memleak() {
+ /*
+ MacroWindow(NetCom &netcom, QDomNode &xml_doc, QString templ,
+ bool collapsed = true, bool compact = false);
+ */
+ QDomDocument doc;// doc.setContent(xml);
+ NetCom netcom("nohost", 42);
+
+ // MacroWindow w(netcom, doc, "test");
+
+ TEST_MEMLEAK(MacroWindow w(netcom, doc, "test"));
+ }
+};
+
+QTEST_MAIN(TestMacroWindow)
+#include "testmacrowindow.moc"