summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUcan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com>2016-03-04 12:50:16 +0000
committerBryce Harrington <bryce@osg.samsung.com>2016-03-04 10:33:34 -0800
commitc3aee1f67f09594b4ecb746a9b038ba10aeb0967 (patch)
tree6e60c6ae099e69edfc2441ddf44dab3fdade2c37 /tests
parent995e6fbcd0f2d42c0e11b8f9d7f3976db69beefd (diff)
ivi-shell: remove ivi_layout_layer_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-internal-test.c16
1 files changed, 7 insertions, 9 deletions
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);
}