aboutsummaryrefslogtreecommitdiff
path: root/tests/ut_mbanner
diff options
context:
space:
mode:
authorAdrian Yanes <ext-adrian.yanes@nokia.com>2010-09-24 16:12:14 +0300
committerArmin Berres <armin.berres@basyskom.de>2010-10-26 16:25:46 +0200
commitf6863e832ad5ade69d8c2b650187fbf93c153090 (patch)
tree579c8766619a7dedc5ee38404413c75cb8cc626d /tests/ut_mbanner
parent0b0ab7d74fecebdff5a4c49c68e92973b2d70e2e (diff)
Fixes: NB#193832 - Gtalk contact name is wrongly displayed/rendered on incoming event notifications
Fixes: NB#199601 - Call, missed call the banner 'qtn_call_missed" "missed call' is cut Fixes: NB#193590 - Notification shows line feeds as boxes when receiving from IOP Messaging tool Fixes: NB#189289 - cut off text with incoming event banners Fixes: NB#193664 - Notification doesn't escape HTML in message notifications RevBy: John Tapsell, Armin Berres Details: MBanner refactoring code for new layouts + unit test updated for TimeStamp.
Diffstat (limited to 'tests/ut_mbanner')
-rw-r--r--tests/ut_mbanner/ut_mbanner.cpp11
-rw-r--r--tests/ut_mbanner/ut_mbanner.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/ut_mbanner/ut_mbanner.cpp b/tests/ut_mbanner/ut_mbanner.cpp
index fb43e44f..ed068625 100644
--- a/tests/ut_mbanner/ut_mbanner.cpp
+++ b/tests/ut_mbanner/ut_mbanner.cpp
@@ -19,7 +19,6 @@
#include <QTest>
#include <QSignalSpy>
-
#include <QObject>
#include <QGraphicsSceneMouseEvent>
@@ -78,6 +77,16 @@ void Ut_MBanner::testIcon()
QCOMPARE(m_subject->iconID(), icon);
}
+void Ut_MBanner::testTimeStamp()
+{
+ QDate tempdate;
+ tempdate.setDate(2010,10,22);
+ QTime temptime;
+ temptime.setHMS(20,32,0,0);
+ QDateTime time= QDateTime(tempdate,temptime);
+ m_subject->setBannerTimeStamp(time);
+ QCOMPARE(m_subject->bannerTimeStamp(),time);
+}
void Ut_MBanner::testBannerCreation()
{
diff --git a/tests/ut_mbanner/ut_mbanner.h b/tests/ut_mbanner/ut_mbanner.h
index d8164ca0..dfc80390 100644
--- a/tests/ut_mbanner/ut_mbanner.h
+++ b/tests/ut_mbanner/ut_mbanner.h
@@ -22,6 +22,7 @@
#include <QtTest/QtTest>
#include <QObject>
+#include <QDateTime>
#include "mbanner.h"
class Ut_MBanner : public QObject
@@ -37,6 +38,7 @@ private slots:
void testTitle();
void testSubTitle();
void testIcon();
+ void testTimeStamp();
void testBannerCreation();
void testBannerClicking();