(HitTest) Added API to layer so that it can consume all touch if required
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-Layer.cpp
index 23e9ddd..8e9dc56 100644 (file)
@@ -512,3 +512,14 @@ int UtcDaliLayerPropertyIndices(void)
   DALI_TEST_EQUALS( indices.size(), layer.GetPropertyCount(), TEST_LOCATION );
   END_TEST;
 }
+
+int UtcDaliLayerTouchConsumed(void)
+{
+  TestApplication application;
+  Layer layer = Layer::New();
+
+  DALI_TEST_EQUALS( layer.IsTouchConsumed(), false, TEST_LOCATION );
+  layer.SetTouchConsumed( true );
+  DALI_TEST_EQUALS( layer.IsTouchConsumed(), true, TEST_LOCATION );
+  END_TEST;
+}