Fixed size-related popup test case 87/115187/1
authorRichard Huang <r.huang@samsung.com>
Thu, 16 Feb 2017 16:20:52 +0000 (16:20 +0000)
committerRichard Huang <r.huang@samsung.com>
Thu, 16 Feb 2017 16:20:52 +0000 (16:20 +0000)
Previously Popup didn't have correct relayout size in contextual mode.
After the following size-related fix in dali-core, it gets the correct
size, but the original test case used hard-coded values based on the
wrong relayout size.

https://review.tizen.org/gerrit/#/c/113462

Change-Id: I08599d70465673afb7b0d42b29735144b155a037

automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp

index 6bd2c05..cd38bc3 100644 (file)
@@ -916,11 +916,11 @@ int UtcDaliPopupPropertyContextualMode(void)
   // Test all contextual modes.
   const char* mode[5] = { "NON_CONTEXTUAL", "ABOVE", "RIGHT", "BELOW", "LEFT" };
   Vector2 offsetValues[5];
-  offsetValues[0] = Vector2( 0.0f, 0.0f );
-  offsetValues[1] = Vector2( 0.0f, -10.0f );
-  offsetValues[2] = Vector2( 10.0f, 0.0f );
-  offsetValues[3] = Vector2( 0.0f, 10.0f );
-  offsetValues[4] = Vector2( -10.0f, 0.0f );
+  offsetValues[0] = Vector2( 0.375f, 0.0f );
+  offsetValues[1] = Vector2( -0.125f, -10.5f );
+  offsetValues[2] = Vector2( 10.875f, -0.5f );
+  offsetValues[3] = Vector2( -0.125f, 10.5f );
+  offsetValues[4] = Vector2( -10.875f, -0.5f );
 
   for( int i = 0; i < 5; ++i )
   {