/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ #include #include "util.h" #include "widgets/multilist.h" #include #include static QString xml = ""; static QString xml2 = "" " " ""; class TestMultiList: public QObject { Q_OBJECT private slots: void memleak() { QDomDocument doc; doc.setContent(xml2); QDomElement e = doc.documentElement(); MacroWindow *w = createMacroWindow(); // FIXME: this is used to make sure all resources (icons and pixmaps) // are loaded. MultiList ml(e, w); TEST_MEMLEAK(MultiList ml(e, w)); delete w; } }; QTEST_MAIN(TestMultiList) #include "testmultilist.moc"