[ITC][dali-core, dali-toolkit][Non-ACR][Added/Modified TC]
authorJahangir <ja.alam@samsung.com>
Sun, 3 Jul 2016 14:14:42 +0000 (10:14 -0400)
committerJahangir <ja.alam@samsung.com>
Sun, 3 Jul 2016 16:50:17 +0000 (12:50 -0400)
Change-Id: I4ffa30300bdcf93982a2e4be5150e2895638942d

22 files changed:
src/itc/dali-core/pan-gesture-detector/ITs-pan-gesture-detector.cpp
src/itc/dali-core/tct-dali-core-native_common_iot.h
src/itc/dali-core/tct-dali-core-native_mobile.h
src/itc/dali-core/tct-dali-core-native_tv.h
src/itc/dali-core/tct-dali-core-native_wearable.h
src/itc/dali-toolkit/CMakeLists.txt
src/itc/dali-toolkit/accessibility-manager/ITs-accessibility-manager.cpp
src/itc/dali-toolkit/button/ITs-button-common.h
src/itc/dali-toolkit/button/ITs-button.cpp
src/itc/dali-toolkit/item-layout/ITs-item-layout.cpp
src/itc/dali-toolkit/push-button/ITs-push-button.cpp
src/itc/dali-toolkit/scroll-view/ITs-scroll-view-impl.h
src/itc/dali-toolkit/scroll-view/ITs-scroll-view.cpp
src/itc/dali-toolkit/slider/ITs-slider.cpp
src/itc/dali-toolkit/style-manager/ITs-style-manager.cpp
src/itc/dali-toolkit/tct-dali-toolkit-native_common_iot.h
src/itc/dali-toolkit/tct-dali-toolkit-native_mobile.h
src/itc/dali-toolkit/tct-dali-toolkit-native_tv.h
src/itc/dali-toolkit/tct-dali-toolkit-native_wearable.h
src/itc/dali-toolkit/text-editor/ITs-text-editor-common.cpp [new file with mode: 0755]
src/itc/dali-toolkit/text-editor/ITs-text-editor-common.h [new file with mode: 0755]
src/itc/dali-toolkit/text-editor/ITs-text-editor.cpp [new file with mode: 0755]

index dbcd6a4..0820b62 100755 (executable)
@@ -42,6 +42,7 @@ void PanGestureDetectorDownCast();
 void PanGestureDetectorCopySetGetMinimumTouchesRequired();
 void PanGestureDetectorAssignmentSetGetMaximumTouchesRequired();
 void PanGestureDetectorGetClearAngles();
+void PanGestureDetectorAddRemoveDirection();
 
 namespace
 {
@@ -50,7 +51,8 @@ namespace
                PAN_GESTURE_DETECTOR_DOWNCAST,
                PAN_GESTURE_DETECTOR_COPY_SET_GET_MINIMUM_TOUCHES_REQUIRED,
                PAN_GESTURE_DETECTOR_ASSIGNMENT_SET_GET_MAXIMUM_TOUCHES_REQUIRED,
-               PAN_GESTURE_DETECTOR_GET_CLEAR_ANGLES
+               PAN_GESTURE_DETECTOR_GET_CLEAR_ANGLES,
+               PAN_GESTURE_DETECTOR_ADD_REMOVE_DIRECTION
                
        };
 
@@ -97,6 +99,10 @@ namespace
                          case PAN_GESTURE_DETECTOR_GET_CLEAR_ANGLES:
                          PanGestureDetectorGetClearAngles();
                          break;
+                         
+                         case PAN_GESTURE_DETECTOR_ADD_REMOVE_DIRECTION:
+                         PanGestureDetectorAddRemoveDirection();
+                         break;
                  }
          }
                // Data
@@ -226,9 +232,130 @@ void PanGestureDetectorGetClearAngles()
        panGestureDetector.ClearAngles();
 
        angleCount = panGestureDetector.GetAngleCount();
-       DALI_CHECK_FAIL( angleCount != 0 ,  "PanGestureDetector::ClearAngles() is Failed.." );
+       DALI_CHECK_FAIL( angleCount != 0 ,  "PanGestureDetector::ClearAngles() is Failed.." );  
+
+       DaliLog::PrintPass();
+}
+
+void PanGestureDetectorAddRemoveDirection()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       PanGestureDetector detector = PanGestureDetector::New();
+       DALI_CHECK_FAIL( detector.GetAngleCount() != 0u, "PanGestureDetector GetAngleCount failed" );
+
+       detector.AddDirection( PanGestureDetector::DIRECTION_LEFT, Radian( Math::PI * 0.25 ) );
+       DALI_CHECK_FAIL( detector.GetAngleCount() != 2u, "PanGestureDetector GetAngleCount failed" );
+       bool found = false;
+       for ( size_t i = 0; detector.GetAngleCount(); i++)
+       {
+               if ( detector.GetAngle(i).first == PanGestureDetector::DIRECTION_LEFT )
+               {
+                       found = true;
+                       break;
+               }
+       }
+       DALI_CHECK_FAIL( !found, "Unable to get angle from Pan Gesture Detector for DIRECTION_LEFT" );
+
+       found = false;
+       for( size_t i = 0; i < detector.GetAngleCount(); i++)
+       {
+               if( detector.GetAngle(i).first == PanGestureDetector::DIRECTION_RIGHT )
+               {
+                       found = true;
+                       break;
+               }
+       }
+       DALI_CHECK_FAIL( !found, "Unable to get angle from Pan Gesture Detector for DIRECTION_RIGHT" );
+
+       // Remove something not in the container.
+       detector.RemoveDirection( PanGestureDetector::DIRECTION_UP );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=2u, "RemoveDirection() is failed" );
+
+       detector.RemoveDirection( PanGestureDetector::DIRECTION_RIGHT );
+       DALI_CHECK_FAIL( detector.GetAngleCount() != 0u, "RemoveDirection() is failed" );
+       
+       //DIRECTION_VERTICAL
+       try
+       {
+               detector.AddDirection( PanGestureDetector::DIRECTION_VERTICAL, Degree( 30.0f ) );
+       }
+       catch(...)
+       {
+               DALI_CHECK_FAIL(true, "AddDirection for PanGestureDetector::DIRECTION_VERTICAL failed");
+       }
+       
+       try
+       {
+               detector.RemoveDirection( PanGestureDetector::DIRECTION_VERTICAL );
+       }
+       catch(...)
+       {
+               DALI_CHECK_FAIL(true, "AddDirection for PanGestureDetector::DIRECTION_HORIZONTAL failed");
+       }
+       //DIRECTION_HORIZONTAL
+       try
+       {
+               detector.AddDirection( PanGestureDetector::DIRECTION_HORIZONTAL, Degree( 30.0f ) );
+       }
+       catch(...)
+       {
+               DALI_CHECK_FAIL(true, "AddDirection for PanGestureDetector::DIRECTION_HORIZONTAL failed");
+       }
+       
+       try
+       {
+               detector.RemoveDirection( PanGestureDetector::DIRECTION_HORIZONTAL );
+       }
+       catch(...)
+       {
+               DALI_CHECK_FAIL(true, "AddDirection for PanGestureDetector::DIRECTION_HORIZONTAL failed");
+       }
+       
+       //Add/Remove Angle
+       detector.ClearAngles();
        
+       detector.AddAngle( PanGestureDetector::DIRECTION_LEFT, Radian( Math::PI * 0.25 ) );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=1u, "GetAngleCount failed afer AddAngle" );
+       found = false;
+       for( size_t i = 0; i < detector.GetAngleCount(); i++)
+       {
+               if( detector.GetAngle(i).first == PanGestureDetector::DIRECTION_LEFT )
+               {
+                       found = true;
+                       break;
+               }
+       }
+       
+       DALI_CHECK_FAIL( !found, "Unable to get angle from Pan Gesture Detector for DIRECTION_LEFT" );
+       
+       detector.AddAngle( PanGestureDetector::DIRECTION_RIGHT, Radian( Math::PI * 0.25 ) );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=2u, "Add/Get angle failed." );
+       
+       detector.AddAngle( PanGestureDetector::DIRECTION_UP, Radian( Math::PI * 0.25 ) );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=3u, "Add/Get angle failed." );
+       
+       detector.AddAngle( PanGestureDetector::DIRECTION_DOWN, Radian( Math::PI * 0.25 ) );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=4u, "Add/Get angle failed." );
+       
+       detector.RemoveAngle( PanGestureDetector::DIRECTION_UP );
+       DALI_CHECK_FAIL( detector.GetAngleCount() != 3u, "Add/Get angle failed." );
+       
+       detector.RemoveAngle( PanGestureDetector::DIRECTION_DOWN );
+       DALI_CHECK_FAIL( detector.GetAngleCount() != 2u, "Add/Get angle failed." );
 
+       detector.RemoveAngle( PanGestureDetector::DIRECTION_RIGHT );
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=1u, "Add/Get angle failed." );
+       for ( size_t i = 0; i < detector.GetAngleCount(); i++)
+       {
+               if ( detector.GetAngle(i).first == PanGestureDetector::DIRECTION_RIGHT )
+               {
+                       DALI_CHECK_FAIL(true,"Remove angle failed.");
+               }
+       }
+
+       detector.ClearAngles();
+       DALI_CHECK_FAIL( detector.GetAngleCount() !=0u, "Remove angle failed." );
+       
        DaliLog::PrintPass();
 }
 
@@ -342,9 +469,6 @@ int ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired(void)
     return test_return_value;
 }
 
-
-
-
 //& purpose: Check if GetAngle and ClearAngles can properly gets and clears the angles added for panning repectively
 //& type: auto
 /**
@@ -377,6 +501,39 @@ int ITcPanGestureDetectorGetClearAngles(void)
     return test_return_value;
 }
 
+//& purpose: To check the pan gesture detection adddirection,removedirection
+//& type: auto
+/**
+* @testcase                            ITcPanGestureDetectorAddRemoveDirection
+* @since_tizen                         3.0
+* @type                                        Positive
+* @description                         To check the pan gesture detection adddirection,removedirection
+* @scenario                                    Create an initialized PanGestureDetector and check \n
+*                                                      Add direction to panGestureDetector object \n
+*                                                      Get the direction added to panGestureDetector object \n
+*                                                      Check the size of angles \n
+*                                                      Check the values of the angles \n
+*                                                      Clear the angles \n
+*                                                      Check the size of angles after clearing angles \n
+* @apicovered                          PanGestureDetector::New(), PanGestureDetector::GetAngle, PanGestureDetector::ClearAngles, PanGestureDetector::AddDirection(), \n
+*                                                      PanGestureDetector::RemoveDirection(),PanGestureDetector::RemoveAngle(),PanGestureDetector::AddAngle()
+* @passcase                                    If the number of added angles for panning is retrieved, matched to the added values and cleared successfully
+* @failcase                                    If fails to retrieve or match or clear the number of added angles for panning successfully
+* @precondition                                NA
+* @postcondition                       NA
+*/
+
+int ITcPanGestureDetectorAddRemoveDirection(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+
+       Application application = Application::New( &gArgc, &gArgv );
+       PanGestureDetector_TestApp testApp( application, PAN_GESTURE_DETECTOR_ADD_REMOVE_DIRECTION );
+       application.MainLoop();
+
+    return test_return_value;
+}
+
 
 /** @} */ // End of itc-pan-gesture-detector-testcases
 /** @} */ // End of itc-pan-gesture-detector
