tests: test set for ivi-shell notification in bad condition with helper client
These tests are implemented on test suite framework, which provides helper client. Following features are tested, - add notfication of ivi-surface with bad condition Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
495c6efb7f
commit
0af22d4d77
@@ -1049,3 +1049,25 @@ RUNNER_TEST(surface_remove_notification_p3)
|
|||||||
{
|
{
|
||||||
runner_assert(ctx->user_flags == 0);
|
runner_assert(ctx->user_flags == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
test_surface_bad_properties_changed_notification_callback(struct ivi_layout_surface *ivisurf,
|
||||||
|
const struct ivi_layout_surface_properties *prop,
|
||||||
|
enum ivi_layout_notification_mask mask,
|
||||||
|
void *userdata)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
RUNNER_TEST(surface_bad_properties_changed_notification)
|
||||||
|
{
|
||||||
|
const struct ivi_controller_interface *ctl = ctx->controller_interface;
|
||||||
|
struct ivi_layout_surface *ivisurf;
|
||||||
|
|
||||||
|
ivisurf = ctl->get_surface_from_id(IVI_TEST_SURFACE_ID(0));
|
||||||
|
runner_assert(ivisurf != NULL);
|
||||||
|
|
||||||
|
runner_assert(ctl->surface_add_notification(
|
||||||
|
NULL, test_surface_bad_properties_changed_notification_callback, NULL) == IVI_FAILED);
|
||||||
|
runner_assert(ctl->surface_add_notification(
|
||||||
|
ivisurf, NULL, NULL) == IVI_FAILED);
|
||||||
|
}
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ const char * const basic_test_names[] = {
|
|||||||
"surface_source_rectangle",
|
"surface_source_rectangle",
|
||||||
"surface_bad_opacity",
|
"surface_bad_opacity",
|
||||||
"surface_properties_changed_notification",
|
"surface_properties_changed_notification",
|
||||||
|
"surface_bad_properties_changed_notification",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char * const surface_property_commit_changes_test_names[] = {
|
const char * const surface_property_commit_changes_test_names[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user