summaryrefslogtreecommitdiff
path: root/client/test/testmacrowindow.cc
diff options
context:
space:
mode:
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"