extern int UtcDaliAnimationAnimateVector3Func(void);
extern int UtcDaliAnimationCreateDestroy(void);
extern int UtcDaliAnimationUpdateManager(void);
+extern int UtcDaliAnimationSignalOrder(void);
extern int UtcDaliAnyConstructors(void);
extern int UtcDaliAnyAssignmentOperators(void);
extern int UtcDaliAnyNegativeAssignmentOperators(void);
extern int UtcDaliPanGestureSetPropertiesAlreadyPanning(void);
extern int UtcDaliPanGesturePropertyIndices(void);
extern int UtcDaliPanGestureLayerConsumesTouch(void);
+extern int UtcDaliPanGestureNoTimeDiff(void);
extern int UtcDaliPinchGestureConstructor(void);
extern int UtcDaliPinchGestureAssignment(void);
extern int UtcDaliPinchGestureDetectorConstructor(void);
extern int UtcDaliPropertyConditionGetArgumentsConst(void);
extern int UtcDaliPropertyNotificationStep(void);
extern int UtcDaliPropertyNotificationVariableStep(void);
+extern int UtcDaliPropertyNotificationOrder(void);
extern int UtcDaliQuaternionCtor01(void);
extern int UtcDaliQuaternionCtor02(void);
extern int UtcDaliQuaternionCtor03(void);
{"UtcDaliAnimationAnimateVector3Func", UtcDaliAnimationAnimateVector3Func, utc_dali_animation_startup, utc_dali_animation_cleanup},
{"UtcDaliAnimationCreateDestroy", UtcDaliAnimationCreateDestroy, utc_dali_animation_startup, utc_dali_animation_cleanup},
{"UtcDaliAnimationUpdateManager", UtcDaliAnimationUpdateManager, utc_dali_animation_startup, utc_dali_animation_cleanup},
+ {"UtcDaliAnimationSignalOrder", UtcDaliAnimationSignalOrder, utc_dali_animation_startup, utc_dali_animation_cleanup},
{"UtcDaliAnyConstructors", UtcDaliAnyConstructors, utc_dali_any_startup, utc_dali_any_cleanup},
{"UtcDaliAnyAssignmentOperators", UtcDaliAnyAssignmentOperators, utc_dali_any_startup, utc_dali_any_cleanup},
{"UtcDaliAnyNegativeAssignmentOperators", UtcDaliAnyNegativeAssignmentOperators, utc_dali_any_startup, utc_dali_any_cleanup},
{"UtcDaliPanGestureSetPropertiesAlreadyPanning", UtcDaliPanGestureSetPropertiesAlreadyPanning, utc_dali_pan_gesture_detector_startup, utc_dali_pan_gesture_detector_cleanup},
{"UtcDaliPanGesturePropertyIndices", UtcDaliPanGesturePropertyIndices, utc_dali_pan_gesture_detector_startup, utc_dali_pan_gesture_detector_cleanup},
{"UtcDaliPanGestureLayerConsumesTouch", UtcDaliPanGestureLayerConsumesTouch, utc_dali_pan_gesture_detector_startup, utc_dali_pan_gesture_detector_cleanup},
+ {"UtcDaliPanGestureNoTimeDiff", UtcDaliPanGestureNoTimeDiff, utc_dali_pan_gesture_detector_startup, utc_dali_pan_gesture_detector_cleanup},
{"UtcDaliPinchGestureConstructor", UtcDaliPinchGestureConstructor, utc_dali_pinch_gesture_startup, utc_dali_pinch_gesture_cleanup},
{"UtcDaliPinchGestureAssignment", UtcDaliPinchGestureAssignment, utc_dali_pinch_gesture_startup, utc_dali_pinch_gesture_cleanup},
{"UtcDaliPinchGestureDetectorConstructor", UtcDaliPinchGestureDetectorConstructor, utc_dali_pinch_gesture_detector_startup, utc_dali_pinch_gesture_detector_cleanup},
{"UtcDaliPropertyConditionGetArgumentsConst", UtcDaliPropertyConditionGetArgumentsConst, utc_dali_property_notification_startup, utc_dali_property_notification_cleanup},
{"UtcDaliPropertyNotificationStep", UtcDaliPropertyNotificationStep, utc_dali_property_notification_startup, utc_dali_property_notification_cleanup},
{"UtcDaliPropertyNotificationVariableStep", UtcDaliPropertyNotificationVariableStep, utc_dali_property_notification_startup, utc_dali_property_notification_cleanup},
+ {"UtcDaliPropertyNotificationOrder", UtcDaliPropertyNotificationOrder, utc_dali_property_notification_startup, utc_dali_property_notification_cleanup},
{"UtcDaliQuaternionCtor01", UtcDaliQuaternionCtor01, utc_dali_quaternion_startup, utc_dali_quaternion_cleanup},
{"UtcDaliQuaternionCtor02", UtcDaliQuaternionCtor02, utc_dali_quaternion_startup, utc_dali_quaternion_cleanup},
{"UtcDaliQuaternionCtor03", UtcDaliQuaternionCtor03, utc_dali_quaternion_startup, utc_dali_quaternion_cleanup},
#include <iostream>
#include <stdlib.h>
+#include <cmath>
#include <dali/dali.h>
#include <dali/integration-api/events/touch-event-integ.h>
#include <dali/integration-api/events/pan-gesture-event.h>
END_TEST;
}
+
+int UtcDaliPanGestureNoTimeDiff(void)
+{
+ TestApplication application;
+
+ Actor actor = Actor::New();
+ actor.SetSize(100.0f, 100.0f);
+ actor.SetAnchorPoint(AnchorPoint::TOP_LEFT);
+ Stage::GetCurrent().Add(actor);
+
+ // Add a pan detector
+ PanGestureDetector detector = PanGestureDetector::New();
+ detector.Attach( actor );
+ SignalData data;
+ GestureReceivedFunctor functor( data );
+ detector.DetectedSignal().Connect( &application, functor );
+
+ // Render and notify
+ application.SendNotification();
+ application.Render();
+
+ // Emit signals, should receive
+ application.ProcessEvent(GeneratePan(Gesture::Possible, Vector2(10.0f, 20.0f), Vector2(20.0f, 20.0f), 0));
+ application.ProcessEvent(GeneratePan(Gesture::Started, Vector2(10.0f, 20.0f), Vector2(20.0f, 20.0f), 0));
+ application.ProcessEvent(GeneratePan(Gesture::Finished, Vector2(10.0f, 20.0f), Vector2(20.0f, 20.0f), 0));
+ DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
+ DALI_TEST_CHECK( !std::isinf( data.receivedGesture.velocity.x ) );
+ DALI_TEST_CHECK( !std::isinf( data.receivedGesture.velocity.y ) );
+ DALI_TEST_CHECK( !std::isinf( data.receivedGesture.screenVelocity.x ) );
+ DALI_TEST_CHECK( !std::isinf( data.receivedGesture.screenVelocity.y ) );
+ data.Reset();
+
+ data.Reset();
+
+ END_TEST;
+}