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
|
#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() {
QDomDocument doc;
NetCom netcom("nohost", 42);
TEST_MEMLEAK(MacroWindow w(netcom, doc, "test"));
}
};
QTEST_MAIN(TestMacroWindow)
#include "testmacrowindow.moc"
|