Fixed test case to match new CameraActor defaults 18/24818/2
authorPaul Wisbey <p.wisbey@samsung.com>
Tue, 22 Jul 2014 16:45:04 +0000 (17:45 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 23 Jul 2014 08:48:51 +0000 (01:48 -0700)
Change-Id: I314128ca0d27d66045b5e3108973cfdfe50949ba
Signed-off-by: Paul Wisbey <p.wisbey@samsung.com>
automated-tests/src/dali/utc-Dali-CameraActor.cpp

index 6ef4cb8..ed304f3 100644 (file)
@@ -350,14 +350,14 @@ int UtcDaliCameraActorSetType01(void)
   tet_infoline("Testing Dali::CameraActor Get/Set Type");
 
   CameraActor actor = CameraActor::New();
-  DALI_TEST_EQUALS( actor.GetType(), Dali::Camera::LOOK_AT_TARGET, TEST_LOCATION );
-
-  actor.SetType(Dali::Camera::FREE_LOOK);
   DALI_TEST_EQUALS( actor.GetType(), Dali::Camera::FREE_LOOK, TEST_LOCATION );
 
+  actor.SetType(Dali::Camera::LOOK_AT_TARGET);
+  DALI_TEST_EQUALS( actor.GetType(), Dali::Camera::LOOK_AT_TARGET, TEST_LOCATION );
+
   std::string sValue;
   actor.GetProperty(CameraActor::TYPE).Get(sValue);
-  std::string result("FREE_LOOK");
+  std::string result("LOOK_AT_TARGET");
   DALI_TEST_EQUALS(result, sValue, TEST_LOCATION);
   END_TEST;
 }