From 57c5ca5b7fc3db3ab16d9a1cf2760d114e5685ca Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 07:24:27 +0000 Subject: More tests --- client/test/testmacrowindow.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 client/test/testmacrowindow.cc (limited to 'client/test/testmacrowindow.cc') 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 +#include "util.h" +#include "macrowindow.h" + +static QString xml = "\n" + "\n" + "\n" + ""; + +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" -- cgit v1.2.3