summaryrefslogtreecommitdiff
path: root/client/test/testmacrowindow.cc
blob: 6c90445c52b1a4b236bd3365dde09e1c89a9acc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"