From: hyungsun.ryu Date: Tue, 29 Aug 2017 06:36:28 +0000 (+0900) Subject: [UTC][webkit2][ACR-1056][Add new public APIs to control options about multimedia] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca437e820dba72cf57f369145b5cb24964172a3d;p=test%2Ftct%2Fnative%2Fapi.git [UTC][webkit2][ACR-1056][Add new public APIs to control options about multimedia] Change-Id: If486d47401211c3fa0bfc5654e979dc5254177fd Signed-off-by: hyungsun.ryu --- diff --git a/src/utc/webkit2/CMakeLists.txt b/src/utc/webkit2/CMakeLists.txt index 3ae9044..f75c784 100755 --- a/src/utc/webkit2/CMakeLists.txt +++ b/src/utc/webkit2/CMakeLists.txt @@ -25,6 +25,10 @@ SET(TC_SOURCES utc_webkit2_ewk_back_forward_list_next_item_get_func.c utc_webkit2_ewk_back_forward_list_previous_item_get_func.c utc_webkit2_ewk_context_application_cache_delete_all_func.c + utc_webkit2_ewk_context_background_music_get_func.c + utc_webkit2_ewk_context_background_music_set_func.c + utc_webkit2_ewk_context_block_multimedia_on_call_get_func.c + utc_webkit2_ewk_context_block_multimedia_on_call_set_func.c utc_webkit2_ewk_context_cache_model_get_func.c utc_webkit2_ewk_context_cache_model_set_func.c utc_webkit2_ewk_context_cookie_manager_get_func.c @@ -46,6 +50,10 @@ SET(TC_SOURCES utc_webkit2_ewk_context_menu_item_tag_get_func.c utc_webkit2_ewk_context_menu_nth_item_get_func.c utc_webkit2_ewk_context_resource_cache_clear_func.c + utc_webkit2_ewk_context_rotation_lock_get_func.c + utc_webkit2_ewk_context_rotation_lock_set_func.c + utc_webkit2_ewk_context_sound_overlap_get_func.c + utc_webkit2_ewk_context_sound_overlap_set_func.c utc_webkit2_ewk_context_web_indexed_database_delete_all_func.c utc_webkit2_ewk_context_web_storage_delete_all_func.c utc_webkit2_ewk_cookie_manager_accept_policy_async_get_func.c @@ -298,6 +306,10 @@ SET(TC_SOURCES utc_webkit2_ewk_back_forward_list_n_forward_items_copy_func.c utc_webkit2_ewk_back_forward_list_next_item_get_func.c utc_webkit2_ewk_back_forward_list_previous_item_get_func.c + utc_webkit2_ewk_context_background_music_get_func.c + utc_webkit2_ewk_context_background_music_set_func.c + utc_webkit2_ewk_context_block_multimedia_on_call_get_func.c + utc_webkit2_ewk_context_block_multimedia_on_call_set_func.c utc_webkit2_ewk_context_cache_model_get_func.c utc_webkit2_ewk_context_cache_model_set_func.c utc_webkit2_ewk_context_cookie_manager_get_func.c @@ -307,6 +319,10 @@ SET(TC_SOURCES utc_webkit2_ewk_context_menu_item_tag_get_func.c utc_webkit2_ewk_context_menu_nth_item_get_func.c utc_webkit2_ewk_context_resource_cache_clear_func.c + utc_webkit2_ewk_context_rotation_lock_get_func.c + utc_webkit2_ewk_context_rotation_lock_set_func.c + utc_webkit2_ewk_context_sound_overlap_get_func.c + utc_webkit2_ewk_context_sound_overlap_set_func.c utc_webkit2_ewk_cookie_manager_accept_policy_async_get_func.c utc_webkit2_ewk_cookie_manager_accept_policy_set_func.c utc_webkit2_ewk_cookie_manager_cookies_clear_func.c diff --git a/src/utc/webkit2/tct-webkit2-core_mobile.h b/src/utc/webkit2/tct-webkit2-core_mobile.h index 06f2311..de2e642 100755 --- a/src/utc/webkit2/tct-webkit2-core_mobile.h +++ b/src/utc/webkit2/tct-webkit2-core_mobile.h @@ -55,6 +55,14 @@ extern void utc_webkit2_ewk_back_forward_list_previous_item_get_func_startup(voi extern void utc_webkit2_ewk_back_forward_list_previous_item_get_func_cleanup(void); extern void utc_webkit2_ewk_context_application_cache_delete_all_func_startup(void); extern void utc_webkit2_ewk_context_application_cache_delete_all_func_cleanup(void); +extern void utc_webkit2_ewk_context_background_music_get_func_startup(void); +extern void utc_webkit2_ewk_context_background_music_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_background_music_set_func_startup(void); +extern void utc_webkit2_ewk_context_background_music_set_func_cleanup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_startup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_startup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_cleanup(void); extern void utc_webkit2_ewk_context_cache_model_get_func_startup(void); extern void utc_webkit2_ewk_context_cache_model_get_func_cleanup(void); extern void utc_webkit2_ewk_context_cache_model_set_func_startup(void); @@ -97,6 +105,14 @@ extern void utc_webkit2_ewk_context_menu_nth_item_get_func_startup(void); extern void utc_webkit2_ewk_context_menu_nth_item_get_func_cleanup(void); extern void utc_webkit2_ewk_context_resource_cache_clear_func_startup(void); extern void utc_webkit2_ewk_context_resource_cache_clear_func_cleanup(void); +extern void utc_webkit2_ewk_context_rotation_lock_get_func_startup(void); +extern void utc_webkit2_ewk_context_rotation_lock_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_rotation_lock_set_func_startup(void); +extern void utc_webkit2_ewk_context_rotation_lock_set_func_cleanup(void); +extern void utc_webkit2_ewk_context_sound_overlap_get_func_startup(void); +extern void utc_webkit2_ewk_context_sound_overlap_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_sound_overlap_set_func_startup(void); +extern void utc_webkit2_ewk_context_sound_overlap_set_func_cleanup(void); extern void utc_webkit2_ewk_context_web_indexed_database_delete_all_func_startup(void); extern void utc_webkit2_ewk_context_web_indexed_database_delete_all_func_cleanup(void); extern void utc_webkit2_ewk_context_web_storage_delete_all_func_startup(void); @@ -357,6 +373,22 @@ extern int utc_webkit2_ewk_back_forward_list_previous_item_get_p(void); extern int utc_webkit2_ewk_back_forward_list_previous_item_get_n(void); extern int utc_webkit2_ewk_context_application_cache_delete_all_p(void); extern int utc_webkit2_ewk_context_application_cache_delete_all_n(void); +extern int utc_webkit2_ewk_context_background_music_get_p(void); +extern int utc_webkit2_ewk_context_background_music_get_p1(void); +extern int utc_webkit2_ewk_context_background_music_get_n(void); +extern int utc_webkit2_ewk_context_background_music_get_n1(void); +extern int utc_webkit2_ewk_context_background_music_set_p(void); +extern int utc_webkit2_ewk_context_background_music_set_p1(void); +extern int utc_webkit2_ewk_context_background_music_set_n(void); +extern int utc_webkit2_ewk_context_background_music_set_n1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_p(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_p1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_n(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_n1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_p(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_p1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_n(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_n1(void); extern int utc_webkit2_ewk_context_cache_model_get_p(void); extern int utc_webkit2_ewk_context_cache_model_get_p1(void); extern int utc_webkit2_ewk_context_cache_model_get_p2(void); @@ -400,6 +432,22 @@ extern int utc_webkit2_ewk_context_menu_item_tag_get_n(void); extern int utc_webkit2_ewk_context_menu_nth_item_get_n(void); extern int utc_webkit2_ewk_context_resource_cache_clear_p(void); extern int utc_webkit2_ewk_context_resource_cache_clear_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_p(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_p1(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_n1(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_p(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_p1(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_n1(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_p(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_p1(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_n(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_n1(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_p(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_p1(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_n(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_n1(void); extern int utc_webkit2_ewk_context_web_indexed_database_delete_all_p(void); extern int utc_webkit2_ewk_context_web_indexed_database_delete_all_n(void); extern int utc_webkit2_ewk_context_web_storage_delete_all_p(void); @@ -686,6 +734,14 @@ testcase tc_array[] = { {"utc_webkit2_ewk_back_forward_list_previous_item_get_n",utc_webkit2_ewk_back_forward_list_previous_item_get_n,utc_webkit2_ewk_back_forward_list_previous_item_get_func_startup,utc_webkit2_ewk_back_forward_list_previous_item_get_func_cleanup}, {"utc_webkit2_ewk_context_application_cache_delete_all_p",utc_webkit2_ewk_context_application_cache_delete_all_p,utc_webkit2_ewk_context_application_cache_delete_all_func_startup,utc_webkit2_ewk_context_application_cache_delete_all_func_cleanup}, {"utc_webkit2_ewk_context_application_cache_delete_all_n",utc_webkit2_ewk_context_application_cache_delete_all_n,utc_webkit2_ewk_context_application_cache_delete_all_func_startup,utc_webkit2_ewk_context_application_cache_delete_all_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_p",utc_webkit2_ewk_background_music_get_p,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_p1",utc_webkit2_ewk_background_music_get_p1,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_n",utc_webkit2_ewk_background_music_get_n,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_n1",utc_webkit2_ewk_background_music_get_n1,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_p",utc_webkit2_ewk_block_multimedia_on_call_get_p,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_p1",utc_webkit2_ewk_block_multimedia_on_call_get_p1,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_n",utc_webkit2_ewk_block_multimedia_on_call_get_n,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_n1",utc_webkit2_ewk_block_multimedia_on_call_get_n1,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p",utc_webkit2_ewk_context_cache_model_get_p,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p1",utc_webkit2_ewk_context_cache_model_get_p1,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p2",utc_webkit2_ewk_context_cache_model_get_p2,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, @@ -729,6 +785,13 @@ testcase tc_array[] = { {"utc_webkit2_ewk_context_menu_nth_item_get_n",utc_webkit2_ewk_context_menu_nth_item_get_n,utc_webkit2_ewk_context_menu_nth_item_get_func_startup,utc_webkit2_ewk_context_menu_nth_item_get_func_cleanup}, {"utc_webkit2_ewk_context_resource_cache_clear_p",utc_webkit2_ewk_context_resource_cache_clear_p,utc_webkit2_ewk_context_resource_cache_clear_func_startup,utc_webkit2_ewk_context_resource_cache_clear_func_cleanup}, {"utc_webkit2_ewk_context_resource_cache_clear_n",utc_webkit2_ewk_context_resource_cache_clear_n,utc_webkit2_ewk_context_resource_cache_clear_func_startup,utc_webkit2_ewk_context_resource_cache_clear_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_p1",utc_webkit2_ewk_rotation_lock_get_p1,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_n",utc_webkit2_ewk_rotation_lock_get_n,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_n1",utc_webkit2_ewk_rotation_lock_get_n1,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_p",utc_webkit2_ewk_sound_overlap_get_p,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_p1",utc_webkit2_ewk_sound_overlap_get_p1,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_n",utc_webkit2_ewk_sound_overlap_get_n,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_n1",utc_webkit2_ewk_sound_overlap_get_n1,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, {"utc_webkit2_ewk_context_web_indexed_database_delete_all_p",utc_webkit2_ewk_context_web_indexed_database_delete_all_p,utc_webkit2_ewk_context_web_indexed_database_delete_all_func_startup,utc_webkit2_ewk_context_web_indexed_database_delete_all_func_cleanup}, {"utc_webkit2_ewk_context_web_indexed_database_delete_all_n",utc_webkit2_ewk_context_web_indexed_database_delete_all_n,utc_webkit2_ewk_context_web_indexed_database_delete_all_func_startup,utc_webkit2_ewk_context_web_indexed_database_delete_all_func_cleanup}, {"utc_webkit2_ewk_context_web_storage_delete_all_p",utc_webkit2_ewk_context_web_storage_delete_all_p,utc_webkit2_ewk_context_web_storage_delete_all_func_startup,utc_webkit2_ewk_context_web_storage_delete_all_func_cleanup}, diff --git a/src/utc/webkit2/tct-webkit2-core_wearable.h b/src/utc/webkit2/tct-webkit2-core_wearable.h index 44d8a0c..43ff7c6 100755 --- a/src/utc/webkit2/tct-webkit2-core_wearable.h +++ b/src/utc/webkit2/tct-webkit2-core_wearable.h @@ -43,6 +43,14 @@ extern void utc_webkit2_ewk_back_forward_list_next_item_get_func_startup(void); extern void utc_webkit2_ewk_back_forward_list_next_item_get_func_cleanup(void); extern void utc_webkit2_ewk_back_forward_list_previous_item_get_func_startup(void); extern void utc_webkit2_ewk_back_forward_list_previous_item_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_background_music_get_func_startup(void); +extern void utc_webkit2_ewk_context_background_music_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_background_music_set_func_startup(void); +extern void utc_webkit2_ewk_context_background_music_set_func_cleanup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_startup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_startup(void); +extern void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_cleanup(void); extern void utc_webkit2_ewk_context_cache_model_get_func_startup(void); extern void utc_webkit2_ewk_context_cache_model_get_func_cleanup(void); extern void utc_webkit2_ewk_context_cache_model_set_func_startup(void); @@ -61,6 +69,14 @@ extern void utc_webkit2_ewk_context_menu_nth_item_get_func_startup(void); extern void utc_webkit2_ewk_context_menu_nth_item_get_func_cleanup(void); extern void utc_webkit2_ewk_context_resource_cache_clear_func_startup(void); extern void utc_webkit2_ewk_context_resource_cache_clear_func_cleanup(void); +extern void utc_webkit2_ewk_context_rotation_lock_get_func_startup(void); +extern void utc_webkit2_ewk_context_rotation_lock_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_rotation_lock_set_func_startup(void); +extern void utc_webkit2_ewk_context_rotation_lock_set_func_cleanup(void); +extern void utc_webkit2_ewk_context_sound_overlap_get_func_startup(void); +extern void utc_webkit2_ewk_context_sound_overlap_get_func_cleanup(void); +extern void utc_webkit2_ewk_context_sound_overlap_set_func_startup(void); +extern void utc_webkit2_ewk_context_sound_overlap_set_func_cleanup(void); extern void utc_webkit2_ewk_cookie_manager_accept_policy_async_get_startup(void); extern void utc_webkit2_ewk_cookie_manager_accept_policy_async_get_cleanup(void); extern void utc_webkit2_ewk_cookie_manager_accept_policy_set_startup(void); @@ -280,6 +296,22 @@ extern int utc_webkit2_ewk_back_forward_list_next_item_get_p(void); extern int utc_webkit2_ewk_back_forward_list_next_item_get_n(void); extern int utc_webkit2_ewk_back_forward_list_previous_item_get_p(void); extern int utc_webkit2_ewk_back_forward_list_previous_item_get_n(void); +extern int utc_webkit2_ewk_context_background_music_get_p(void); +extern int utc_webkit2_ewk_context_background_music_get_p1(void); +extern int utc_webkit2_ewk_context_background_music_get_n(void); +extern int utc_webkit2_ewk_context_background_music_get_n1(void); +extern int utc_webkit2_ewk_context_background_music_set_p(void); +extern int utc_webkit2_ewk_context_background_music_set_p1(void); +extern int utc_webkit2_ewk_context_background_music_set_n(void); +extern int utc_webkit2_ewk_context_background_music_set_n1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_p(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_p1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_n(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_get_n1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_p(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_p1(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_n(void); +extern int utc_webkit2_ewk_context_block_multimedia_on_call_set_n1(void); extern int utc_webkit2_ewk_context_cache_model_get_p(void); extern int utc_webkit2_ewk_context_cache_model_get_p1(void); extern int utc_webkit2_ewk_context_cache_model_get_p2(void); @@ -303,6 +335,22 @@ extern int utc_webkit2_ewk_context_menu_item_tag_get_n(void); extern int utc_webkit2_ewk_context_menu_nth_item_get_n(void); extern int utc_webkit2_ewk_context_resource_cache_clear_p(void); extern int utc_webkit2_ewk_context_resource_cache_clear_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_p(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_p1(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_get_n1(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_p(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_p1(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_n(void); +extern int utc_webkit2_ewk_context_rotation_lock_set_n1(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_p(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_p1(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_n(void); +extern int utc_webkit2_ewk_context_sound_overlap_get_n1(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_p(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_p1(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_n(void); +extern int utc_webkit2_ewk_context_sound_overlap_set_n1(void); extern int utc_webkit2_ewk_cookie_manager_accept_policy_async_get_p(void); extern int utc_webkit2_ewk_cookie_manager_accept_policy_async_get_n(void); extern int utc_webkit2_ewk_cookie_manager_accept_policy_set_p(void); @@ -545,6 +593,14 @@ testcase tc_array[] = { {"utc_webkit2_ewk_back_forward_list_next_item_get_n",utc_webkit2_ewk_back_forward_list_next_item_get_n,utc_webkit2_ewk_back_forward_list_next_item_get_func_startup,utc_webkit2_ewk_back_forward_list_next_item_get_func_cleanup}, {"utc_webkit2_ewk_back_forward_list_previous_item_get_p",utc_webkit2_ewk_back_forward_list_previous_item_get_p,utc_webkit2_ewk_back_forward_list_previous_item_get_func_startup,utc_webkit2_ewk_back_forward_list_previous_item_get_func_cleanup}, {"utc_webkit2_ewk_back_forward_list_previous_item_get_n",utc_webkit2_ewk_back_forward_list_previous_item_get_n,utc_webkit2_ewk_back_forward_list_previous_item_get_func_startup,utc_webkit2_ewk_back_forward_list_previous_item_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_p",utc_webkit2_ewk_background_music_get_p,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_p1",utc_webkit2_ewk_background_music_get_p1,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_n",utc_webkit2_ewk_background_music_get_n,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_background_music_get_n1",utc_webkit2_ewk_background_music_get_n1,utc_webkit2_ewk_background_music_get_func_startup,utc_webkit2_ewk_background_music_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_p",utc_webkit2_ewk_block_multimedia_on_call_get_p,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_p1",utc_webkit2_ewk_block_multimedia_on_call_get_p1,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_n",utc_webkit2_ewk_block_multimedia_on_call_get_n,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, + {"utc_webkit2_ewk_context_block_multimedia_on_call_get_n1",utc_webkit2_ewk_block_multimedia_on_call_get_n1,utc_webkit2_ewk_block_multimedia_on_call_get_func_startup,utc_webkit2_ewk_block_multimedia_on_call_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p",utc_webkit2_ewk_context_cache_model_get_p,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p1",utc_webkit2_ewk_context_cache_model_get_p1,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, {"utc_webkit2_ewk_context_cache_model_get_p2",utc_webkit2_ewk_context_cache_model_get_p2,utc_webkit2_ewk_context_cache_model_get_func_startup,utc_webkit2_ewk_context_cache_model_get_func_cleanup}, @@ -568,6 +624,14 @@ testcase tc_array[] = { {"utc_webkit2_ewk_context_menu_nth_item_get_n",utc_webkit2_ewk_context_menu_nth_item_get_n,utc_webkit2_ewk_context_menu_nth_item_get_func_startup,utc_webkit2_ewk_context_menu_nth_item_get_func_cleanup}, {"utc_webkit2_ewk_context_resource_cache_clear_p",utc_webkit2_ewk_context_resource_cache_clear_p,utc_webkit2_ewk_context_resource_cache_clear_func_startup,utc_webkit2_ewk_context_resource_cache_clear_func_cleanup}, {"utc_webkit2_ewk_context_resource_cache_clear_n",utc_webkit2_ewk_context_resource_cache_clear_n,utc_webkit2_ewk_context_resource_cache_clear_func_startup,utc_webkit2_ewk_context_resource_cache_clear_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_p",utc_webkit2_ewk_rotation_lock_get_p,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_p1",utc_webkit2_ewk_rotation_lock_get_p1,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_n",utc_webkit2_ewk_rotation_lock_get_n,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_rotation_lock_get_n1",utc_webkit2_ewk_rotation_lock_get_n1,utc_webkit2_ewk_rotation_lock_get_func_startup,utc_webkit2_ewk_rotation_lock_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_p",utc_webkit2_ewk_sound_overlap_get_p,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_p1",utc_webkit2_ewk_sound_overlap_get_p1,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_n",utc_webkit2_ewk_sound_overlap_get_n,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, + {"utc_webkit2_ewk_context_sound_overlap_get_n1",utc_webkit2_ewk_sound_overlap_get_n1,utc_webkit2_ewk_sound_overlap_get_func_startup,utc_webkit2_ewk_sound_overlap_get_func_cleanup}, {"utc_webkit2_ewk_cookie_manager_accept_policy_async_get_p",utc_webkit2_ewk_cookie_manager_accept_policy_async_get_p,utc_webkit2_ewk_cookie_manager_accept_policy_async_get_startup,utc_webkit2_ewk_cookie_manager_accept_policy_async_get_cleanup}, {"utc_webkit2_ewk_cookie_manager_accept_policy_async_get_n",utc_webkit2_ewk_cookie_manager_accept_policy_async_get_n,utc_webkit2_ewk_cookie_manager_accept_policy_async_get_startup,utc_webkit2_ewk_cookie_manager_accept_policy_async_get_cleanup}, {"utc_webkit2_ewk_cookie_manager_accept_policy_set_p",utc_webkit2_ewk_cookie_manager_accept_policy_set_p,utc_webkit2_ewk_cookie_manager_accept_policy_set_startup,utc_webkit2_ewk_cookie_manager_accept_policy_set_cleanup}, diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_background_music_get_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_background_music_get_func.c new file mode 100755 index 0000000..ea77d0c --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_background_music_get_func.c @@ -0,0 +1,101 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_background_music_get_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_background_music_get_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_background_music_get_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_background_music_get_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_get_p + * @since_tizen 4.0 + * @description Checking whether cache model is returned to EINA_TRUE. + * @scenario Call ewk_context_background_music_set to set\n + * Call ewk_context_background_music_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_background_music_get_p(void) +{ + Eina_Bool result = ewk_context_background_music_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_neq(result, 0); + assert_eq(ewk_context_background_music_get(ewk_view_context_get(test_view.webview)), EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_get_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is returned to EINA_FALSE. + * @scenario Call ewk_context_background_music_set to set\n + * Call ewk_context_background_music_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_background_music_get_p1(void) +{ + Eina_Bool result = ewk_context_background_music_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_neq(result, 0); + assert_eq(ewk_context_background_music_get(ewk_view_context_get(test_view.webview)), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_get_n + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_background_music_get_n(void) +{ + Eina_Bool result = ewk_context_background_music_set(NULL, EINA_TRUE); + assert_eq(result, 0); + assert_eq(ewk_context_background_music_get(NULL), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_get_n1 + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_background_music_get_n1(void) +{ + Eina_Bool result = ewk_context_background_music_set(NULL, EINA_FALSE); + assert_eq(result, 0); + assert_eq(ewk_context_background_music_get(NULL), EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_background_music_set_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_background_music_set_func.c new file mode 100755 index 0000000..1059e94 --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_background_music_set_func.c @@ -0,0 +1,98 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_background_music_set_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_background_music_set_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_background_music_set_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_background_music_set_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_set_p + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_TRUE. + * @scenario Call ewk_context_background_music_set to set\n + * Call ewk_context_background_music_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_background_music_set_p(void) +{ + Eina_Bool result = ewk_context_background_music_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_set_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_FALSE. + * @scenario Call ewk_context_background_music_set to set\n + * Call ewk_context_background_music_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_background_music_set_p1(void) +{ + Eina_Bool result = ewk_context_background_music_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_set_n + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_background_music_set_n(void) +{ + Eina_Bool result = ewk_context_background_music_set(NULL, EINA_TRUE); + assert_eq(result, EINA_FALSE); + + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_background_music_set_n1 + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_background_music_set_n1(void) +{ + Eina_Bool result = ewk_context_background_music_set(NULL, EINA_FALSE); + assert_eq(result, EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_get_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_get_func.c new file mode 100755 index 0000000..9073a99 --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_get_func.c @@ -0,0 +1,101 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_block_multimedia_on_call_get_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_block_multimedia_on_call_get_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_block_multimedia_on_call_get_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_get_p + * @since_tizen 4.0 + * @description Checking whether cache model is returned to EINA_TRUE. + * @scenario Call ewk_context_block_multimedia_on_call_set to set\n + * Call ewk_context_block_multimedia_on_call_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_get_p(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_neq(result, 0); + assert_eq(ewk_context_block_multimedia_on_call_get(ewk_view_context_get(test_view.webview)), EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_get_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is returned to EINA_FALSE. + * @scenario Call ewk_context_block_multimedia_on_call_set to set\n + * Call ewk_context_block_multimedia_on_call_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_get_p1(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_neq(result, 0); + assert_eq(ewk_context_block_multimedia_on_call_get(ewk_view_context_get(test_view.webview)), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_get_n + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_get_n(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(NULL, EINA_TRUE); + assert_eq(result, 0); + assert_eq(ewk_context_block_multimedia_on_call_get(NULL), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_get_n1 + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_get_n1(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(NULL, EINA_FALSE); + assert_eq(result, 0); + assert_eq(ewk_context_block_multimedia_on_call_get(NULL), EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_set_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_set_func.c new file mode 100755 index 0000000..050e626 --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_block_multimedia_on_call_set_func.c @@ -0,0 +1,98 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_block_multimedia_on_call_set_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_block_multimedia_on_call_set_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_block_multimedia_on_call_set_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_set_p + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_TRUE. + * @scenario Call ewk_context_block_multimedia_on_call_set to set\n + * Call ewk_context_block_multimedia_on_call_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_set_p(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_set_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_FALSE. + * @scenario Call ewk_context_block_multimedia_on_call_set to set\n + * Call ewk_context_block_multimedia_on_call_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_set_p1(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_set_n + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_set_n(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(NULL, EINA_TRUE); + assert_eq(result, EINA_FALSE); + + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_block_multimedia_on_call_set_n1 + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_block_multimedia_on_call_set_n1(void) +{ + Eina_Bool result = ewk_context_block_multimedia_on_call_set(NULL, EINA_FALSE); + assert_eq(result, EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_get_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_get_func.c new file mode 100755 index 0000000..4e4930f --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_get_func.c @@ -0,0 +1,101 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_rotation_lock_get_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_rotation_lock_get_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_rotation_lock_get_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_rotation_lock_get_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_get_p + * @since_tizen 4.0 + * @description Checking whether cache model is returned to EINA_TRUE. + * @scenario Call ewk_context_rotation_lock_set to set\n + * Call ewk_context_rotation_lock_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_rotation_lock_get_p(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_neq(result, 0); + assert_eq(ewk_context_rotation_lock_get(ewk_view_context_get(test_view.webview)), EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_get_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is returned to EINA_FALSE. + * @scenario Call ewk_context_rotation_lock_set to set\n + * Call ewk_context_rotation_lock_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_rotation_lock_get_p1(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_neq(result, 0); + assert_eq(ewk_context_rotation_lock_get(ewk_view_context_get(test_view.webview)), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_get_n + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_rotation_lock_get_n(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(NULL, EINA_TRUE); + assert_eq(result, 0); + assert_eq(ewk_context_rotation_lock_get(NULL), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_get_n1 + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_rotation_lock_get_n1(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(NULL, EINA_FALSE); + assert_eq(result, 0); + assert_eq(ewk_context_rotation_lock_get(NULL), EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_set_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_set_func.c new file mode 100755 index 0000000..4f60f53 --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_rotation_lock_set_func.c @@ -0,0 +1,98 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_rotation_lock_set_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_rotation_lock_set_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_rotation_lock_set_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_rotation_lock_set_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_set_p + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_TRUE. + * @scenario Call ewk_context_rotation_lock_set to set\n + * Call ewk_context_rotation_lock_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_rotation_lock_set_p(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_set_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_FALSE. + * @scenario Call ewk_context_rotation_lock_set to set\n + * Call ewk_context_rotation_lock_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_rotation_lock_set_p1(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_set_n + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_rotation_lock_set_n(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(NULL, EINA_TRUE); + assert_eq(result, EINA_FALSE); + + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_rotation_lock_set_n1 + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_rotation_lock_set_n1(void) +{ + Eina_Bool result = ewk_context_rotation_lock_set(NULL, EINA_FALSE); + assert_eq(result, EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_get_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_get_func.c new file mode 100755 index 0000000..e425d2c --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_get_func.c @@ -0,0 +1,101 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_sound_overlap_get_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_sound_overlap_get_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_sound_overlap_get_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_sound_overlap_get_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_get_p + * @since_tizen 4.0 + * @description Checking whether cache model is returned to EINA_TRUE. + * @scenario Call ewk_context_sound_overlap_set to set\n + * Call ewk_context_sound_overlap_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_sound_overlap_get_p(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_neq(result, 0); + assert_eq(ewk_context_sound_overlap_get(ewk_view_context_get(test_view.webview)), EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_get_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is returned to EINA_FALSE. + * @scenario Call ewk_context_sound_overlap_set to set\n + * Call ewk_context_sound_overlap_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_sound_overlap_get_p1(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_neq(result, 0); + assert_eq(ewk_context_sound_overlap_get(ewk_view_context_get(test_view.webview)), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_get_n + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_sound_overlap_get_n(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(NULL, EINA_TRUE); + assert_eq(result, 0); + assert_eq(ewk_context_sound_overlap_get(NULL), EINA_FALSE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_get_n1 + * @since_tizen 4.0 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_sound_overlap_get_n1(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(NULL, EINA_FALSE); + assert_eq(result, 0); + assert_eq(ewk_context_sound_overlap_get(NULL), EINA_FALSE); + return 0; +} diff --git a/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_set_func.c b/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_set_func.c new file mode 100755 index 0000000..4cdd948 --- /dev/null +++ b/src/utc/webkit2/utc_webkit2_ewk_context_sound_overlap_set_func.c @@ -0,0 +1,98 @@ +// +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include +#include "assert.h" +#include "utc_webkit2_ewk.h" + +/* Startup and cleanup functions */ +/** + * @function utc_webkit2_ewk_context_sound_overlap_set_func_startup + * @description Called before each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_sound_overlap_set_func_startup(void) +{ + utc_webkit2_ewk_test_init(); +} + +/** + * @function utc_webkit2_ewk_context_sound_overlap_set_func_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ +void utc_webkit2_ewk_context_sound_overlap_set_func_cleanup(void) +{ + utc_webkit2_ewk_test_end(); +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_set_p + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_TRUE. + * @scenario Call ewk_context_sound_overlap_set to set\n + * Call ewk_context_sound_overlap_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_sound_overlap_set_p(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(ewk_view_context_get(test_view.webview), EINA_TRUE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_set_p1 + * @since_tizen 2.3 + * @description Checking whether cache model is set to EINA_FALSE. + * @scenario Call ewk_context_sound_overlap_set to set\n + * Call ewk_context_sound_overlap_get to get the value\n + * Validate the get value + */ +int utc_webkit2_ewk_context_sound_overlap_set_p1(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(ewk_view_context_get(test_view.webview), EINA_FALSE); + assert_eq(result, EINA_TRUE); + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_set_n + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_sound_overlap_set_n(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(NULL, EINA_TRUE); + assert_eq(result, EINA_FALSE); + + return 0; +} + +/** + * @testcase utc_webkit2_ewk_context_sound_overlap_set_n1 + * @since_tizen 2.3 + * @description Checking whether function works properly in case of NULL of a context. + * @scenario Check operation entered incorrect parameter + */ +int utc_webkit2_ewk_context_sound_overlap_set_n1(void) +{ + Eina_Bool result = ewk_context_sound_overlap_set(NULL, EINA_FALSE); + assert_eq(result, EINA_FALSE); + return 0; +}