uifw/AvKon/tsrc/bc/S60_SDKMCL/bctestmixmcl/src/bctestmixmclgeneralcase.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 15 08e69e956a8c
child 25 941195f2d488
--- a/uifw/AvKon/tsrc/bc/S60_SDKMCL/bctestmixmcl/src/bctestmixmclgeneralcase.cpp	Tue Apr 27 16:55:05 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/S60_SDKMCL/bctestmixmcl/src/bctestmixmclgeneralcase.cpp	Tue May 11 16:27:42 2010 +0300
@@ -34,6 +34,8 @@
 #include <aknradiobuttonsettingpage.h>
 #include <aknpopupsettingpage.h>  
 #include <ItemFinder.h>
+#include <finditemdialog.h>
+#include <aknphysics.h>
 
 #include "bctestmixmclgeneralcase.h"
 #include "bctestmixmclcontainer.h"
@@ -130,7 +132,9 @@
     TestRadioButtonSettingPageL();
     TestPopupSettingPageL();   
     TestItemFinder();
+    TestFindItemDialog();
     TestEditorKineticScrollingL();
+    TestEnableKineticScrollingPhysicsL();
     TestAknPhysicsSuspendPhysicsL();
     TestAknPhysicsResumePhysicsL();
     TestCbaL();
@@ -521,6 +525,36 @@
     AssertTrueL( ETrue, KEdwinEnableScrolling );
     }
 
+
+// ---------------------------------------------------------------------------
+// CBCTestMixMCLGeneralCase::TestEnableKineticScrollingPhysicsL
+// ---------------------------------------------------------------------------
+//
+void CBCTestMixMCLGeneralCase::TestEnableKineticScrollingPhysicsL()
+    {
+    CEikEdwin* editor = new ( ELeave ) CEikEdwin;
+    CleanupStack::PushL( editor );
+
+    CAknPhysics* physics ( NULL );
+    AssertTrueL ( CAknPhysics::FeatureEnabled() );
+    CCoeControl* control ( NULL );
+    control = new (ELeave) CCoeControl;
+    CleanupStack::PushL( control );
+
+    physics = CAknPhysics::NewL( *this, control );
+    CleanupStack::PushL( physics );
+
+    editor->EnableKineticScrollingL( physics );
+
+    CleanupStack::PopAndDestroy( physics );
+    CleanupStack::PopAndDestroy( control );
+    CleanupStack::PopAndDestroy( editor );
+
+    _LIT( KEdwinEnableScrollingPhysics,
+            "CEikEdwin::TestEnableKineticScrollingPhysicsL tested" );
+    AssertTrueL( ETrue, KEdwinEnableScrollingPhysics );
+    }
+
 // ---------------------------------------------------------------------------
 // CBCTestMixMCLGeneralCase::TestAknPhysicsSuspendPhysicsL
 // ---------------------------------------------------------------------------
@@ -649,6 +683,28 @@
     }
 
 
+// -----------------------------------------------------------------------------
+// CBCTestMixMCLGeneralCase::TestFindItemDialog
+// -----------------------------------------------------------------------------
+//
+void CBCTestMixMCLGeneralCase::TestFindItemDialog()
+    {
+    _LIT( KEnableSingleClick,
+            "CFindItemDialog::EnableSingleClick() tested" );
+    _LIT( KUrlDes, "http://www.symbian.com" );
+
+    CFindItemDialog* dialog = CFindItemDialog::NewL( KUrlDes,
+            CFindItemEngine::EFindItemSearchURLBin );
+    CleanupStack::PushL( dialog );
+
+    dialog->EnableSingleClick ( EFalse );
+    dialog->EnableSingleClick ( ETrue );
+    AssertTrueL( ETrue, KEnableSingleClick );
+
+    CleanupStack::PopAndDestroy( dialog );
+    }
+
+
 // ---------------------------------------------------------------------------
 // CBCTestMixMCLGeneralCase::HandleFindItemEventL
 // ---------------------------------------------------------------------------