equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #include "ut_logscommondata.h" |
17 #include "ut_logscommondata.h" |
18 #include "logscommondata.h" |
18 #include "logscommondata.h" |
|
19 #include "logsconfigurationparams.h" |
19 |
20 |
20 #include <QtTest/QtTest> |
21 #include <QtTest/QtTest> |
21 |
22 |
22 void UT_LogsCommonData::initTestCase() |
23 void UT_LogsCommonData::initTestCase() |
23 { |
24 { |
53 LogsCommonData* comData = &LogsCommonData::getInstance(); |
54 LogsCommonData* comData = &LogsCommonData::getInstance(); |
54 QVERIFY( comData != 0 ); |
55 QVERIFY( comData != 0 ); |
55 LogsCommonData::freeCommonData(); |
56 LogsCommonData::freeCommonData(); |
56 } |
57 } |
57 |
58 |
58 |
59 void UT_LogsCommonData::testCurrentConfiguration() |
|
60 { |
|
61 LogsConfigurationParams params; |
|
62 params.setListItemTextWidth(400); |
|
63 LogsCommonData::getInstance().updateConfiguration(params); |
|
64 LogsConfigurationParams& test = LogsCommonData::getInstance().currentConfiguration(); |
|
65 QVERIFY( test.listItemTextWidth() == 400 ); |
|
66 } |