uifw/AvKon/tsrc/bc/S60_SDKMCL/bctestmixmcl/src/bctestmixmclgeneralcase.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 15 08e69e956a8c
child 25 941195f2d488
equal deleted inserted replaced
18:0aa5fbdfbc30 23:3d340a0166ff
    32 #include <eikedwin.h>
    32 #include <eikedwin.h>
    33 #include <aknphysics.h>
    33 #include <aknphysics.h>
    34 #include <aknradiobuttonsettingpage.h>
    34 #include <aknradiobuttonsettingpage.h>
    35 #include <aknpopupsettingpage.h>  
    35 #include <aknpopupsettingpage.h>  
    36 #include <ItemFinder.h>
    36 #include <ItemFinder.h>
       
    37 #include <finditemdialog.h>
       
    38 #include <aknphysics.h>
    37 
    39 
    38 #include "bctestmixmclgeneralcase.h"
    40 #include "bctestmixmclgeneralcase.h"
    39 #include "bctestmixmclcontainer.h"
    41 #include "bctestmixmclcontainer.h"
    40 #include "bctestmixmcl.hrh"
    42 #include "bctestmixmcl.hrh"
    41 
    43 
   128     TestAknPopupUtilsL();
   130     TestAknPopupUtilsL();
   129     TestAknListUtilsL(); 
   131     TestAknListUtilsL(); 
   130     TestRadioButtonSettingPageL();
   132     TestRadioButtonSettingPageL();
   131     TestPopupSettingPageL();   
   133     TestPopupSettingPageL();   
   132     TestItemFinder();
   134     TestItemFinder();
       
   135     TestFindItemDialog();
   133     TestEditorKineticScrollingL();
   136     TestEditorKineticScrollingL();
       
   137     TestEnableKineticScrollingPhysicsL();
   134     TestAknPhysicsSuspendPhysicsL();
   138     TestAknPhysicsSuspendPhysicsL();
   135     TestAknPhysicsResumePhysicsL();
   139     TestAknPhysicsResumePhysicsL();
   136     TestCbaL();
   140     TestCbaL();
   137 	TestCommonDialogsL();
   141 	TestCommonDialogsL();
   138     }
   142     }
   519     CleanupStack::PopAndDestroy( editor );
   523     CleanupStack::PopAndDestroy( editor );
   520     _LIT( KEdwinEnableScrolling, "CEikEdwin::EnableKineticScrollingL tested" );
   524     _LIT( KEdwinEnableScrolling, "CEikEdwin::EnableKineticScrollingL tested" );
   521     AssertTrueL( ETrue, KEdwinEnableScrolling );
   525     AssertTrueL( ETrue, KEdwinEnableScrolling );
   522     }
   526     }
   523 
   527 
       
   528 
       
   529 // ---------------------------------------------------------------------------
       
   530 // CBCTestMixMCLGeneralCase::TestEnableKineticScrollingPhysicsL
       
   531 // ---------------------------------------------------------------------------
       
   532 //
       
   533 void CBCTestMixMCLGeneralCase::TestEnableKineticScrollingPhysicsL()
       
   534     {
       
   535     CEikEdwin* editor = new ( ELeave ) CEikEdwin;
       
   536     CleanupStack::PushL( editor );
       
   537 
       
   538     CAknPhysics* physics ( NULL );
       
   539     AssertTrueL ( CAknPhysics::FeatureEnabled() );
       
   540     CCoeControl* control ( NULL );
       
   541     control = new (ELeave) CCoeControl;
       
   542     CleanupStack::PushL( control );
       
   543 
       
   544     physics = CAknPhysics::NewL( *this, control );
       
   545     CleanupStack::PushL( physics );
       
   546 
       
   547     editor->EnableKineticScrollingL( physics );
       
   548 
       
   549     CleanupStack::PopAndDestroy( physics );
       
   550     CleanupStack::PopAndDestroy( control );
       
   551     CleanupStack::PopAndDestroy( editor );
       
   552 
       
   553     _LIT( KEdwinEnableScrollingPhysics,
       
   554             "CEikEdwin::TestEnableKineticScrollingPhysicsL tested" );
       
   555     AssertTrueL( ETrue, KEdwinEnableScrollingPhysics );
       
   556     }
       
   557 
   524 // ---------------------------------------------------------------------------
   558 // ---------------------------------------------------------------------------
   525 // CBCTestMixMCLGeneralCase::TestAknPhysicsSuspendPhysicsL
   559 // CBCTestMixMCLGeneralCase::TestAknPhysicsSuspendPhysicsL
   526 // ---------------------------------------------------------------------------
   560 // ---------------------------------------------------------------------------
   527 //   
   561 //   
   528 void CBCTestMixMCLGeneralCase::TestAknPhysicsSuspendPhysicsL()
   562 void CBCTestMixMCLGeneralCase::TestAknPhysicsSuspendPhysicsL()
   647 
   681 
   648     CleanupStack::PopAndDestroy( itemfinder );
   682     CleanupStack::PopAndDestroy( itemfinder );
   649     }
   683     }
   650 
   684 
   651 
   685 
       
   686 // -----------------------------------------------------------------------------
       
   687 // CBCTestMixMCLGeneralCase::TestFindItemDialog
       
   688 // -----------------------------------------------------------------------------
       
   689 //
       
   690 void CBCTestMixMCLGeneralCase::TestFindItemDialog()
       
   691     {
       
   692     _LIT( KEnableSingleClick,
       
   693             "CFindItemDialog::EnableSingleClick() tested" );
       
   694     _LIT( KUrlDes, "http://www.symbian.com" );
       
   695 
       
   696     CFindItemDialog* dialog = CFindItemDialog::NewL( KUrlDes,
       
   697             CFindItemEngine::EFindItemSearchURLBin );
       
   698     CleanupStack::PushL( dialog );
       
   699 
       
   700     dialog->EnableSingleClick ( EFalse );
       
   701     dialog->EnableSingleClick ( ETrue );
       
   702     AssertTrueL( ETrue, KEnableSingleClick );
       
   703 
       
   704     CleanupStack::PopAndDestroy( dialog );
       
   705     }
       
   706 
       
   707 
   652 // ---------------------------------------------------------------------------
   708 // ---------------------------------------------------------------------------
   653 // CBCTestMixMCLGeneralCase::HandleFindItemEventL
   709 // CBCTestMixMCLGeneralCase::HandleFindItemEventL
   654 // ---------------------------------------------------------------------------
   710 // ---------------------------------------------------------------------------
   655 //
   711 //
   656 void CBCTestMixMCLGeneralCase::HandleFindItemEventL(
   712 void CBCTestMixMCLGeneralCase::HandleFindItemEventL(