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

//----------------------------------------------------------------------------------//
//------------------------------aknpopupfield.h-------------------------------------//
//----------------------------------------------------------------------------------//
// Test aknpopupfield.h
// For test function:
// IMPORT_C static void HandleSizeChanged(TAknPopupWindowLayoutDef &aDef,
//     TAknPopupLayouts aLayout,
//     TAknPopupLayoutsNode *aListOfControls);
[Test]
title TestCPLHandleSizeChangedL
create testsdkpopups test
bringtoforeground
test TestCPLHandleSizeChangedL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void HandleSizeChanged(TAknPopupWindowLayoutDef &aDef, 
//     TAknPopupLayouts aLayout,
//     CAknPopupHeadingPane *aHeadingOrNull,
//     CEikListBox *aListBox,
//     CCoeControl *aWindowOwningControl);
[Test]
title TestCPLHandleSizeChangedListBoxL
create testsdkpopups test
bringtoforeground
test TestCPLHandleSizeChangedListBoxL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void HandleDraw(CEikonEnv* aEikEnv,
//     CWindowGc &aGc,
//     const TAknPopupWindowLayoutDef &aDef, 
//     CEikListBox *aListBox,
//     CAknPopupHeadingPane *aHeadingOrNull);
[Test]
title TestCPLHandleDrawL
create testsdkpopups test
bringtoforeground
test TestCPLHandleDrawL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void ModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &aDef);
[Test]
title TestCPLModifyWindowGraphicForHeadingL
create testsdkpopups test
bringtoforeground
test TestCPLModifyWindowGraphicForHeadingL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void ModifyWindowGraphicForMessageBox(TAknPopupWindowLayoutDef &aDef, 
//     TInt aNumOfLines);
[Test]
title TestCPLModifyWindowGraphicForMessageBoxL
create testsdkpopups test
bringtoforeground
test TestCPLModifyWindowGraphicForMessageBoxL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupMenuWindow(TAknPopupWindowLayoutDef &aDef, 
//     TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupMenuWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupMenuWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &aDef,
//     TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupMenuGraphicWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupMenuGraphicWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &aDef,
//      TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupMenuGraphicHeadingWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupMenuGraphicHeadingWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &aDef,
//     TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupMenuDoubleWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupMenuDoubleWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupMenuDoubleLargeGraphicWindow(TAknPopupWindowLayoutDef &aDef,
//     TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupMenuDoubleLargeGraphicWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupMenuDoubleLargeGraphicWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CalcPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &aDef, 
//     TRect aClientRect, TInt aNumberOfLinesInListBox);
[Test]
title TestCPLCalcPopupSNoteGroupWindowL
create testsdkpopups test
bringtoforeground
test TestCPLCalcPopupSNoteGroupWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupMenuPopupWindow(TAknPopupWindowLayoutDef &aDef, 
//     TInt aNumberOfLinesInListBox, TBool aHeading);
[Test]
title TestCPLSetupMenuPopupWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupMenuPopupWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &aDef, 
//     TInt aNumberOfLinesInListBox, TBool aHeading);
[Test]
title TestCPLSetupPopupMenuGraphicWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupPopupMenuGraphicWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &aDef, 
//     TInt aNumberOfLinesInListBox, TBool aHeading);
[Test]
title TestCPLSetupPopupMenuGraphicHeadingWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupPopupMenuGraphicHeadingWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &aDef, 
//     TInt aNumberOfLinesInListBox, TBool aHeading);
[Test]
title TestCPLSetupPopupMenuDoubleWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupPopupMenuDoubleWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupImageSelectionMenuPopupWindow(TAknPopupWindowLayoutDef &aDef,
//     TInt num, TBool heading);
[Test]
title TestCPLSetupImageSelectionMenuPopupWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupImageSelectionMenuPopupWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &aDef,
//     TInt num, TBool heading);
[Test]
title TestCPLSetupPopupSNoteGroupWindowL
create testsdkpopups test
bringtoforeground
test TestCPLSetupPopupSNoteGroupWindowL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void HandleSizeAndPositionOfComponents(const TAknPopupWindowLayoutDef &aDef, 
//     CCoeControl *aContentInsidePopup,
//     CAknPopupHeadingPane *aHeadingOrNull);
[Test]
title TestCPLHandleSizeAndPositionOfComponentsL
create testsdkpopups test
bringtoforeground
test TestCPLHandleSizeAndPositionOfComponentsL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void SetupDefaults(TAknPopupWindowLayoutDef &aDef);
[Test]
title TestCPLSetupDefaultsL
create testsdkpopups test
bringtoforeground
test TestCPLSetupDefaultsL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static TRect WindowRect(TAknPopupWindowLayoutDef &aDef);
[Test]
title TestCPLWindowRectL
create testsdkpopups test
bringtoforeground
test TestCPLWindowRectL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static TRect MenuRect(TAknPopupWindowLayoutDef &aDef);
[Test]
title TestCPLMenuRectL
create testsdkpopups test
bringtoforeground
test TestCPLMenuRectL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void CheckRange(TInt &aValue, TInt aMin, TInt aMax);
[Test]
title TestCPLCheckRangeL
create testsdkpopups test
bringtoforeground
test TestCPLCheckRangeL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C static void MenuPopupWindowGraphics(TAknPopupWindowLayoutDef &aDef);
[Test]
title TestCPLMenuPopupWindowGraphicsL
create testsdkpopups test
bringtoforeground
test TestCPLMenuPopupWindowGraphicsL
delete test
sendtobackground
[Endtest]
