X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-DepthLayout.cpp;h=90b92f6dc4a1902d6022051cf04acd33292a31f9;hp=9462c284df0a8ea8ce94d91dcc12d00f2d96d8cf;hb=ae0234f649dae770bff1a404de99ab2b5b3bdb54;hpb=47877a348028967d02e77c3b86fe2707bbc7d940 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-DepthLayout.cpp b/automated-tests/src/dali-toolkit/utc-Dali-DepthLayout.cpp index 9462c28..90b92f6 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-DepthLayout.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-DepthLayout.cpp @@ -164,7 +164,7 @@ int UtcDaliDepthLayoutSetAndGetTiltAngle(void) depthLayout->SetTiltAngle(Degree(25.0f)); // Check whether we get the correct tilt angle - DALI_TEST_EQUALS(float(depthLayout->GetTiltAngle()), 25.0f, 0.001f, TEST_LOCATION ); + DALI_TEST_EQUALS(depthLayout->GetTiltAngle(), Degree(25.0f), 0.001f, TEST_LOCATION ); END_TEST; } @@ -209,7 +209,7 @@ int UtcDaliDepthLayoutSetAndGetItemTiltAngle(void) depthLayout->SetItemTiltAngle(Degree(5.0f)); // Check whether we get the correct item's tilt angle - DALI_TEST_EQUALS(float(depthLayout->GetItemTiltAngle()), 5.0f, 0.001f, TEST_LOCATION ); + DALI_TEST_EQUALS(depthLayout->GetItemTiltAngle(), Degree(5.0f), 0.001f, TEST_LOCATION ); END_TEST; } @@ -587,7 +587,7 @@ int UtcDaliDepthLayoutScrollDirection(void) application.Render(); Degree deg = layout->GetScrollDirection(); - DALI_TEST_CHECK(deg == 180.0f); + DALI_TEST_CHECK(deg.degree == 180.0f); navigationLayout->SetOrientation(ControlOrientation::Down); view.ActivateLayout(0, vec, 0.0f); @@ -595,7 +595,7 @@ int UtcDaliDepthLayoutScrollDirection(void) application.Render(); deg = layout->GetScrollDirection(); - DALI_TEST_CHECK((deg == 0.0f)); + DALI_TEST_CHECK((deg.degree == 0.0f)); layout->SetOrientation(ControlOrientation::Left); view.ActivateLayout(0, vec, 0.0f); @@ -603,7 +603,7 @@ int UtcDaliDepthLayoutScrollDirection(void) application.Render(); deg = layout->GetScrollDirection(); - DALI_TEST_CHECK(deg == 270.0f); + DALI_TEST_CHECK(deg.degree == 270.0f); navigationLayout->SetOrientation(ControlOrientation::Right); view.ActivateLayout(0, vec, 0.0f); @@ -611,7 +611,7 @@ int UtcDaliDepthLayoutScrollDirection(void) application.Render(); deg = layout->GetScrollDirection(); - DALI_TEST_CHECK(deg == 90.0f); + DALI_TEST_CHECK(deg.degree == 90.0f); Stage::GetCurrent().Remove(view); END_TEST;