35
35
// this mustn't produce any valgrind errors, so
36
// it's pretty safe to generate suppressions
36
// it's pretty safe to generate suppressions
37
37
// from this test: just run "./testpsiiconset testLoadImage"
38
38
void testLoadImage()
40
40
QImage *img = new QImage(":iconsets/system/default/psimain.png");
46
46
// checking for memory leaks this way
47
47
for (int i = 0; i < 3; i++)
48
48
QVERIFY(is->loadAll());
51
51
void testBasePath()
53
53
Iconset *iconset = new Iconset();
54
54
QVERIFY(iconset->load(g.pathBase + "/iconsets/roster/default.jisp"));
58
58
void testChangeOptions()
60
60
Options oldOptions = option;
61
61
option.systemIconset = "crystal_system.jisp";
62
62
option.emoticons = (QStringList() << "puz.jisp");
63
63
option.defaultRosterIconset = "default.jisp";
65
65
QVERIFY(is->optionsChanged(&oldOptions));
67
QCOMPARE(is->system().name(), QString("Crystal (System)"));
68
QCOMPARE(is->system().description(), QString("Crystal System Iconset"));
69
QCOMPARE(is->system().version(), QString("0.3"));
67
QCOMPARE(is->system().name(), QString("Crystal (System)"));
68
QCOMPARE(is->system().description(), QString("Crystal System Iconset"));
69
QCOMPARE(is->system().version(), QString("0.3"));
70
70
QCOMPARE(is->emoticons.first()->name(), QString("puzazBox"));
72
72
option = oldOptions;