index 7eb7fc2..2e218dc 100755 (executable)
@@ -161,8 +161,8 @@ extern void ITs_TypeInfo_startup(void);
 extern void ITs_TypeInfo_cleanup(void);
 extern void ITs_typeregistration_startup(void);
 extern void ITs_typeregistration_cleanup(void);
-//extern void ITs_typeRegistry_startup(void);
-//extern void ITs_typeRegistry_cleanup(void);
+extern void ITs_typeRegistry_startup(void);
+extern void ITs_typeRegistry_cleanup(void);
 extern void ITs_unit16_pair_startup(void);
 extern void ITs_unit16_pair_cleanup(void);
 extern void ITs_value_startup(void);
@@ -623,6 +623,7 @@ extern int ITcPanGestureDetectorDownCast(void);
 extern int ITcPanGestureDetectorCopySetGetMinimumTouchesRequired(void);
 extern int ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired(void);
 extern int ITcPanGestureDetectorGetClearAngles(void);
+extern int ITcPanGestureDetectorAddRemoveDirection(void);
 extern int ITcPanGestureGetDistance(void);
 extern int ITcPanGestureGetScreenDistance(void);
 extern int ITcPanGestureGetScreenSpeed(void);
@@ -884,9 +885,9 @@ extern int ITcTypeInfoCreateInstanceGetCreator(void);
 extern int ITcTypeInfoGetPropertyIndices(void);
 extern int ITcTypeInfogetActionCountGetSignalCount(void);
 extern int ITcTypeRegistrationRegisteredName(void);
-//extern int ITcTypeRegistryGetTypeNames(void);
-//extern int ITcTypeRegistryCopyAssign(void);
-//extern int ITcTypeRegistryChildPropertyRegistration(void);
+extern int ITcTypeRegistryGetTypeNames(void);
+extern int ITcTypeRegistryCopyAssign(void);
+extern int ITcTypeRegistryChildPropertyRegistration(void);
 extern int ITcUint16PairFromFloatVec2(void);
 extern int ITcUint16PairFromFloatArray(void);
 extern int ITcUint16PairGetHeightWidth(void);
