equal
deleted
inserted
replaced
103 } |
103 } |
104 |
104 |
105 |
105 |
106 TBool CTstTestTargetDialog::OkToExitL(TInt /*aKeyCode*/) |
106 TBool CTstTestTargetDialog::OkToExitL(TInt /*aKeyCode*/) |
107 { |
107 { |
|
108 RDebug::Print(_L("**************************************************************")); |
|
109 RDebug::Print(_L("**** OK or CANCEL key pressed ")); |
|
110 RDebug::Print(_L("**************************************************************\n")); |
|
111 |
108 // Get fields text values... |
112 // Get fields text values... |
109 CEikEdwin* edwinNormal = static_cast<CEikEdwin*>(Control(EControlIdNormalEdwin)); |
113 CEikEdwin* edwinNormal = static_cast<CEikEdwin*>(Control(EControlIdNormalEdwin)); |
110 edwinNormal->GetText(gTextNormalEdwin); |
114 edwinNormal->GetText(gTextNormalEdwin); |
111 |
115 |
112 CEikEdwin* edwinNormalNum = static_cast<CEikEdwin*>(Control(EControlIdNormalNumEdwin)); |
116 CEikEdwin* edwinNormalNum = static_cast<CEikEdwin*>(Control(EControlIdNormalNumEdwin)); |
156 Create the Client side handle \n |
160 Create the Client side handle \n |
157 Send the user events and close the session on completion\n |
161 Send the user events and close the session on completion\n |
158 */ |
162 */ |
159 void CFep1TestTargetUi::ConstructL() |
163 void CFep1TestTargetUi::ConstructL() |
160 { |
164 { |
|
165 RDebug::Print(_L("**************************************************************")); |
|
166 RDebug::Print(_L("**** CFep1TestTargetUi::ConstructL ")); |
|
167 RDebug::Print(_L("**************************************************************\n")); |
|
168 |
161 CTestAppUi::ConstructL(); |
169 CTestAppUi::ConstructL(); |
162 |
170 |
163 iCoeEnv->InstallFepL(KNullUid); |
171 iCoeEnv->InstallFepL(KNullUid); |
164 iCoeEnv->InstallFepL(KUidTFep1); |
172 iCoeEnv->InstallFepL(KUidTFep1); |
165 |
173 |
482 break; |
490 break; |
483 |
491 |
484 case 158: |
492 case 158: |
485 { |
493 { |
486 INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes back to normal fep!")); |
494 INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes back to normal fep!")); |
487 SendKey('M', EModifierRightShift); |
495 SendKey('M', EModifierRightShift); |
|
496 |
|
497 RDebug::Print(_L("**************************************************************")); |
|
498 RDebug::Print(_L("**** UIF-FEPTEST-0007 Finished ")); |
|
499 RDebug::Print(_L("**************************************************************\n")); |
|
500 |
488 RecordTestResultL(); |
501 RecordTestResultL(); |
489 } |
502 } |
490 break; |
503 break; |
491 |
504 |
492 |
505 |
644 break; |
657 break; |
645 |
658 |
646 case 234: |
659 case 234: |
647 { |
660 { |
648 INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '00'")); // We should have 1230056 |
661 INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '00'")); // We should have 1230056 |
649 SendKey(EKeyEnter); |
662 SendKey(EKeyEnter); |
|
663 |
|
664 |
650 RecordTestResultL(); |
665 RecordTestResultL(); |
651 } |
666 } |
652 break; |
667 break; |
653 |
668 |
654 |
669 |
697 { |
712 { |
698 INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!")); |
713 INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!")); |
699 SendKey('T', EModifierRightShift); |
714 SendKey('T', EModifierRightShift); |
700 if(aStep == 262) |
715 if(aStep == 262) |
701 { |
716 { |
|
717 RDebug::Print(_L("**************************************************************")); |
|
718 RDebug::Print(_L("**** UIF-FEPTEST-0009 Finished ")); |
|
719 RDebug::Print(_L("**************************************************************\n")); |
|
720 |
702 RecordTestResultL(); |
721 RecordTestResultL(); |
703 } |
722 } |
704 } |
723 } |
705 break; |
724 break; |
706 |
725 |
802 break; |
821 break; |
803 |
822 |
804 case 460: |
823 case 460: |
805 { |
824 { |
806 INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'MNO' (not Fep installed --> No Alphabetical!")); |
825 INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'MNO' (not Fep installed --> No Alphabetical!")); |
807 SendKey(EKeyEnter); |
826 SendKey(EKeyEnter); |
|
827 |
|
828 RDebug::Print(_L("**************************************************************")); |
|
829 RDebug::Print(_L("**** UIF-FEPTEST-0011 Finished ")); |
|
830 RDebug::Print(_L("**************************************************************\n")); |
|
831 |
808 RecordTestResultL(); |
832 RecordTestResultL(); |
809 } |
833 } |
810 break; |
834 break; |
811 |
835 |
812 |
836 |
842 } |
866 } |
843 break; |
867 break; |
844 |
868 |
845 case 503: |
869 case 503: |
846 { |
870 { |
|
871 RDebug::Print(_L("**************************************************************")); |
|
872 RDebug::Print(_L("**** Checking dialog values... ")); |
|
873 RDebug::Print(_L("**************************************************************\n")); |
|
874 |
847 INFO_PRINTF1(_L("Checking dialog values...")); |
875 INFO_PRINTF1(_L("Checking dialog values...")); |
848 INFO_PRINTF3(_L("gTextNormalEdwin was '%S' (expected '%S')"), &gTextNormalEdwin, &KExpectedTextNormalEdwin); |
876 INFO_PRINTF3(_L("gTextNormalEdwin was '%S' (expected '%S')"), &gTextNormalEdwin, &KExpectedTextNormalEdwin); |
849 INFO_PRINTF3(_L("gTextNormalNumEdwin was '%S' (expected '%S')"), &gTextNormalNumEdwin, &KExpectedTextNormalNumEdwin); |
877 INFO_PRINTF3(_L("gTextNormalNumEdwin was '%S' (expected '%S')"), &gTextNormalNumEdwin, &KExpectedTextNormalNumEdwin); |
850 INFO_PRINTF3(_L("gTextKatakanaEdwin was '%S' (expected '%S')"), &gTextKatakanaEdwin, &KExpectedTextKatakanaEdwin); |
878 INFO_PRINTF3(_L("gTextKatakanaEdwin was '%S' (expected '%S')"), &gTextKatakanaEdwin, &KExpectedTextKatakanaEdwin); |
851 INFO_PRINTF3(_L("gTextPhoneticalEdwin was '%S' (expected '%S')"), &gTextPhoneticalEdwin, &KExpectedTextPhoneticalEdwin); |
879 INFO_PRINTF3(_L("gTextPhoneticalEdwin was '%S' (expected '%S')"), &gTextPhoneticalEdwin, &KExpectedTextPhoneticalEdwin); |
889 Set the window event type and call the SendEventToWindowGroup().\n |
917 Set the window event type and call the SendEventToWindowGroup().\n |
890 Close the session on completion \n |
918 Close the session on completion \n |
891 */ |
919 */ |
892 void CFep1TestTargetUi::SendEventToWindowGroups(TWsEvent& aEvent) |
920 void CFep1TestTargetUi::SendEventToWindowGroups(TWsEvent& aEvent) |
893 { |
921 { |
894 User::After(100000); |
922 User::After(100000); |
895 |
923 |
896 RWsSession ws; |
924 RWsSession ws; |
897 TInt theRes = ws.Connect(); |
925 TInt theRes = ws.Connect(); |
898 TEST(theRes == KErrNone); |
926 TEST(theRes == KErrNone); |
899 |
927 |
905 ws.SendEventToWindowGroup(theId, aEvent); |
933 ws.SendEventToWindowGroup(theId, aEvent); |
906 |
934 |
907 aEvent.SetType(EEventKey); |
935 aEvent.SetType(EEventKey); |
908 aEvent.SetTimeNow(); |
936 aEvent.SetTimeNow(); |
909 ws.SendEventToWindowGroup(theId, aEvent); |
937 ws.SendEventToWindowGroup(theId, aEvent); |
910 |
938 |
911 aEvent.SetType(EEventKeyUp); |
939 aEvent.SetType(EEventKeyUp); |
912 aEvent.SetTimeNow(); |
940 aEvent.SetTimeNow(); |
913 ws.SendEventToWindowGroup(theId, aEvent); |
941 ws.SendEventToWindowGroup(theId, aEvent); |
914 |
942 |
915 ws.Close(); |
943 ws.Close(); |
916 } |
944 } |