summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUcan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com>2016-03-04 12:50:12 +0000
committerBryce Harrington <bryce@osg.samsung.com>2016-03-04 10:33:34 -0800
commit995e6fbcd0f2d42c0e11b8f9d7f3976db69beefd (patch)
tree7ab315c73dc89706315c3061bb06685f11846fe7 /tests
parent17610f240b416aadd694405e34c36e36ea853042 (diff)
downloadweston-995e6fbcd0f2d42c0e11b8f9d7f3976db69beefd.tar.gz
ivi-shell: remove ivi_layout_surface_get_opacity API
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ivi_layout-test-plugin.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/tests/ivi_layout-test-plugin.c b/tests/ivi_layout-test-plugin.c
index e7bcee97..db6155b0 100644
--- a/tests/ivi_layout-test-plugin.c
+++ b/tests/ivi_layout-test-plugin.c
@@ -375,27 +375,21 @@ RUNNER_TEST(surface_opacity)
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_surface *ivisurf;
int32_t ret;
- wl_fixed_t opacity;
const struct ivi_layout_surface_properties *prop;
ivisurf = lyt->get_surface_from_id(IVI_TEST_SURFACE_ID(0));
runner_assert(ivisurf);
- runner_assert(lyt->surface_get_opacity(ivisurf) ==
- wl_fixed_from_double(1.0));
+ prop = lyt->get_properties_of_surface(ivisurf);
+ runner_assert(prop->opacity == wl_fixed_from_double(1.0));
ret = lyt->surface_set_opacity(ivisurf, wl_fixed_from_double(0.5));
runner_assert(ret == IVI_SUCCEEDED);
- runner_assert(lyt->surface_get_opacity(ivisurf) ==
- wl_fixed_from_double(1.0));
+ runner_assert(prop->opacity == wl_fixed_from_double(1.0));
lyt->commit_changes();
- opacity = lyt->surface_get_opacity(ivisurf);
- runner_assert(opacity == wl_fixed_from_double(0.5));
-
- prop = lyt->get_properties_of_surface(ivisurf);
runner_assert(prop->opacity == wl_fixed_from_double(0.5));
}
@@ -590,7 +584,7 @@ RUNNER_TEST(surface_bad_opacity)
{
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_surface *ivisurf;
- wl_fixed_t opacity;
+ const struct ivi_layout_surface_properties *prop;
ivisurf = lyt->get_surface_from_id(IVI_TEST_SURFACE_ID(0));
runner_assert(ivisurf != NULL);
@@ -606,24 +600,20 @@ RUNNER_TEST(surface_bad_opacity)
lyt->commit_changes();
- opacity = lyt->surface_get_opacity(ivisurf);
- runner_assert(opacity == wl_fixed_from_double(0.3));
+ prop = lyt->get_properties_of_surface(ivisurf);
+ runner_assert(prop->opacity == wl_fixed_from_double(0.3));
runner_assert(lyt->surface_set_opacity(
ivisurf, wl_fixed_from_double(1.1)) == IVI_FAILED);
lyt->commit_changes();
- opacity = lyt->surface_get_opacity(ivisurf);
- runner_assert(opacity == wl_fixed_from_double(0.3));
+ runner_assert(prop->opacity == wl_fixed_from_double(0.3));
runner_assert(lyt->surface_set_opacity(
NULL, wl_fixed_from_double(0.5)) == IVI_FAILED);
lyt->commit_changes();
-
- opacity = lyt->surface_get_opacity(NULL);
- runner_assert(opacity == wl_fixed_from_double(0.0));
}
RUNNER_TEST(ivi_layout_commit_changes)