logsui/logsengine/tsrc/ut_logsengine/src/ut_logsmatchesmodel.cpp
changeset 21 2f0af9ba7665
parent 17 90fe74753f71
--- a/logsui/logsengine/tsrc/ut_logsengine/src/ut_logsmatchesmodel.cpp	Fri Sep 17 16:47:32 2010 +0300
+++ b/logsui/logsengine/tsrc/ut_logsengine/src/ut_logsmatchesmodel.cpp	Fri Oct 15 14:47:48 2010 +0300
@@ -671,10 +671,15 @@
     QVERIFY( callerId == "long firstname" );
     
     // Firstname is missing, phone number is used
+    LogsCommonData& cd = LogsCommonData::getInstance();
+    cd.mHighlightColorStart = "<b>";
+    cd.mHighlightColorEnd = "</b>";
     HbStubHelper::stringUtilDigitConversion(true);
     entry.setFirstName("");
+    entry.setHighlights("12");
+    
     callerId = item.getFormattedCallerId(entry);
-    QCOMPARE( callerId, QString("conv number") );
+    QCOMPARE( callerId, QString("<b>co</b>nv number") );    
 }
 
 // -----------------------------------------------------------------------------