phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp
changeset 30 ebdbd102c78a
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
--- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp	Mon May 03 12:31:11 2010 +0300
+++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp	Fri May 14 15:51:57 2010 +0300
@@ -26,6 +26,7 @@
 #include "tphonecmdparamglobalnote.h"
 #include "tphonecmdparamquery.h"
 #include "phoneresourceadapter.h"
+#include "phoneconstants.h"
 
 #define PHONE_QT_NOTE_CONTROLLER_TEST_MAIN(TestObject) \
 int main(int argc, char *argv[]) \
@@ -100,11 +101,14 @@
 void TestPhoneNoteController::testShowGlobalNoteDefault ()
 {
     TPhoneCmdParamGlobalNote globalNoteParam;
+    globalNoteParam.SetTimeout(0);
     globalNoteParam.SetWaitForReady(ETrue);
-    
     m_noteController->showGlobalNote(&globalNoteParam);
+    QTest::qWait(2500);
     
-    QTest::qWait(5000);
+    globalNoteParam.SetTimeout(KPhoneNoteNoTimeout);
+    m_noteController->showGlobalNote(&globalNoteParam);
+    QTest::qWait(2500);
 }
 
 void TestPhoneNoteController::testShowGlobalInfoNoteWithResourceId ()