@@ -1441,6 +1442,7 @@ testcase tc_array[] = {
        {"ITcPanGestureDetectorCopySetGetMinimumTouchesRequired", ITcPanGestureDetectorCopySetGetMinimumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired", ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorGetClearAngles", ITcPanGestureDetectorGetClearAngles, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
+       {"ITcPanGestureDetectorAddRemoveDirection", ITcPanGestureDetectorAddRemoveDirection, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureGetDistance", ITcPanGestureGetDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenDistance", ITcPanGestureGetScreenDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenSpeed", ITcPanGestureGetScreenSpeed, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
@@ -1702,9 +1704,9 @@ testcase tc_array[] = {
        {"ITcTypeInfoGetPropertyIndices", ITcTypeInfoGetPropertyIndices, ITs_TypeInfo_startup, ITs_TypeInfo_cleanup},
        {"ITcTypeInfogetActionCountGetSignalCount", ITcTypeInfogetActionCountGetSignalCount, ITs_TypeInfo_startup, ITs_TypeInfo_cleanup},
        {"ITcTypeRegistrationRegisteredName", ITcTypeRegistrationRegisteredName, ITs_typeregistration_startup, ITs_typeregistration_cleanup},
-       //{"ITcTypeRegistryGetTypeNames", ITcTypeRegistryGetTypeNames, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
-       //{"ITcTypeRegistryCopyAssign", ITcTypeRegistryCopyAssign, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
-       //{"ITcTypeRegistryChildPropertyRegistration", ITcTypeRegistryChildPropertyRegistration, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},    
+       {"ITcTypeRegistryGetTypeNames", ITcTypeRegistryGetTypeNames, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
+       {"ITcTypeRegistryCopyAssign", ITcTypeRegistryCopyAssign, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
+       {"ITcTypeRegistryChildPropertyRegistration", ITcTypeRegistryChildPropertyRegistration, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},    
        {"ITcUint16PairFromFloatVec2", ITcUint16PairFromFloatVec2, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
        {"ITcUint16PairFromFloatArray", ITcUint16PairFromFloatArray, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
        {"ITcUint16PairGetHeightWidth", ITcUint16PairGetHeightWidth, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
index 01f1a71..2e218dc 100755 (executable)
@@ -623,6 +623,7 @@ extern int ITcPanGestureDetectorDownCast(void);
 extern int ITcPanGestureDetectorCopySetGetMinimumTouchesRequired(void);
 extern int ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired(void);
 extern int ITcPanGestureDetectorGetClearAngles(void);
+extern int ITcPanGestureDetectorAddRemoveDirection(void);
 extern int ITcPanGestureGetDistance(void);
 extern int ITcPanGestureGetScreenDistance(void);
 extern int ITcPanGestureGetScreenSpeed(void);
@@ -1441,6 +1442,7 @@ testcase tc_array[] = {
        {"ITcPanGestureDetectorCopySetGetMinimumTouchesRequired", ITcPanGestureDetectorCopySetGetMinimumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired", ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorGetClearAngles", ITcPanGestureDetectorGetClearAngles, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
+       {"ITcPanGestureDetectorAddRemoveDirection", ITcPanGestureDetectorAddRemoveDirection, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureGetDistance", ITcPanGestureGetDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenDistance", ITcPanGestureGetScreenDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenSpeed", ITcPanGestureGetScreenSpeed, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
index 7eb7fc2..2e218dc 100755 (executable)
@@ -161,8 +161,8 @@ extern void ITs_TypeInfo_startup(void);
 extern void ITs_TypeInfo_cleanup(void);
 extern void ITs_typeregistration_startup(void);
 extern void ITs_typeregistration_cleanup(void);
-//extern void ITs_typeRegistry_startup(void);
-//extern void ITs_typeRegistry_cleanup(void);
+extern void ITs_typeRegistry_startup(void);
+extern void ITs_typeRegistry_cleanup(void);
 extern void ITs_unit16_pair_startup(void);
 extern void ITs_unit16_pair_cleanup(void);
 extern void ITs_value_startup(void);
@@ -623,6 +623,7 @@ extern int ITcPanGestureDetectorDownCast(void);
 extern int ITcPanGestureDetectorCopySetGetMinimumTouchesRequired(void);
 extern int ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired(void);
 extern int ITcPanGestureDetectorGetClearAngles(void);
+extern int ITcPanGestureDetectorAddRemoveDirection(void);
 extern int ITcPanGestureGetDistance(void);
 extern int ITcPanGestureGetScreenDistance(void);
 extern int ITcPanGestureGetScreenSpeed(void);
@@ -884,9 +885,9 @@ extern int ITcTypeInfoCreateInstanceGetCreator(void);
 extern int ITcTypeInfoGetPropertyIndices(void);
 extern int ITcTypeInfogetActionCountGetSignalCount(void);
 extern int ITcTypeRegistrationRegisteredName(void);
-//extern int ITcTypeRegistryGetTypeNames(void);
-//extern int ITcTypeRegistryCopyAssign(void);
-//extern int ITcTypeRegistryChildPropertyRegistration(void);
+extern int ITcTypeRegistryGetTypeNames(void);
+extern int ITcTypeRegistryCopyAssign(void);
+extern int ITcTypeRegistryChildPropertyRegistration(void);
 extern int ITcUint16PairFromFloatVec2(void);
 extern int ITcUint16PairFromFloatArray(void);
 extern int ITcUint16PairGetHeightWidth(void);
@@ -1441,6 +1442,7 @@ testcase tc_array[] = {
        {"ITcPanGestureDetectorCopySetGetMinimumTouchesRequired", ITcPanGestureDetectorCopySetGetMinimumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired", ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorGetClearAngles", ITcPanGestureDetectorGetClearAngles, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
+       {"ITcPanGestureDetectorAddRemoveDirection", ITcPanGestureDetectorAddRemoveDirection, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureGetDistance", ITcPanGestureGetDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenDistance", ITcPanGestureGetScreenDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenSpeed", ITcPanGestureGetScreenSpeed, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
@@ -1702,9 +1704,9 @@ testcase tc_array[] = {
        {"ITcTypeInfoGetPropertyIndices", ITcTypeInfoGetPropertyIndices, ITs_TypeInfo_startup, ITs_TypeInfo_cleanup},
        {"ITcTypeInfogetActionCountGetSignalCount", ITcTypeInfogetActionCountGetSignalCount, ITs_TypeInfo_startup, ITs_TypeInfo_cleanup},
        {"ITcTypeRegistrationRegisteredName", ITcTypeRegistrationRegisteredName, ITs_typeregistration_startup, ITs_typeregistration_cleanup},
-       //{"ITcTypeRegistryGetTypeNames", ITcTypeRegistryGetTypeNames, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
-       //{"ITcTypeRegistryCopyAssign", ITcTypeRegistryCopyAssign, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
-       //{"ITcTypeRegistryChildPropertyRegistration", ITcTypeRegistryChildPropertyRegistration, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},    
+       {"ITcTypeRegistryGetTypeNames", ITcTypeRegistryGetTypeNames, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
+       {"ITcTypeRegistryCopyAssign", ITcTypeRegistryCopyAssign, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},
+       {"ITcTypeRegistryChildPropertyRegistration", ITcTypeRegistryChildPropertyRegistration, ITs_typeRegistry_startup, ITs_typeRegistry_cleanup},    
        {"ITcUint16PairFromFloatVec2", ITcUint16PairFromFloatVec2, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
        {"ITcUint16PairFromFloatArray", ITcUint16PairFromFloatArray, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
        {"ITcUint16PairGetHeightWidth", ITcUint16PairGetHeightWidth, ITs_unit16_pair_startup, ITs_unit16_pair_cleanup},
index 01f1a71..2e218dc 100755 (executable)
@@ -623,6 +623,7 @@ extern int ITcPanGestureDetectorDownCast(void);
 extern int ITcPanGestureDetectorCopySetGetMinimumTouchesRequired(void);
 extern int ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired(void);
 extern int ITcPanGestureDetectorGetClearAngles(void);
+extern int ITcPanGestureDetectorAddRemoveDirection(void);
 extern int ITcPanGestureGetDistance(void);
 extern int ITcPanGestureGetScreenDistance(void);
 extern int ITcPanGestureGetScreenSpeed(void);
@@ -1441,6 +1442,7 @@ testcase tc_array[] = {
        {"ITcPanGestureDetectorCopySetGetMinimumTouchesRequired", ITcPanGestureDetectorCopySetGetMinimumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired", ITcPanGestureDetectorAssignmentSetGetMaximumTouchesRequired, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureDetectorGetClearAngles", ITcPanGestureDetectorGetClearAngles, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
+       {"ITcPanGestureDetectorAddRemoveDirection", ITcPanGestureDetectorAddRemoveDirection, ITs_pan_gesture_detector_startup, ITs_pan_gesture_detector_cleanup},
        {"ITcPanGestureGetDistance", ITcPanGestureGetDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenDistance", ITcPanGestureGetScreenDistance, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
        {"ITcPanGestureGetScreenSpeed", ITcPanGestureGetScreenSpeed, ITs_pan_gesture_startup, ITs_pan_gesture_cleanup},
index 4de7a46..bf47b1d 100755 (executable)
@@ -57,6 +57,8 @@ style-manager/ITs-style-manager.cpp
 style-manager/ITs-style-manager-common.cpp
 table-view/ITs-table-view.cpp
 table-view/ITs-table-view-common.cpp
+text-editor/ITs-text-editor.cpp
+text-editor/ITs-text-editor-common.cpp
 text-field/ITs-text-field.cpp
 text-field/ITs-text-field-common.cpp
 text-label/ITs-text-label.cpp
@@ -97,7 +99,7 @@ INSTALL(PROGRAMS ${EXEC_NAME}
 )
 
 IF( DEFINED ASAN )
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
 ELSE()
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fPIE -Wall")
index 1ba6d1f..fc6bd36 100755 (executable)
@@ -505,12 +505,16 @@ void AccessibilityManagerGet()
        OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
        AccessibilityManager accessibilityManager;
        AccessibilityManager newAccessibilityManager;
-    
-    accessibilityManager = AccessibilityManager::Get();            
-    DALI_CHECK_FAIL( !accessibilityManager, "Singleton of AccessibilityManager object is not created." );
-        
+
+       accessibilityManager = AccessibilityManager::Get();
+       DALI_CHECK_FAIL( !accessibilityManager, "Singleton of AccessibilityManager object is not created." );
+
+       Vector2 readPosition( accessibilityManager.GetReadPosition() );
+       DALI_CHECK_FAIL( readPosition.x !=0.0f, "Read Position failed" );
+       DALI_CHECK_FAIL( readPosition.y !=0.0f, "Read Position failed" );
+               
        newAccessibilityManager = AccessibilityManager::Get();
-       DALI_CHECK_FAIL( !newAccessibilityManager, "Singleton of AccessibilityManager object is not created." );                
+       DALI_CHECK_FAIL( !newAccessibilityManager, "Singleton of AccessibilityManager object is not created." );
        DALI_CHECK_FAIL( accessibilityManager != newAccessibilityManager, "Singleton of AccessibilityManager object is not matched." );
 
        DaliLog::PrintPass(); 
index 954f9cd..7cfbd09 100755 (executable)
@@ -19,7 +19,8 @@ using namespace Toolkit;
  */
 
 
-#define SUITE_NAME    "BUTTON_ITC"
+#define SUITE_NAME                             "BUTTON_ITC"
+#define PUSH_BUTTON_IMAGE              "dali_imagemodule_image.png"
 
 
 /** @} */ // end of itc-button
index 2bb985b..1bd542b 100755 (executable)
@@ -58,92 +58,86 @@ void ButtonCopyConstructor();
 void ButtonSetIsDisabled();
 void ButtonSetGetLabelText();
 void ButtonSetIsSelected();
+void ButtonSetSelectedImage();
 
 namespace
 {
        enum TEST_CASES_LIST_BUTTON
        {
-         BUTTON_DOWNCAST,
-         BUTTON_SET_GET_ANIMATION_TIME,
-         BUTTON_ASSIGNMENT_OPERATOR,
-         BUTTON_COPY_CONSTRUCTOR,
-         BUTTON_SET_IS_DISABLED,
-      BUTTON_SET_GET_LABEL_TEXT,
-      BUTTON_SET_IS_SELECTED
+               BUTTON_DOWNCAST,
+               BUTTON_SET_GET_ANIMATION_TIME,
+               BUTTON_ASSIGNMENT_OPERATOR,
+               BUTTON_COPY_CONSTRUCTOR,
+               BUTTON_SET_IS_DISABLED,
+               BUTTON_SET_GET_LABEL_TEXT,
+               BUTTON_SET_IS_SELECTED,
+               BUTTON_SET_SELECTED_IMAGE
        };
 
        struct Button_TestApp : public ConnectionTracker
        {
-         Button_TestApp( Application& app, int test_case )
-         : mApplication( app ),
-               mTestCase( test_case )
-         {
-               mApplication.InitSignal().Connect( this, &Button_TestApp::OnInit );
-         }
-
-         void OnInit(Application& app)
-         {
-                 ExcuteTest();
-                 mTimer = Timer::New( INTERVAL );
-                 mTimer.TickSignal().Connect( this, &Button_TestApp::Tick );
-                 mTimer.Start();
-         }
-
-         bool Tick()
-         {
-               mTimer.Stop();
-               mApplication.Quit();
-               return true;
-         }
-
-         void ExcuteTest()
-         {
-                 switch (mTestCase)
-                 {
-                         case BUTTON_DOWNCAST:
-                         {
+               Button_TestApp( Application& app, int test_case ): mApplication( app ), mTestCase( test_case )
+               {
+                       mApplication.InitSignal().Connect( this, &Button_TestApp::OnInit );
+               }
+
+               void OnInit(Application& app)
+               {
+                       ExcuteTest();
+                       mTimer = Timer::New( INTERVAL );
+                       mTimer.TickSignal().Connect( this, &Button_TestApp::Tick );
+                       mTimer.Start();
+               }
+
+               bool Tick()
+               {
+                       mTimer.Stop();
+                       mApplication.Quit();
+                       return true;
+               }
+
+               void ExcuteTest()
+               {
+                       switch (mTestCase)
+                       {
+                               case BUTTON_DOWNCAST:
                                ButtonDowncast();
                                break;
-                         }
-                         case BUTTON_SET_GET_ANIMATION_TIME:
-                         {
+                               
+                               case BUTTON_SET_GET_ANIMATION_TIME:
                                ButtonSetGetAnimationTime();
                                break;
-                         }
-                         case BUTTON_ASSIGNMENT_OPERATOR:
-                         {
+                               
+                               case BUTTON_ASSIGNMENT_OPERATOR:
                                ButtonAssignmentOperator();
                                break;
-                         }
-                         case BUTTON_COPY_CONSTRUCTOR:
-                         {
+                               
+                               case BUTTON_COPY_CONSTRUCTOR:
                                ButtonCopyConstructor();
                                break;
-                         }
-                         case BUTTON_SET_IS_DISABLED:
-                         {
+                               
+                               case BUTTON_SET_IS_DISABLED:
                                ButtonSetIsDisabled();
                                break;
-                         }
-                         case BUTTON_SET_GET_LABEL_TEXT:
-                         {
+                               
+                               case BUTTON_SET_GET_LABEL_TEXT:
                                ButtonSetGetLabelText();
                                break;
-                         }
-                         case BUTTON_SET_IS_SELECTED:
-                         {
+                               
+                               case BUTTON_SET_IS_SELECTED:
                                ButtonSetIsSelected();
                                break;
-                         }
-                 }
-         }
-
-               // Data
+                               
+                               case BUTTON_SET_SELECTED_IMAGE:
+                               ButtonSetSelectedImage();
+                               break;
+                       }
+               }
+               // Data
                Application& mApplication;
                int mTestCase;
                Timer mTimer;
        };
-
 } // unnamed namespace
 
 
@@ -288,6 +282,73 @@ void ButtonSetIsSelected()
        DaliLog::PrintPass();
 }
 
+void ButtonSetSelectedImage()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       string strActualPathOne=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       if(strActualPathOne=="")
+       {
+               LOG_E( "Unable to get resource path from app data directory." );
+               test_return_value=1;
+               return;
+       }
+       //SetDisabledSelectedImage
+       PushButton pushButton = PushButton::New();
+       DALI_CHECK_FAIL(!pushButton,  "PushButton::New() is failed .");
+
+       try
+       {
+               pushButton.SetDisabledSelectedImage( strActualPathOne );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetDisabledSelectedImage with image is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       //SetSelectedImage
+       Image imgset ;
+       imgset = ResourceImage::New( strActualPathOne);
+       DALI_CHECK_FAIL(!imgset, "ResourceImage::New() is failed");
+       Button pushButtonA = PushButton::New();
+       DALI_CHECK_FAIL(!pushButtonA,  "Button::New() is failed .");
+
+       Button pushButtonB = PushButton::New();
+       DALI_CHECK_FAIL(!pushButtonB,  "Button::New() is failed .");
+       
+       pushButtonA.SetSelectedImage( imgset ); 
+       Image imgGet = ImageView::DownCast(pushButtonA.GetSelectedImage()).GetImage();
+       DALI_CHECK_FAIL(imgGet != imgset ,  "Set/GetSelectedImage are mismatch.");
+       
+       try
+       {
+               pushButtonB.SetSelectedImage( strActualPathOne );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetSelectedImage with image is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       //SetUnselectedImage
+       Button pushButtonC = PushButton::New();
+       try
+       {
+               pushButtonC.SetUnselectedImage( strActualPathOne );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetUnselectedImage with image is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       strActualPathOne.clear();
+       DaliLog::PrintPass();
+}
+
 /**
  * End of TC Logic Implementation Area.
  **/
@@ -501,6 +562,35 @@ int ITcButtonSetIsSelected(void)
 
     return test_return_value;
 }
+//& purpose: Sets and Checks the button  selected or unselected.
+//& type auto 
+/**
+* @testcase                    ITcButtonSetSelectedImage
+* @since_tizen                 3.0
+* @type                                Positive
+* @description                 Sets and Checks the button  selected or unselected.
+* @scenario                            Creates a Button instance. \n
+*                                              Adds the button to the stage. \n
+*                                              Set Disabled Selected Image. \n
+*                                              Set Selected Image. \n 
+*                                              Set Unselected Image.
+* @apicovered                  Button::New(),SetDisabledSelectedImage(),SetSelectedImage(),SetUnselectedImage()
+* @passcase                            If all the conditions pass properly.
+* @failcase                            If any condition fails to give proper value.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcButtonSetSelectedImage(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       Button_TestApp testApp( application, BUTTON_SET_SELECTED_IMAGE );
+       application.MainLoop();
+
+    return test_return_value;
+}
 
 /** @} */ // end of itc-button-testcases
 /** @} */ // end of itc-button
index eef2ddc..9cb9ba3 100755 (executable)
@@ -191,7 +191,7 @@ void ItemLayoutGetClosestAnchorPosition()
        float fAnchorPosition = F_DEFAULT_POSITION;
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -212,7 +212,7 @@ void ItemLayoutGetScrollDirection()
        
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -232,7 +232,7 @@ void ItemLayoutSetGetOrientationRight()
        int nTestResult = 0;
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -249,7 +249,7 @@ void ItemLayoutSetGetOrientationUp()
        int nTestResult = 0;
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." ); 
@@ -267,7 +267,7 @@ void ItemLayoutSetGetOrientationDown()
        int nTestResult = 0;
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -290,7 +290,7 @@ void ItemLayoutGetClosestOnScreenLayoutPosition()
        
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -309,12 +309,12 @@ void ItemLayoutGetNextFocusItemID()
        OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
        const int ITEM_ID = 0 , MAX_ITEM = 10, NEXT_FOCUS_ITEM = 1;
        int nNextItem = 0;
-       bool bLoopEnabled = false ;     
+       bool bLoopEnabled = false ; 
        ControlOrientation::Type nOrientationType = ControlOrientation::Up;
        
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -336,7 +336,7 @@ void ItemLayoutGetReserveItemCount()
        
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -382,7 +382,7 @@ void ItemLayoutGetFlickSpeedFactor()
        
        ItemLayoutFactory itemFactory;
        ItemView itemView;
-       ItemLayoutPtr gridLayout;               
+       ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout), "ItemLayout Initialization is failed." );
@@ -422,6 +422,7 @@ void ItemLayoutCopyConstractor()
        ItemView itemView;
        ItemLayoutPtr gridLayout;
        ItemLayoutPtr itemLayout1;
+       ItemLayoutPtr itemLayoutAssign;
        
        DALI_CHECK_FAIL(!ItemLayoutInitialize(itemFactory, itemView, gridLayout, itemLayout1), "ItemLayout Initialization is failed." );
        
@@ -433,6 +434,9 @@ void ItemLayoutCopyConstractor()
        
        DALI_CHECK_FAIL( vec3ItemSize != vec3ItemSizeTemp, "Itemlayout is not copied" );
        
+       itemLayoutAssign=itemLayout1;
+       DALI_CHECK_FAIL(itemLayoutAssign != itemLayout1,  "ItemLayout Assignment failed." );
+       
        DaliLog::PrintPass();
 }
 
index 3b13a91..294f576 100755 (executable)
@@ -462,14 +462,49 @@ void PushButtonSetDisabledImageWithImage()
        
        try
        {
-               pushButton.SetDisabledImage( strActualPathOne );
+               pushButton.SetDisabledImage( strActualPathOne );
        }
        catch(DaliException& de)
        {
                LOG_E("SetDisabledImage with image is failed.");
                DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
                test_return_value=1;
-               return; 
+               return;
+       }
+       
+       PushButton pushButtonA = PushButton::New();
+       DALI_CHECK_FAIL(!pushButtonA,  "PushButton::New() is failed .");
+
+       try
+       {
+               pushButtonA.SetDisabledSelectedImage( strActualPathOne );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetDisabledSelectedImage with image is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       Image imgset ;
+       DALI_CHECK_FAIL(!PushButtonCreateImage(imgset),  "PushButtonCreateImage is failed .");
+
+       Actor imgActorSet = ImageView::New(imgset);
+       DALI_CHECK_FAIL(!imgActorSet,  "ImageView::New() is failed .");
+
+       PushButton pushButtonB = PushButton::New();
+       DALI_CHECK_FAIL(!pushButtonB, "PushButton::New() is failed .");
+
+       try
+       {
+               pushButtonB.SetDisabledSelectedImage( imgActorSet );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetDisabledSelectedImage with actor is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
        }
        strActualPathOne.clear();
        DaliLog::PrintPass();
@@ -863,7 +898,7 @@ int ITcPushButtonSetDisabledBackgroundImageWithImage(void)
 * @description                 Sets and Get  the button disabled image with image. 
 * @scenario                            Create a PushButton instance; \n
 *                                              Sets the button disabled  image.\n
-* @apicovered                  PushButton::New(),SetDisabledImage,GetDisabledImage
+* @apicovered                  PushButton::New(),SetDisabledImage,GetDisabledImage,SetDisabledSelectedImage
 * @passcase                            If Sets the button disabled  image successfully.
 * @failcase                            If Fail to Set the button disabled  image.
 * @precondition                        NA
index 40c4a51..bdacd80 100755 (executable)
@@ -43,6 +43,8 @@ const float SCROLL_TARGET_Y = 400.0f;                                                                 /** Target scroll y position **/
 const float SCROLL_TARGET_Z = 0.0f;                                                                    /** Target scroll z position **/
 const int SCROLL_DESTINATION = 2;                                                                  /** Destination page number **/
 float g_fScrollDurSet = 0.7f;                                                                                  /** Scroll duration **/
+const float TEST_CUSTOM2_SNAP_OVERSHOOT_DURATION = 1.5f;                               /**< another Test duration **/
+const float TEST_CUSTOM3_SNAP_OVERSHOOT_DURATION = TEST_CUSTOM2_SNAP_OVERSHOOT_DURATION * 0.5f;
 
 /**
  * @function                   ScrollViewOnScrollStart
@@ -1385,12 +1387,14 @@ void ScrollViewApplyAndRemoveEffect()
        ScrollView scrollView = ScrollView::New();
        DALI_CHECK_FAIL(!scrollView, "ScrollView::New() is failed.");
        
+       ScrollViewEffect effect;
+       
        Stage::GetCurrent().Add( scrollView );
        try
        {
                // Create two scroll view effects
                Dali::Path path = Dali::Path::New();
-               ScrollViewEffect effect = ScrollViewPagePathEffect::New(path, Vector3(-1.0f, 0.0f, 0.0f), Toolkit::ScrollView::Property::SCROLL_FINAL_X, Vector3(100.0f, 100.0f, 0.0f), 2);
+               effect = ScrollViewPagePathEffect::New(path, Vector3(-1.0f, 0.0f, 0.0f), Toolkit::ScrollView::Property::SCROLL_FINAL_X, Vector3(100.0f, 100.0f, 0.0f), 2);
                ScrollViewEffect newEffect = ScrollViewPagePathEffect::New(path, Vector3(-1.0f, 1.0f, 1.0f), Toolkit::ScrollView::Property::SCROLL_FINAL_X, Vector3(200.0f, 150.0f, 0.0f), 5);
 
                // Apply both effects
@@ -1519,6 +1523,69 @@ void VTScrollViewPagePathEffectDownCastApplyToPage002()
        DaliLog::PrintPass();
 }
 
+void ScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       ScrollView scrollView = ScrollView::New();
+       Stage::GetCurrent().Add( scrollView );
+       Vector2 stageSize = Stage::GetCurrent().GetSize();
+       scrollView.SetSize(stageSize);
+       scrollView.SetParentOrigin(ParentOrigin::TOP_LEFT);
+       scrollView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
+       Vector2 START_POSITION = Vector2(10.0f, 10.0f);
+       scrollView.ScrollTo(START_POSITION, 0.0f);
+       //SetScrollingDirection
+       try
+       {
+               scrollView.SetScrollingDirection(Dali::PanGestureDetector::DIRECTION_VERTICAL);
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetScrollingDirection is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       //RemoveScrollingDirection
+       try
+       {
+               scrollView.RemoveScrollingDirection(Dali::PanGestureDetector::DIRECTION_VERTICAL);
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("RemoveScrollingDirection is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       //
+       try
+       {
+               scrollView.SetSnapOvershootDuration(TEST_CUSTOM3_SNAP_OVERSHOOT_DURATION);
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetSnapOvershootDuration is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       //
+       try
+       {
+               scrollView.SetSnapOvershootAlphaFunction(ScrollViewTestAlphaFunction);
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("SetSnapOvershootAlphaFunction is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+       
+       DaliLog::PrintPass();
+}
+
 /** @} */      //end of itc-scroll-view-testcase
 /** @} */      //end of itc-scroll-view
 /** @} */      //end of itc-dali-toolkit
index d530b3b..ce409b5 100755 (executable)
@@ -32,7 +32,7 @@ namespace
        enum TEST_CASES_LIST_SCROLL_VIEW
        {
                SCROLL_VIEW_SET_GET_SCROLL_SNAP_DURATION,
-               SCROLL_VIEW_SET_GET_FLICK_SPEED_COEFFICIENT,    
+               SCROLL_VIEW_SET_GET_FLICK_SPEED_COEFFICIENT,
                SCROLL_VIEW_SET_GET_SCROLL_FLICK_DURATION,
                SCROLL_VIEW_SET_GET_AXIS_AUTO_LOCK_GRADIENT,
                SCROLL_VIEW_SET_GET_AXIS_AUTO_LOCK,
@@ -78,7 +78,8 @@ namespace
                SCROLL_VIEW_GET_OVER_SHOOT_ANIMATION_SPEED,
                SCROLL_VIEW_GET_OVERSHOOT_EFFECT_COLOR,
                SCROLL_VIEW_APPLY_AND_REMOVE_EFFECT,
-               SCROLL_VIEW_PAGE_PATH_EFFECT_DOWNCAST_APPLY_TO_PAGE
+               SCROLL_VIEW_PAGE_PATH_EFFECT_DOWNCAST_APPLY_TO_PAGE,
+               SCROLL_VIEW_SET_REMOVE_SCROLLING_DIRECTION_AND_SET_SNAP_OVER_SHOOT
        };
 
        struct ScrollView_TestApp : public ConnectionTracker
@@ -315,6 +316,10 @@ namespace
                                case SCROLL_VIEW_PAGE_PATH_EFFECT_DOWNCAST_APPLY_TO_PAGE:
                                ScrollViewPagePathEffectDownCastApplyToPage();
                                break;
+                               
+                               case SCROLL_VIEW_SET_REMOVE_SCROLLING_DIRECTION_AND_SET_SNAP_OVER_SHOOT:
+                               ScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot();
+                               break;
                  }
          }
          
@@ -1948,7 +1953,32 @@ int ITcScrollViewPagePathEffectDownCastApplyToPage(void)
 
     return test_return_value;
 }
+//& purpose: To set/remove scroll direction
+//& type:    auto 
+ /** 
+ * @testcase                           ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot
+ * @since_tizen                                3.0
+ * @type                                       Positive
+ * @description                        To set/remove scroll direction
+ * @scenario                           Creates a Scroll View instance \n 
+ *                                                     Set Scrolling Direction \n
+ *                                                     Remove Scrolling Direction
+ *                                                     Scroll to a page after applying effect and check whether the scroll is done properly \n
+ * @apicovered                         ScrollView::New(),SetScrollingDirection(), RemoveScrollingDirection(), SetSnapOvershootDuration(), SetSnapOvershootAlphaFunction()
+ * @passcase                           If Set Remove scroll direction work properly
+ * @failcase                           If Set Remove scroll direction not work properly
+ * @precondition                       N/A
+ * @postcondition                      N/A
+ * 
+ */
+int ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot(void)
+{
+       Application application = Application::New( &gArgc, &gArgv );
+       ScrollView_TestApp testApp( application, SCROLL_VIEW_SET_REMOVE_SCROLLING_DIRECTION_AND_SET_SNAP_OVER_SHOOT );
+       application.MainLoop();
 
+    return test_return_value;
+}
 
 /** @} */      //end of itc-scroll-view-testcase
 /** @} */      //end of itc-scroll-view
index 5f7592c..5754a24 100644 (file)
@@ -121,8 +121,8 @@ void SliderDownCast()
        DALI_CHECK_FAIL(!stage, "stage is not created " );
        
        stage.Add(slider);
-    
-       Slider downCastSlider = Slider::DownCast(childActor);
+       Slider downCastSlider;
+       downCastSlider = Slider::DownCast(childActor);
        DALI_CHECK_FAIL(!downCastSlider, "Failed to Downcast an Object handle to Slider" );
        downCastSlider.Reset();
 
index c694f79..3b0fd74 100755 (executable)
@@ -150,7 +150,8 @@ class StylemangerChangedSignalChecker : public ConnectionTracker
  {
        OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
        
-       StyleManager styleManager = StyleManager::Get();
+       StyleManager styleManager;
+       styleManager = StyleManager::Get();
        DALI_CHECK_FAIL( !styleManager, "StyleManager::Get() is failed." );
        StyleManager copyOfStyleManager( styleManager );
        DALI_CHECK_FAIL( !copyOfStyleManager, "StyleManager copy contructor is failed." );
index 6401fd4..9fa5172 100755 (executable)
@@ -71,6 +71,8 @@ extern void ITs_style_manager_startup(void);
 extern void ITs_style_manager_cleanup(void);
 extern void ITs_table_view_startup(void);
 extern void ITs_table_view_cleanup(void);
+extern void ITs_text_editor_startup(void);
+extern void ITs_text_editor_cleanup(void);
 extern void ITs_text_field_startup(void);
 extern void ITs_text_field_cleanup(void);
 extern void ITs_text_label_startup(void);
@@ -116,6 +118,7 @@ extern int ITcButtonCopyConstructor(void);
 extern int ITcButtonSetIsDisabled(void);
 extern int ITcButtonSetGetLabelText(void);
 extern int ITcButtonSetIsSelected(void);
+extern int ITcButtonSetSelectedImage(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -300,6 +303,7 @@ extern int ITcScrollViewGetOvershootAnimationSpeed(void);
 extern int ITcScrollViewGetOvershootEffectColor(void);
 extern int ITcScrollViewApplyAndRemoveEffect(void);
 extern int ITcScrollViewPagePathEffectDownCastApplyToPage(void);
+extern int ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot(void);
 extern int ITcSliderDownCast(void);
 extern int ITcSliderAssignmentOperator(void);
 extern int ITcSliderCopyConstructor(void);
@@ -315,6 +319,9 @@ extern int ITcTableViewSetGetRelativeWidthHeight(void);
 extern int ITcTableViewSetGetFitFixedWidthHeight(void);
 extern int ITcTableViewSetGetCellPadding(void);
 extern int ITcTableViewChildProperties(void);
+extern int ITcTextEditorBasicOperation(void);
+extern int ITcTextEditorGetPropertyIndex(void);
+extern int ITcTextEditorSetGetProperty(void);
 extern int ITcTextFieldDownCast(void);
 extern int ITcTextFieldAssignment(void);
 extern int ITcTextFieldCopy(void);
@@ -369,6 +376,7 @@ testcase tc_array[] = {
        {"ITcButtonSetIsDisabled", ITcButtonSetIsDisabled, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetGetLabelText", ITcButtonSetGetLabelText, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetIsSelected", ITcButtonSetIsSelected, ITs_button_startup, ITs_button_cleanup},
+       {"ITcButtonSetSelectedImage", ITcButtonSetSelectedImage, ITs_button_startup, ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator", ITcCheckBoxButtonCopyDownCastOperator, ITs_check_box_button_startup, ITs_check_box_button_cleanup},
        {"ITcControlClearBackground", ITcControlClearBackground, ITs_control_startup, ITs_control_cleanup},
        {"ITcControlKeyInputFocus", ITcControlKeyInputFocus, ITs_control_startup, ITs_control_cleanup},
@@ -553,6 +561,7 @@ testcase tc_array[] = {
        {"ITcScrollViewGetOvershootEffectColor", ITcScrollViewGetOvershootEffectColor, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewApplyAndRemoveEffect", ITcScrollViewApplyAndRemoveEffect, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewPagePathEffectDownCastApplyToPage", ITcScrollViewPagePathEffectDownCastApplyToPage, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
+       {"ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot", ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcSliderDownCast", ITcSliderDownCast, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderAssignmentOperator", ITcSliderAssignmentOperator, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderCopyConstructor", ITcSliderCopyConstructor, ITs_Slider_startup, ITs_Slider_cleanup},
@@ -568,6 +577,9 @@ testcase tc_array[] = {
        {"ITcTableViewSetGetFitFixedWidthHeight", ITcTableViewSetGetFitFixedWidthHeight, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewSetGetCellPadding", ITcTableViewSetGetCellPadding, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewChildProperties", ITcTableViewChildProperties, ITs_table_view_startup, ITs_table_view_cleanup},
+       {"ITcTextEditorBasicOperation", ITcTextEditorBasicOperation, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorGetPropertyIndex", ITcTextEditorGetPropertyIndex, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorSetGetProperty", ITcTextEditorSetGetProperty, ITs_text_editor_startup, ITs_text_editor_cleanup},
        {"ITcTextFieldDownCast", ITcTextFieldDownCast, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldAssignment", ITcTextFieldAssignment, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldCopy", ITcTextFieldCopy, ITs_text_field_startup, ITs_text_field_cleanup},
index 6401fd4..9fa5172 100755 (executable)
@@ -71,6 +71,8 @@ extern void ITs_style_manager_startup(void);
 extern void ITs_style_manager_cleanup(void);
 extern void ITs_table_view_startup(void);
 extern void ITs_table_view_cleanup(void);
+extern void ITs_text_editor_startup(void);
+extern void ITs_text_editor_cleanup(void);
 extern void ITs_text_field_startup(void);
 extern void ITs_text_field_cleanup(void);
 extern void ITs_text_label_startup(void);
@@ -116,6 +118,7 @@ extern int ITcButtonCopyConstructor(void);
 extern int ITcButtonSetIsDisabled(void);
 extern int ITcButtonSetGetLabelText(void);
 extern int ITcButtonSetIsSelected(void);
+extern int ITcButtonSetSelectedImage(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -300,6 +303,7 @@ extern int ITcScrollViewGetOvershootAnimationSpeed(void);
 extern int ITcScrollViewGetOvershootEffectColor(void);
 extern int ITcScrollViewApplyAndRemoveEffect(void);
 extern int ITcScrollViewPagePathEffectDownCastApplyToPage(void);
+extern int ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot(void);
 extern int ITcSliderDownCast(void);
 extern int ITcSliderAssignmentOperator(void);
 extern int ITcSliderCopyConstructor(void);
@@ -315,6 +319,9 @@ extern int ITcTableViewSetGetRelativeWidthHeight(void);
 extern int ITcTableViewSetGetFitFixedWidthHeight(void);
 extern int ITcTableViewSetGetCellPadding(void);
 extern int ITcTableViewChildProperties(void);
+extern int ITcTextEditorBasicOperation(void);
+extern int ITcTextEditorGetPropertyIndex(void);
+extern int ITcTextEditorSetGetProperty(void);
 extern int ITcTextFieldDownCast(void);
 extern int ITcTextFieldAssignment(void);
 extern int ITcTextFieldCopy(void);
@@ -369,6 +376,7 @@ testcase tc_array[] = {
        {"ITcButtonSetIsDisabled", ITcButtonSetIsDisabled, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetGetLabelText", ITcButtonSetGetLabelText, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetIsSelected", ITcButtonSetIsSelected, ITs_button_startup, ITs_button_cleanup},
+       {"ITcButtonSetSelectedImage", ITcButtonSetSelectedImage, ITs_button_startup, ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator", ITcCheckBoxButtonCopyDownCastOperator, ITs_check_box_button_startup, ITs_check_box_button_cleanup},
        {"ITcControlClearBackground", ITcControlClearBackground, ITs_control_startup, ITs_control_cleanup},
        {"ITcControlKeyInputFocus", ITcControlKeyInputFocus, ITs_control_startup, ITs_control_cleanup},
@@ -553,6 +561,7 @@ testcase tc_array[] = {
        {"ITcScrollViewGetOvershootEffectColor", ITcScrollViewGetOvershootEffectColor, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewApplyAndRemoveEffect", ITcScrollViewApplyAndRemoveEffect, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewPagePathEffectDownCastApplyToPage", ITcScrollViewPagePathEffectDownCastApplyToPage, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
+       {"ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot", ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcSliderDownCast", ITcSliderDownCast, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderAssignmentOperator", ITcSliderAssignmentOperator, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderCopyConstructor", ITcSliderCopyConstructor, ITs_Slider_startup, ITs_Slider_cleanup},
@@ -568,6 +577,9 @@ testcase tc_array[] = {
        {"ITcTableViewSetGetFitFixedWidthHeight", ITcTableViewSetGetFitFixedWidthHeight, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewSetGetCellPadding", ITcTableViewSetGetCellPadding, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewChildProperties", ITcTableViewChildProperties, ITs_table_view_startup, ITs_table_view_cleanup},
+       {"ITcTextEditorBasicOperation", ITcTextEditorBasicOperation, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorGetPropertyIndex", ITcTextEditorGetPropertyIndex, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorSetGetProperty", ITcTextEditorSetGetProperty, ITs_text_editor_startup, ITs_text_editor_cleanup},
        {"ITcTextFieldDownCast", ITcTextFieldDownCast, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldAssignment", ITcTextFieldAssignment, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldCopy", ITcTextFieldCopy, ITs_text_field_startup, ITs_text_field_cleanup},
index 6401fd4..9fa5172 100755 (executable)
@@ -71,6 +71,8 @@ extern void ITs_style_manager_startup(void);
 extern void ITs_style_manager_cleanup(void);
 extern void ITs_table_view_startup(void);
 extern void ITs_table_view_cleanup(void);
+extern void ITs_text_editor_startup(void);
+extern void ITs_text_editor_cleanup(void);
 extern void ITs_text_field_startup(void);
 extern void ITs_text_field_cleanup(void);
 extern void ITs_text_label_startup(void);
@@ -116,6 +118,7 @@ extern int ITcButtonCopyConstructor(void);
 extern int ITcButtonSetIsDisabled(void);
 extern int ITcButtonSetGetLabelText(void);
 extern int ITcButtonSetIsSelected(void);
+extern int ITcButtonSetSelectedImage(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -300,6 +303,7 @@ extern int ITcScrollViewGetOvershootAnimationSpeed(void);
 extern int ITcScrollViewGetOvershootEffectColor(void);
 extern int ITcScrollViewApplyAndRemoveEffect(void);
 extern int ITcScrollViewPagePathEffectDownCastApplyToPage(void);
+extern int ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot(void);
 extern int ITcSliderDownCast(void);
 extern int ITcSliderAssignmentOperator(void);
 extern int ITcSliderCopyConstructor(void);
@@ -315,6 +319,9 @@ extern int ITcTableViewSetGetRelativeWidthHeight(void);
 extern int ITcTableViewSetGetFitFixedWidthHeight(void);
 extern int ITcTableViewSetGetCellPadding(void);
 extern int ITcTableViewChildProperties(void);
+extern int ITcTextEditorBasicOperation(void);
+extern int ITcTextEditorGetPropertyIndex(void);
+extern int ITcTextEditorSetGetProperty(void);
 extern int ITcTextFieldDownCast(void);
 extern int ITcTextFieldAssignment(void);
 extern int ITcTextFieldCopy(void);
@@ -369,6 +376,7 @@ testcase tc_array[] = {
        {"ITcButtonSetIsDisabled", ITcButtonSetIsDisabled, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetGetLabelText", ITcButtonSetGetLabelText, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetIsSelected", ITcButtonSetIsSelected, ITs_button_startup, ITs_button_cleanup},
+       {"ITcButtonSetSelectedImage", ITcButtonSetSelectedImage, ITs_button_startup, ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator", ITcCheckBoxButtonCopyDownCastOperator, ITs_check_box_button_startup, ITs_check_box_button_cleanup},
        {"ITcControlClearBackground", ITcControlClearBackground, ITs_control_startup, ITs_control_cleanup},
        {"ITcControlKeyInputFocus", ITcControlKeyInputFocus, ITs_control_startup, ITs_control_cleanup},
@@ -553,6 +561,7 @@ testcase tc_array[] = {
        {"ITcScrollViewGetOvershootEffectColor", ITcScrollViewGetOvershootEffectColor, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewApplyAndRemoveEffect", ITcScrollViewApplyAndRemoveEffect, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewPagePathEffectDownCastApplyToPage", ITcScrollViewPagePathEffectDownCastApplyToPage, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
+       {"ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot", ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcSliderDownCast", ITcSliderDownCast, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderAssignmentOperator", ITcSliderAssignmentOperator, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderCopyConstructor", ITcSliderCopyConstructor, ITs_Slider_startup, ITs_Slider_cleanup},
@@ -568,6 +577,9 @@ testcase tc_array[] = {
        {"ITcTableViewSetGetFitFixedWidthHeight", ITcTableViewSetGetFitFixedWidthHeight, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewSetGetCellPadding", ITcTableViewSetGetCellPadding, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewChildProperties", ITcTableViewChildProperties, ITs_table_view_startup, ITs_table_view_cleanup},
+       {"ITcTextEditorBasicOperation", ITcTextEditorBasicOperation, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorGetPropertyIndex", ITcTextEditorGetPropertyIndex, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorSetGetProperty", ITcTextEditorSetGetProperty, ITs_text_editor_startup, ITs_text_editor_cleanup},
        {"ITcTextFieldDownCast", ITcTextFieldDownCast, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldAssignment", ITcTextFieldAssignment, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldCopy", ITcTextFieldCopy, ITs_text_field_startup, ITs_text_field_cleanup},
index 6401fd4..9fa5172 100755 (executable)
@@ -71,6 +71,8 @@ extern void ITs_style_manager_startup(void);
 extern void ITs_style_manager_cleanup(void);
 extern void ITs_table_view_startup(void);
 extern void ITs_table_view_cleanup(void);
+extern void ITs_text_editor_startup(void);
+extern void ITs_text_editor_cleanup(void);
 extern void ITs_text_field_startup(void);
 extern void ITs_text_field_cleanup(void);
 extern void ITs_text_label_startup(void);
@@ -116,6 +118,7 @@ extern int ITcButtonCopyConstructor(void);
 extern int ITcButtonSetIsDisabled(void);
 extern int ITcButtonSetGetLabelText(void);
 extern int ITcButtonSetIsSelected(void);
+extern int ITcButtonSetSelectedImage(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -300,6 +303,7 @@ extern int ITcScrollViewGetOvershootAnimationSpeed(void);
 extern int ITcScrollViewGetOvershootEffectColor(void);
 extern int ITcScrollViewApplyAndRemoveEffect(void);
 extern int ITcScrollViewPagePathEffectDownCastApplyToPage(void);
+extern int ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot(void);
 extern int ITcSliderDownCast(void);
 extern int ITcSliderAssignmentOperator(void);
 extern int ITcSliderCopyConstructor(void);
@@ -315,6 +319,9 @@ extern int ITcTableViewSetGetRelativeWidthHeight(void);
 extern int ITcTableViewSetGetFitFixedWidthHeight(void);
 extern int ITcTableViewSetGetCellPadding(void);
 extern int ITcTableViewChildProperties(void);
+extern int ITcTextEditorBasicOperation(void);
+extern int ITcTextEditorGetPropertyIndex(void);
+extern int ITcTextEditorSetGetProperty(void);
 extern int ITcTextFieldDownCast(void);
 extern int ITcTextFieldAssignment(void);
 extern int ITcTextFieldCopy(void);
@@ -369,6 +376,7 @@ testcase tc_array[] = {
        {"ITcButtonSetIsDisabled", ITcButtonSetIsDisabled, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetGetLabelText", ITcButtonSetGetLabelText, ITs_button_startup, ITs_button_cleanup},
        {"ITcButtonSetIsSelected", ITcButtonSetIsSelected, ITs_button_startup, ITs_button_cleanup},
+       {"ITcButtonSetSelectedImage", ITcButtonSetSelectedImage, ITs_button_startup, ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator", ITcCheckBoxButtonCopyDownCastOperator, ITs_check_box_button_startup, ITs_check_box_button_cleanup},
        {"ITcControlClearBackground", ITcControlClearBackground, ITs_control_startup, ITs_control_cleanup},
        {"ITcControlKeyInputFocus", ITcControlKeyInputFocus, ITs_control_startup, ITs_control_cleanup},
@@ -553,6 +561,7 @@ testcase tc_array[] = {
        {"ITcScrollViewGetOvershootEffectColor", ITcScrollViewGetOvershootEffectColor, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewApplyAndRemoveEffect", ITcScrollViewApplyAndRemoveEffect, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcScrollViewPagePathEffectDownCastApplyToPage", ITcScrollViewPagePathEffectDownCastApplyToPage, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
+       {"ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot", ITcScrollViewSetRemoveScrollingDirectionAndSetSnapOvershoot, ITs_scroll_view_startup, ITs_scroll_view_cleanup},
        {"ITcSliderDownCast", ITcSliderDownCast, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderAssignmentOperator", ITcSliderAssignmentOperator, ITs_Slider_startup, ITs_Slider_cleanup},
        {"ITcSliderCopyConstructor", ITcSliderCopyConstructor, ITs_Slider_startup, ITs_Slider_cleanup},
@@ -568,6 +577,9 @@ testcase tc_array[] = {
        {"ITcTableViewSetGetFitFixedWidthHeight", ITcTableViewSetGetFitFixedWidthHeight, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewSetGetCellPadding", ITcTableViewSetGetCellPadding, ITs_table_view_startup, ITs_table_view_cleanup},
        {"ITcTableViewChildProperties", ITcTableViewChildProperties, ITs_table_view_startup, ITs_table_view_cleanup},
+       {"ITcTextEditorBasicOperation", ITcTextEditorBasicOperation, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorGetPropertyIndex", ITcTextEditorGetPropertyIndex, ITs_text_editor_startup, ITs_text_editor_cleanup},
+       {"ITcTextEditorSetGetProperty", ITcTextEditorSetGetProperty, ITs_text_editor_startup, ITs_text_editor_cleanup},
        {"ITcTextFieldDownCast", ITcTextFieldDownCast, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldAssignment", ITcTextFieldAssignment, ITs_text_field_startup, ITs_text_field_cleanup},
        {"ITcTextFieldCopy", ITcTextFieldCopy, ITs_text_field_startup, ITs_text_field_cleanup},
diff --git a/src/itc/dali-toolkit/text-editor/ITs-text-editor-common.cpp b/src/itc/dali-toolkit/text-editor/ITs-text-editor-common.cpp
new file mode 100755 (executable)
index 0000000..2c60da5
--- /dev/null
@@ -0,0 +1,19 @@
+#include "ITs-text-editor-common.h"
+//~ 
+/** @addtogroup itc-dali-toolkit
+*   @brief Integrated testsuites for module dali-toolkit
+*   @ingroup    itc
+*      @{
+*/
+
+
+/** @addtogroup itc-text-editor
+*      @brief Integrated testcases and testcase helper function, callbacks for suite text-editor
+*   @ingroup itc-dali-toolkit
+*      @{
+*/
+
+
+
+/** @} */   // end of itc-text-editor 
+/** @} */   // end of itc-dali-toolkit
diff --git a/src/itc/dali-toolkit/text-editor/ITs-text-editor-common.h b/src/itc/dali-toolkit/text-editor/ITs-text-editor-common.h
new file mode 100755 (executable)
index 0000000..37ed9c7
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef _ITS_TEXT_EDITOR_COMMON_H_
+#define _ITS_TEXT_EDITOR_COMMON_H_
+
+#include "dali-common.h"
+#include <dali-toolkit/dali-toolkit.h>
+
+using namespace Dali;
+using namespace Toolkit;
+
+/** @addtogroup itc-dali-toolkit
+*   @brief Integrated testsuites for module dali-toolkit
+*   @ingroup    itc
+*      @{
+*/
+
+
+/** @addtogroup itc-text-editor
+*      @brief Integrated testcases and testcase helper function, callbacks for suite text-editor
+*   @ingroup itc-dali-toolkit
+*      @{
+*/ 
+
+
+#define SUITE_NAME            "TEXT_EDITOR_ITC"
+
+
+/** @} */   // end of itc-text-editor
+/** @} */   // end of itc-dali-toolkit
+
+
+#endif  //_ITS_TEXT_EDITOR_COMMON_H_
diff --git a/src/itc/dali-toolkit/text-editor/ITs-text-editor.cpp b/src/itc/dali-toolkit/text-editor/ITs-text-editor.cpp
new file mode 100755 (executable)
index 0000000..de44621
--- /dev/null
@@ -0,0 +1,473 @@
+#include "ITs-text-editor-common.h"
+
+extern int gArgc;
+extern char ** gArgv;
+extern int test_return_value;
+
+/** @addtogroup itc-dali-toolkit
+*   @brief Integrated testsuites for module dali-toolkit
+*   @ingroup    itc
+*      @{
+*/
+
+/** @addtogroup itc-text-editor
+*      @brief Integrated testcases and testcase helper function, callbacks for suite text-editor
+*   @ingroup itc-dali-toolkit
+*      @{
+*/
+
+//& set: TextEditor
+
+void ITs_text_editor_startup(void)
+{
+       test_return_value =0;
+}
+
+void ITs_text_editor_cleanup(void)
+{
+}
+
+
+/** @addtogroup itc-text-editor-testcases
+ *  @brief Integrated testcases for suite text-editor  
+ *  @ingroup itc-text-editor
+ *  @{
+ */
+
+void TextEditorBasicOperation();
+void TextEditorGetPropertyIndex();
+void TextEditorSetGetProperty();
+
+
+const char* const PROPERTY_NAME_RENDERING_BACKEND                    = "renderingBackend";
+const char* const PROPERTY_NAME_TEXT                                 = "text";
+const char* const PROPERTY_NAME_TEXT_COLOR                           = "textColor";
+const char* const PROPERTY_NAME_FONT_FAMILY                          = "fontFamily";
+const char* const PROPERTY_NAME_FONT_STYLE                           = "fontStyle";
+const char* const PROPERTY_NAME_POINT_SIZE                           = "pointSize";
+const char* const PROPERTY_NAME_HORIZONTAL_ALIGNMENT                 = "horizontalAlignment";
+const char* const PROPERTY_NAME_SCROLL_THRESHOLD                     = "scrollThreshold";
+const char* const PROPERTY_NAME_SCROLL_SPEED                         = "scrollSpeed";
+const char* const PROPERTY_NAME_PRIMARY_CURSOR_COLOR                 = "primaryCursorColor";
+const char* const PROPERTY_NAME_SECONDARY_CURSOR_COLOR               = "secondaryCursorColor";
+const char* const PROPERTY_NAME_ENABLE_CURSOR_BLINK                  = "enableCursorBlink";
+const char* const PROPERTY_NAME_CURSOR_BLINK_INTERVAL                = "cursorBlinkInterval";
+const char* const PROPERTY_NAME_CURSOR_BLINK_DURATION                = "cursorBlinkDuration";
+const char* const PROPERTY_NAME_CURSOR_WIDTH                         = "cursorWidth";
+const char* const PROPERTY_NAME_GRAB_HANDLE_IMAGE                    = "grabHandleImage";
+const char* const PROPERTY_NAME_GRAB_HANDLE_PRESSED_IMAGE            = "grabHandlePressedImage";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_IMAGE_LEFT          = "selectionHandleImageLeft";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_IMAGE_RIGHT         = "selectionHandleImageRight";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_LEFT  = "selectionHandlePressedImageLeft";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = "selectionHandlePressedImageRight";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_LEFT   = "selectionHandleMarkerImageLeft";
+const char* const PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_RIGHT  = "selectionHandleMarkerImageRight";
+const char* const PROPERTY_NAME_SELECTION_HIGHLIGHT_COLOR            = "selectionHighlightColor";
+const char* const PROPERTY_NAME_DECORATION_BOUNDING_BOX              = "decorationBoundingBox";
+const char* const PROPERTY_NAME_ENABLE_MARKUP                        = "enableMarkup";
+const char* const PROPERTY_NAME_INPUT_COLOR                          = "inputColor";
+const char* const PROPERTY_NAME_INPUT_FONT_FAMILY                    = "inputFontFamily";
+const char* const PROPERTY_NAME_INPUT_FONT_STYLE                     = "inputFontStyle";
+const char* const PROPERTY_NAME_INPUT_POINT_SIZE                     = "inputPointSize";
+
+const char* const PROPERTY_NAME_LINE_SPACING                         = "lineSpacing";
+const char* const PROPERTY_NAME_INPUT_LINE_SPACING                   = "inputLineSpacing";
+const char* const PROPERTY_NAME_UNDERLINE                            = "underline";
+const char* const PROPERTY_NAME_INPUT_UNDERLINE                      = "inputUnderline";
+const char* const PROPERTY_NAME_SHADOW                               = "shadow";
+const char* const PROPERTY_NAME_INPUT_SHADOW                         = "inputShadow";
+const char* const PROPERTY_NAME_EMBOSS                               = "emboss";
+const char* const PROPERTY_NAME_INPUT_EMBOSS                         = "inputEmboss";
+const char* const PROPERTY_NAME_OUTLINE                              = "outline";
+const char* const PROPERTY_NAME_INPUT_OUTLINE                        = "inputOutline";
+
+namespace
+{
+       enum TEST_CASES_LIST_TEXT_EDITOR
+       {
+               TEXT_EDITOR_BASIC_OPERATION,
+               TEXT_EDITOR_GET_PROPERTY_INDEX,
+               TEXT_EDITOR_SET_GET_PROPERTY
+       };
+
+       struct TextEditor_TestApp : public ConnectionTracker
+       {
+       TextEditor_TestApp( Application& app, int test_case ): mApplication( app ),     mTestCase( test_case )
+       {
+               mApplication.InitSignal().Connect( this, &TextEditor_TestApp::OnInit );
+       }
+
+       void OnInit(Application& app)
+       {
+               ExcuteTest();
+               mTimer = Timer::New( INTERVAL );
+               mTimer.TickSignal().Connect( this, &TextEditor_TestApp::Tick );
+               mTimer.Start();
+       }
+
+       bool Tick()
+       {
+               mTimer.Stop();
+               mApplication.Quit();
+               return true;
+       }
+
+       void ExcuteTest()
+       {
+               switch (mTestCase)
+               {
+                       case TEXT_EDITOR_BASIC_OPERATION:
+                       TextEditorBasicOperation();
+                       break;
+                       
+                       case TEXT_EDITOR_GET_PROPERTY_INDEX:
+                       TextEditorGetPropertyIndex();
+                       break;
+                       
+                       case TEXT_EDITOR_SET_GET_PROPERTY:
+                       TextEditorSetGetProperty();
+                       break;
+               }
+       }
+       // Data
+       Application& mApplication;
+       int mTestCase;
+       Timer mTimer;
+       };
+} // unnamed namespace
+
+/**
+ * ##############################
+ * TC Logic Implementation Area.
+ * ##############################
+ **/
+void TextEditorBasicOperation()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       TextEditor textEditor;
+       textEditor = TextEditor::New();
+       DALI_CHECK_FAIL(!textEditor, "TextEditor::New() is failed");
+       BaseHandle object( textEditor );
+
+       TextEditor textEditor1 = TextEditor::DownCast( object );
+       DALI_CHECK_FAIL( !textEditor1 ,"TextEditor::DownCast is failed");
+       TextEditor textEditor2 = DownCast< TextEditor >( object );
+       DALI_CHECK_FAIL( !textEditor1 ,"DownCast< TextEditor > is failed");
+       
+       TextEditor textEditor3 = TextEditor::New();
+       textEditor3.SetProperty( TextEditor::Property::TEXT, "Test" );
+
+       TextEditor copy( textEditor3 );
+       DALI_CHECK_FAIL( copy!= textEditor3,"TestEditor copy contructor failed");
+       DALI_CHECK_FAIL( copy.GetProperty<std::string>( TextEditor::Property::TEXT ) != textEditor3.GetProperty<std::string>( TextEditor::Property::TEXT ), "GetProperty for TEXT mismatch");
+
+       TextEditor copyAssign = textEditor3;
+       DALI_CHECK_FAIL( textEditor3 != copyAssign ,"TextEditor Assignment operator failed.");
+       DALI_CHECK_FAIL( copyAssign.GetProperty<std::string>( TextEditor::Property::TEXT ) != textEditor3.GetProperty<std::string>( TextEditor::Property::TEXT ) ,"GetProperty for TEXT mismatch");
+       
+       DaliLog::PrintPass();
+}
+
+void TextEditorGetPropertyIndex()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       
+       TextEditor editor = TextEditor::New();
+       DALI_CHECK_FAIL( !editor, "TextEditor::New() is failed" );
+
+       // Check Property Indices are correct
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_RENDERING_BACKEND ) != TextEditor::Property::RENDERING_BACKEND ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_TEXT ) != TextEditor::Property::TEXT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_TEXT_COLOR ) != TextEditor::Property::TEXT_COLOR ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_FONT_FAMILY ) != TextEditor::Property::FONT_FAMILY ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_FONT_STYLE ) != TextEditor::Property::FONT_STYLE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_POINT_SIZE ) != TextEditor::Property::POINT_SIZE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_HORIZONTAL_ALIGNMENT ) != TextEditor::Property::HORIZONTAL_ALIGNMENT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SCROLL_THRESHOLD ) != TextEditor::Property::SCROLL_THRESHOLD ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SCROLL_SPEED ) != TextEditor::Property::SCROLL_SPEED ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_PRIMARY_CURSOR_COLOR ) != TextEditor::Property::PRIMARY_CURSOR_COLOR ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SECONDARY_CURSOR_COLOR ) != TextEditor::Property::SECONDARY_CURSOR_COLOR ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_ENABLE_CURSOR_BLINK ) != TextEditor::Property::ENABLE_CURSOR_BLINK ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_CURSOR_BLINK_INTERVAL ) != TextEditor::Property::CURSOR_BLINK_INTERVAL ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_CURSOR_BLINK_DURATION ) != TextEditor::Property::CURSOR_BLINK_DURATION ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_CURSOR_WIDTH ) != TextEditor::Property::CURSOR_WIDTH ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_GRAB_HANDLE_IMAGE ) != TextEditor::Property::GRAB_HANDLE_IMAGE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_GRAB_HANDLE_PRESSED_IMAGE ) != TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_IMAGE_LEFT ) != TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_IMAGE_RIGHT ) != TextEditor::Property::SELECTION_HANDLE_IMAGE_RIGHT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_LEFT ) != TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT ) != TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_LEFT ) != TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_LEFT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_RIGHT ) != TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_RIGHT ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SELECTION_HIGHLIGHT_COLOR ) != TextEditor::Property::SELECTION_HIGHLIGHT_COLOR ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_DECORATION_BOUNDING_BOX ) != TextEditor::Property::DECORATION_BOUNDING_BOX ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_ENABLE_MARKUP ) != TextEditor::Property::ENABLE_MARKUP ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_COLOR ) != TextEditor::Property::INPUT_COLOR ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_FONT_FAMILY ) != TextEditor::Property::INPUT_FONT_FAMILY ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_FONT_STYLE ) != TextEditor::Property::INPUT_FONT_STYLE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_POINT_SIZE ) != TextEditor::Property::INPUT_POINT_SIZE ,"GetPropertyIndex is failed.");
+
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_LINE_SPACING ) != TextEditor::Property::LINE_SPACING ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_LINE_SPACING ) != TextEditor::Property::INPUT_LINE_SPACING ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_UNDERLINE ) != TextEditor::Property::UNDERLINE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_UNDERLINE ) != TextEditor::Property::INPUT_UNDERLINE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_SHADOW ) != TextEditor::Property::SHADOW ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_SHADOW ) != TextEditor::Property::INPUT_SHADOW ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_EMBOSS ) != TextEditor::Property::EMBOSS ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_EMBOSS ) != TextEditor::Property::INPUT_EMBOSS ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_OUTLINE ) != TextEditor::Property::OUTLINE ,"GetPropertyIndex is failed.");
+       DALI_CHECK_FAIL( editor.GetPropertyIndex( PROPERTY_NAME_INPUT_OUTLINE ) != TextEditor::Property::INPUT_OUTLINE ,"GetPropertyIndex is failed.");
+       
+       DaliLog::PrintPass();
+}
+
+bool SetPropertyMapRetrieved( TextEditor& editor, const Property::Index property, const std::string mapKey, const std::string mapValue )
+{
+       bool result = false;
+       Property::Map imageMap;
+       imageMap[mapKey] =mapValue;
+
+       editor.SetProperty( property , imageMap );
+       Property::Value propValue = editor.GetProperty( property );
+       Property::Map* resultMap = propValue.GetMap();
+
+       if ( resultMap->Find( mapKey )->Get< std::string>() == mapValue )
+       {
+               result = true;
+       }
+
+       return result;
+}
+
+void TextEditorSetGetProperty()
+{
+       OPEN_GL_FREATURE_CHECK(SUITE_NAME,__LINE__)
+       
+       TextEditor editor = TextEditor::New();
+       DALI_CHECK_FAIL(!editor ,"TextEditor::New() is failed");
+       Stage::GetCurrent().Add( editor );
+
+       editor.SetProperty( TextEditor::Property::RENDERING_BACKEND, Text::RENDERING_SHARED_ATLAS );
+       DALI_CHECK_FAIL( (Text::RenderingType)editor.GetProperty<int>( TextEditor::Property::RENDERING_BACKEND ) != Text::RENDERING_SHARED_ATLAS, "Set/Get Property mismatch" );
+
+       // Check text property.
+       editor.SetProperty( TextEditor::Property::TEXT , "Setting Text" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::TEXT )!= std::string("Setting Text"), "Set/Get Property mismatch" );
+
+       // Check text's color property
+       editor.SetProperty( TextEditor::Property::TEXT_COLOR , Color::WHITE );
+       DALI_CHECK_FAIL( editor.GetProperty<Vector4>( TextEditor::Property::TEXT_COLOR ) != Color::WHITE, "Set/Get Property mismatch" );
+
+       // Check font properties.
+       editor.SetProperty( TextEditor::Property::FONT_FAMILY, "Setting font family" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::FONT_FAMILY ) != std::string("Setting font family"), "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::FONT_STYLE, "Setting font style" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::FONT_STYLE ) != std::string("Setting font style"), "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::POINT_SIZE ) - 10.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+
+       // Check that the Alignment properties can be correctly set
+       editor.SetProperty( TextEditor::Property::HORIZONTAL_ALIGNMENT, "END" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::HORIZONTAL_ALIGNMENT ) != "END", "Set/Get Property mismatch" );
+
+       // Check scroll properties.
+       editor.SetProperty( TextEditor::Property::SCROLL_THRESHOLD, 1.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::SCROLL_THRESHOLD ) - 1.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::SCROLL_SPEED, 100.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::SCROLL_SPEED ) - 100.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+
+       // Check cursor properties
+       editor.SetProperty( TextEditor::Property::PRIMARY_CURSOR_COLOR, Color::RED );
+       DALI_CHECK_FAIL( editor.GetProperty<Vector4>( TextEditor::Property::PRIMARY_CURSOR_COLOR ) != Color::RED, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::SECONDARY_CURSOR_COLOR, Color::BLUE );
+       DALI_CHECK_FAIL( editor.GetProperty<Vector4>( TextEditor::Property::SECONDARY_CURSOR_COLOR ) != Color::BLUE, "Set/Get Property mismatch" );
+
+       editor.SetProperty( TextEditor::Property::ENABLE_CURSOR_BLINK, false );
+       DALI_CHECK_FAIL( editor.GetProperty<bool>( TextEditor::Property::ENABLE_CURSOR_BLINK ) != false, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::CURSOR_BLINK_INTERVAL, 1.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::CURSOR_BLINK_INTERVAL ) - 1.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::CURSOR_BLINK_DURATION, 10.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::CURSOR_BLINK_DURATION ) - 10.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::CURSOR_WIDTH, 1 );
+       DALI_CHECK_FAIL( editor.GetProperty<int>( TextEditor::Property::CURSOR_WIDTH ) != 1, "Set/Get Property mismatch" );
+
+       // Check handle images
+       editor.SetProperty( TextEditor::Property::GRAB_HANDLE_IMAGE, "image1" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::GRAB_HANDLE_IMAGE ) != "image1", "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE, "image2" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE ) != "image2", "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT, "image3" );
+
+       // Check handle images
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT, "filename", "leftHandleImage" ) ,"Set/Get Property mismatch");
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_IMAGE_RIGHT, "filename", "rightHandleImage" ) ,"Set/Get Property mismatch");
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT, "filename", "leftHandleImagePressed" ) ,"Set/Get Property mismatch");
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, "filename", "rightHandleImagePressed" ) ,"Set/Get Property mismatch");
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_LEFT, "filename", "leftHandleMarkerImage" ) ,"Set/Get Property mismatch");
+       DALI_CHECK_FAIL( !SetPropertyMapRetrieved( editor, TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_RIGHT, "filename", "rightHandleMarkerImage" ) ,"Set/Get Property mismatch");
+
+       // Check the highlight color
+       editor.SetProperty( TextEditor::Property::SELECTION_HIGHLIGHT_COLOR, Color::GREEN );
+       DALI_CHECK_FAIL( editor.GetProperty<Vector4>( TextEditor::Property::SELECTION_HIGHLIGHT_COLOR ) != Color::GREEN, "Set/Get Property mismatch" );
+
+       // Decoration bounding box
+       editor.SetProperty( TextEditor::Property::DECORATION_BOUNDING_BOX, Rect<int>( 0, 0, 1, 1 ) );
+       DALI_CHECK_FAIL( editor.GetProperty<Rect <int > >( TextEditor::Property::DECORATION_BOUNDING_BOX ) != Rect<int>( 0, 0, 1, 1 ), "Set/Get Property mismatch" );
+
+       // Check the enable markup property.
+       DALI_CHECK_FAIL( editor.GetProperty<bool>( TextEditor::Property::ENABLE_MARKUP ), "TextEditor::Property::ENABLE_MARKUP failed");
+       editor.SetProperty( TextEditor::Property::ENABLE_MARKUP, true );
+       DALI_CHECK_FAIL( !editor.GetProperty<bool>( TextEditor::Property::ENABLE_MARKUP ) ,"TextEditor::Property::ENABLE_MARKUP failed");
+
+       // Check input color property.
+       editor.SetProperty( TextEditor::Property::INPUT_COLOR, Color::YELLOW );
+       DALI_CHECK_FAIL( editor.GetProperty<Vector4>( TextEditor::Property::INPUT_COLOR ) != Color::YELLOW, "Set/Get Property mismatch" );
+
+       // Check input font properties.
+       editor.SetProperty( TextEditor::Property::INPUT_FONT_FAMILY, "Setting input font family" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_FONT_FAMILY ) != "Setting input font family", "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::INPUT_FONT_STYLE, "Setting input font style" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_FONT_STYLE ) != "Setting input font style", "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::INPUT_POINT_SIZE, 12.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::INPUT_POINT_SIZE ) - 12.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+
+       // Check the line spacing property
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::LINE_SPACING ) - 0.0f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::LINE_SPACING, 10.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::LINE_SPACING ) - 10.0f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+
+       // Check the input line spacing property
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::INPUT_LINE_SPACING ) - 0.0f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+       editor.SetProperty( TextEditor::Property::INPUT_LINE_SPACING, 20.f );
+       DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::INPUT_LINE_SPACING ) - 20.0f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
+
+       // Check the underline property
+       editor.SetProperty( TextEditor::Property::UNDERLINE, "Underline properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::UNDERLINE ) != std::string("Underline properties"), "Set/Get Property mismatch" );
+
+       // Check the input underline property
+       editor.SetProperty( TextEditor::Property::INPUT_UNDERLINE, "Underline input properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_UNDERLINE ) != std::string("Underline input properties"), "Set/Get Property mismatch" );
+
+       // Check the shadow property
+       editor.SetProperty( TextEditor::Property::SHADOW, "Shadow properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::SHADOW ) != std::string("Shadow properties"), "Set/Get Property mismatch" );
+
+       // Check the input shadow property
+       editor.SetProperty( TextEditor::Property::INPUT_SHADOW, "Shadow input properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_SHADOW ) != std::string("Shadow input properties"), "Set/Get Property mismatch" );
+
+       // Check the emboss property
+       editor.SetProperty( TextEditor::Property::EMBOSS, "Emboss properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::EMBOSS ) != std::string("Emboss properties"), "Set/Get Property mismatch" );
+
+       // Check the input emboss property
+       editor.SetProperty( TextEditor::Property::INPUT_EMBOSS, "Emboss input properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_EMBOSS ) != std::string("Emboss input properties"), "Set/Get Property mismatch" );
+
+       // Check the outline property
+       editor.SetProperty( TextEditor::Property::OUTLINE, "Outline properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::OUTLINE ) != std::string("Outline properties"), "Set/Get Property mismatch" );
+
+       // Check the input outline property
+       editor.SetProperty( TextEditor::Property::INPUT_OUTLINE, "Outline input properties" );
+       DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_OUTLINE ) != std::string("Outline input properties"), "Set/Get Property mismatch" );
+
+       DaliLog::PrintPass();
+}
+
+/**
+ * End of TC Logic Implementation Area.
+ **/
+
+
+
+//& purpose: Initialize, Copy, Assign and downcast a TextEditor  handle.
+//& type: auto
+/**
+* @testcase                    ITcTextEditorBasicOperation
+* @since_tizen                 3.0
+* @type                                Positive
+* @description                 Initialize, Copy, Assign and downcast a TextEditor  handle..
+* @scenario                            Initialize a TextEditor handle and check the instance. \n
+*                                              DownCast the TextLabel handle. \n
+*                                              Check whether the DownCast is done properly along with the properties. \n
+*                                              Check Copy constructor and assignment operator
+* @apicovered                  TextEditor::New(), TextEditor::DownCast(),TextEditor::operator=
+* @passcase                            If successfully initializes and downcasts a TextEditor handle along with set properties.
+* @failcase                            If fails to initialize or downcast a TextEditor handle along with set properties.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcTextEditorBasicOperation(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       
+       Application application = Application::New( &gArgc, &gArgv );
+       TextEditor_TestApp testApp( application, TEXT_EDITOR_BASIC_OPERATION);
+       application.MainLoop(); 
+
+    return test_return_value;
+}
+
+//& purpose: To check the texteditor property index.
+//& type: auto
+/**
+* @testcase                    ITcTextEditorGetPropertyIndex
+* @since_tizen                 3.0
+* @type                                Positive
+* @description                 To check the texteditor property index.
+* @scenario                            Initialize a TextEditor handle with text \n
+*                                              Check the texteditor instance \n
+*                                              Get properties index to texteditor
+* @apicovered                  TextEditor::TextEditor(), TextEditor::New(const string&), TextEditor::GetPropertyIndex()
+* @passcase                            If successfully get texteditor propertie index.
+* @failcase                            If successfully not get texteditor propertie index.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcTextEditorGetPropertyIndex(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       
+       Application application = Application::New( &gArgc, &gArgv );
+       TextEditor_TestApp testApp( application, TEXT_EDITOR_GET_PROPERTY_INDEX );
+       application.MainLoop(); 
+
+    return test_return_value;
+}
+
+//& purpose: To check the property set/get value.
+//& type: auto
+/**
+* @testcase                    ITcTextEditorSetGetProperty
+* @since_tizen                 3.0
+* @type                                Positive
+* @description                 To check the property set/get value..
+* @scenario                            Initialize a TextEditor handle with text \n
+*                                              Check the instance of TextEditor handle \n
+*                                              Set properties to TextEditor \n
+*                                              Get properties to TextEditor and check
+* @apicovered                  TextEditor::New(), TextEditor::SetProperty(), TextEditor::GetProperty()
+* @passcase                            If successfully get properties.
+* @failcase                            If successfully not get properties.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcTextEditorSetGetProperty(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       
+       Application application = Application::New( &gArgc, &gArgv );
+       TextEditor_TestApp testApp( application, TEXT_EDITOR_SET_GET_PROPERTY );
+       application.MainLoop(); 
+
+    return test_return_value;
+}
+
+/** @} */   // end of itc-text-editor-testcases
+/** @} */   // end of itc-text-editor
+/** @} */   // end of itc-dali-toolkit