[Test]
title PressKey 
pause 10000
presskey global EKeyDevice1
[Endtest]

//----------------------------------------------------------------------------------//
//----------------------------------aknpopupfield.h---------------------------------//
//----------------------------------------------------------------------------------//
// Test aknpopupfield.h
// For test function:
// IMPORT_C CAknPopupField();
[Test]
title TestCPFCAknPopupFieldL
create testsdkpopups test
bringtoforeground
test TestCPFCAknPopupFieldL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C ~CAknPopupField();
[Test]
title TestCPFDeconstructorL
create testsdkpopups test
bringtoforeground
test TestCPFDeconstructorL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void ConstructL();
[Test]
title TestCPFConstructL
create testsdkpopups test
bringtoforeground
test TestCPFConstructL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetAllowsUserDefinedEntry(TBool aAllows);
[Test]
title TestCPFSetAllowsUserDefinedEntryL
create testsdkpopups test
bringtoforeground
test TestCPFSetAllowsUserDefinedEntryL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void ActivateSelectionListL();
[Test]
title TestCPFActivateSelectionListL
create testsdkpopups test
bringtoforeground
test TestCPFActivateSelectionListL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetQueryValueL(MAknQueryValue* aValue);
[Test]
title TestCPFSetQueryValueL
create testsdkpopups test
bringtoforeground
test TestCPFSetQueryValueL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetFont(const CFont* aFont);
[Test]
title TestCPFSetFontL
create testsdkpopups test
bringtoforeground
test TestCPFSetFontL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetShowIndicatorsL(TBool aShowIndicators);
[Test]
title TestCPFSetShowIndicatorsL
create testsdkpopups test
bringtoforeground
test TestCPFSetShowIndicatorsL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt NumLines() const;
[Test]
title TestCPFNumLinesL
create testsdkpopups test
bringtoforeground
test TestCPFNumLinesL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetPopupFieldObserver(MAknPopupFieldObserver* aObserver);
[Test]
title TestCPFSetPopupFieldObserverL
create testsdkpopups test
bringtoforeground
test TestCPFSetPopupFieldObserverL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetEmptyListNoteL(TInt aResourceId,
//     CAknNoteDialog::TTimeout aTimeout = CAknNoteDialog::EShortTimeout,
//     CAknNoteDialog::TTone aTone = CAknNoteDialog::ENoTone);
[Test]
title TestCPFSetEmptyListNoteL
create testsdkpopups test
bringtoforeground
test TestCPFSetEmptyListNoteL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetEmptyTextL(const TDesC& aEmptyText);
[Test]
title TestCPFSetEmptyTextL
create testsdkpopups test
bringtoforeground
test TestCPFSetEmptyTextL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetOtherTextL(const TDesC& aOtherText);
[Test]
title TestCPFSetOtherTextL
create testsdkpopups test
bringtoforeground
test TestCPFSetOtherTextL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetInvalidTextL(const TDesC &aInvalidText);
[Test]
title TestCPFSetInvalidTextL
create testsdkpopups test
bringtoforeground
test TestCPFSetInvalidTextL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
[Test]
title TestCPFOfferKeyEventL
create testsdkpopups test
bringtoforeground
test TestCPFOfferKeyEventL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void ConstructFromResourceL(TResourceReader& aReader);
[Test]
title TestCPFConstructFromResourceL
create testsdkpopups test
bringtoforeground
test TestCPFConstructFromResourceL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TSize MinimumSize();
[Test]
title TestCPFMinimumSizeL
create testsdkpopups test
bringtoforeground
test TestCPFMinimumSizeL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void HandleResourceChange(TInt aType);
[Test]
title TestCPFHandleResourceChangeL
create testsdkpopups test
bringtoforeground
test TestCPFHandleResourceChangeL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
[Test]
title TestCPFHandlePointerEventL
create testsdkpopups test
bringtoforeground
test TestCPFHandlePointerEventL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetMaxNumberOfLinesPermitted(TInt aMaxNoLines);
[Test]
title TestCPFSetMaxNumberOfLinesPermittedL
create testsdkpopups test
bringtoforeground
test TestCPFSetMaxNumberOfLinesPermittedL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetFormFieldRect(TRect aFormFieldRect);
[Test]
title TestCPFSetFormFieldRectL
create testsdkpopups test
bringtoforeground
test TestCPFSetFormFieldRectL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEvent);
[Test]
title TestCPFHandleControlEventL
create testsdkpopups test
bringtoforeground
test TestCPFHandleControlEventL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void ProcessCommandL(TInt aCommandId);  
[Test]
title TestCPFProcessCommandL
create testsdkpopups test
bringtoforeground
test TestCPFProcessCommandL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
[Test]
title TestCPFHandleListBoxEventL
create testsdkpopups test
bringtoforeground
test TestCPFHandleListBoxEventL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt CountComponentControls() const;
[Test]
title TestCPFCountComponentControlsL
create testsdkpopups test
bringtoforeground
test TestCPFCountComponentControlsL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
[Test]
title TestCPFComponentControlL
create testsdkpopups test
bringtoforeground
test TestCPFComponentControlL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SizeChanged();
[Test]
title TestCPFSizeChangedL
create testsdkpopups test
bringtoforeground
test TestCPFSizeChangedL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void FocusChanged( TDrawNow aDrawNow );
[Test]
title TestCPFFocusChangedL
create testsdkpopups test
bringtoforeground
test TestCPFFocusChangedL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void Draw(const TRect& aRect) const;
[Test]
title TestCPFDrawL
create testsdkpopups test
bringtoforeground
test TestCPFDrawL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
[Test]
title TestCPFMopSupplyObjectL
create testsdkpopups test
bringtoforeground
test TestCPFMopSupplyObjectL
delete test
sendtobackground
[Endtest]
