X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fdali-test-suite%2Fshader-effects%2Futc-Dali-BendyEffect.cpp;h=7823b8fa3090dcac47440f34b2861a84f76ff9cd;hp=7e94e9310254afe1dad1bcd9b6ac8bbf859da7c2;hb=b7b9baff133e230a9d7aa1f17f6fe58fa1d60a21;hpb=6c086a794de2870eb8e186b9f5ef3cfeff445cfe;ds=sidebyside diff --git a/automated-tests/dali-test-suite/shader-effects/utc-Dali-BendyEffect.cpp b/automated-tests/dali-test-suite/shader-effects/utc-Dali-BendyEffect.cpp index 7e94e93..7823b8f 100644 --- a/automated-tests/dali-test-suite/shader-effects/utc-Dali-BendyEffect.cpp +++ b/automated-tests/dali-test-suite/shader-effects/utc-Dali-BendyEffect.cpp @@ -130,14 +130,14 @@ static void UtcDaliBendyDefaultValuesEffect() application.SendNotification(); application.Render(); - Vector2 leftCorner( Stage::GetCurrent().GetSize() * 0.5f ); - leftCorner.x = -leftCorner.x; + Vector2 topLeft( Stage::GetCurrent().GetSize() * 0.5f ); + topLeft.y = -topLeft.y; - // Gets converted to opengl viewport coordinates + // Gets converted to opengl view space DALI_TEST_CHECK( application.GetGlAbstraction().CheckUniformValue( effect.GetCenterPropertyName().c_str(), - leftCorner ) ); + topLeft ) ); DALI_TEST_CHECK( application.GetGlAbstraction().CheckUniformValue( @@ -173,14 +173,17 @@ static void UtcDaliBendyCustomValuesEffect() application.SendNotification(); application.Render(); + Vector2 bottomRight( Stage::GetCurrent().GetSize() * 0.5f ); + bottomRight.x = -bottomRight.x; + // Gets converted to opengl viewport coordinates DALI_TEST_CHECK( application.GetGlAbstraction().CheckUniformValue( effect.GetCenterPropertyName().c_str(), - Vector2(240.0f, -400.0f) ) ); + bottomRight ) ); direction.Normalize(); - direction.y *= -1.0f; + direction.x *= -1.0f; DALI_TEST_CHECK( application.GetGlAbstraction().CheckUniformValue( effect.GetDirectionPropertyName().c_str(),