From: Seoyeon Kim Date: Wed, 11 Oct 2017 02:55:01 +0000 (+0900) Subject: Add Property::EXTENTS in automated-tests X-Git-Tag: dali_1.2.62~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=54cd8fbdc537a84124b6b07a3501643d965c56b7 Add Property::EXTENTS in automated-tests Change-Id: Ic3e7f8dfb58c991efc27d3988d457cf5969af7ae Signed-off-by: Seoyeon Kim --- diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-compare-types.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-compare-types.h index dd6ba24..5870028 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-compare-types.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-compare-types.h @@ -105,6 +105,15 @@ inline bool CompareType(Degree q1, Degree q2, float epsilon) } template <> +inline bool CompareType(Extents extents1, Extents extents2, float epsilon) +{ + return (extents1.start == extents2.start) && + (extents1.end == extents2.end) && + (extents1.top == extents2.top) && + (extents1.bottom == extents2.bottom); +} + +template <> inline bool CompareType(Property::Value q1, Property::Value q2, float epsilon) { Property::Type type = q1.GetType(); @@ -191,6 +200,14 @@ inline bool CompareType(Property::Value q1, Property::Value q2, result = false; break; } + case Property::EXTENTS: + { + Extents a, b; + q1.Get(a); + q2.Get(b); + result = CompareType( a, b, epsilon ); + break; + } case Property::NONE: { result = false;