From c3aee1f67f09594b4ecb746a9b038ba10aeb0967 Mon Sep 17 00:00:00 2001 From: "Ucan, Emre \\(ADITG/SW1\\)" Date: Fri, 4 Mar 2016 12:50:16 +0000 Subject: ivi-shell: remove ivi_layout_layer_get_opacity API Signed-off-by: Emre Ucan Acked-by: wataru_natsume Reviewed-by: Bryce Harrington --- tests/ivi_layout-internal-test.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c index 1ba53b78..3e31870f 100644 --- a/tests/ivi_layout-internal-test.c +++ b/tests/ivi_layout-internal-test.c @@ -202,18 +202,16 @@ test_layer_opacity(struct test_context *ctx) ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); iassert(ivilayer != NULL); - iassert(lyt->layer_get_opacity(ivilayer) == wl_fixed_from_double(1.0)); + prop = lyt->get_properties_of_layer(ivilayer); + iassert(prop->opacity == wl_fixed_from_double(1.0)); iassert(lyt->layer_set_opacity( ivilayer, wl_fixed_from_double(0.5)) == IVI_SUCCEEDED); - iassert(lyt->layer_get_opacity(ivilayer) == wl_fixed_from_double(1.0)); + iassert(prop->opacity == wl_fixed_from_double(1.0)); lyt->commit_changes(); - iassert(lyt->layer_get_opacity(ivilayer) == wl_fixed_from_double(0.5)); - - prop = lyt->get_properties_of_layer(ivilayer); iassert(prop->opacity == wl_fixed_from_double(0.5)); lyt->layer_destroy(ivilayer); @@ -430,6 +428,7 @@ test_layer_bad_opacity(struct test_context *ctx) { const struct ivi_layout_interface *lyt = ctx->layout_interface; struct ivi_layout_layer *ivilayer; + const struct ivi_layout_layer_properties *prop; ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); iassert(ivilayer != NULL); @@ -445,22 +444,21 @@ test_layer_bad_opacity(struct test_context *ctx) lyt->commit_changes(); - iassert(lyt->layer_get_opacity(ivilayer) == wl_fixed_from_double(0.3)); + prop = lyt->get_properties_of_layer(ivilayer); + iassert(prop->opacity == wl_fixed_from_double(0.3)); iassert(lyt->layer_set_opacity( ivilayer, wl_fixed_from_double(1.1)) == IVI_FAILED); lyt->commit_changes(); - iassert(lyt->layer_get_opacity(ivilayer) == wl_fixed_from_double(0.3)); + iassert(prop->opacity == wl_fixed_from_double(0.3)); iassert(lyt->layer_set_opacity( NULL, wl_fixed_from_double(0.5)) == IVI_FAILED); lyt->commit_changes(); - iassert(lyt->layer_get_opacity(NULL) == wl_fixed_from_double(0.0)); - lyt->layer_destroy(ivilayer); } -- cgit v1.2.3