From: Seoyeon Kim Date: Wed, 11 Oct 2017 02:55:01 +0000 (+0900) Subject: [4.0] Add Property::EXTENTS in automated-tests X-Git-Tag: accepted/tizen/4.0/unified/20171017.212913~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=cf55a8c4bc180f0e1ebf1d4fe0614e38cf12b3b9 [4.0] 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;