[UTC][efl-ext][ACR-1156][Add new apis for a new eext widget eext_panel]
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 19 Jan 2018 09:30:23 +0000 (18:30 +0900)
committerAmritanshu Pandia <a.pandia1@samsung.com>
Thu, 22 Mar 2018 07:37:52 +0000 (07:37 +0000)
Change-Id: I224f0b8c075636626371a1da6d43e51062d78c0f

src/utc/efl-ext/tct-efl-ext-core_wearable.h
src/utc/efl-ext/utc-efl-ext.c

index 44bab581b96848d45dc0661594bffb9b57478cd7..d307e6faf52cb08494c9d03b7d8efab5a21a9f4b 100755 (executable)
@@ -258,6 +258,12 @@ extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_p(void);
 extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n(void);
 extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p(void);
 extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n(void);
+extern int utc_efl_ext_eext_panel_add_p(void);
+extern int utc_efl_ext_eext_panel_add_n(void);
+extern int utc_efl_ext_eext_panel_part_content_set_p(void);
+extern int utc_efl_ext_eext_panel_part_content_set_n(void);
+extern int utc_efl_ext_eext_panel_part_content_get_p(void);
+extern int utc_efl_ext_eext_panel_part_content_get_n(void);
 
 testcase tc_array[] = {
        {"utc_efl_ext_popup_back_p",utc_efl_ext_popup_back_p,utc_efl_ext_startup,utc_efl_ext_cleanup},
@@ -496,6 +502,12 @@ testcase tc_array[] = {
        {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n",utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup},
        {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p",utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup},
        {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n",utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_add_p",utc_efl_ext_eext_panel_add_p,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_add_n",utc_efl_ext_eext_panel_add_n,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_part_content_set_p",utc_efl_ext_eext_panel_part_content_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_part_content_set_n",utc_efl_ext_eext_panel_part_content_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_part_content_get_p",utc_efl_ext_eext_panel_part_content_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup},
+       {"utc_efl_ext_eext_panel_part_content_get_n",utc_efl_ext_eext_panel_part_content_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup},
        {NULL, NULL}
 };
 
index 35a74bb539a1418a5566080f80637a577aff293e..b27691a40b299ad58e77bcbd0c9edb718f58d7e8 100755 (executable)
@@ -4688,4 +4688,118 @@ int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n(void)
    return 0;
 }
 
+int utc_efl_ext_eext_panel_add_p(void)
+{
+   Evas_Object *win;
+   Evas_Object *panel;
+
+   win = _create_win("window");
+   assert(win);
+
+   panel = eext_panel_add(win);
+   assert(panel);
+
+   return 0;
+}
+
+int utc_efl_ext_eext_panel_add_n(void)
+{
+   Evas_Object *panel;
+
+   panel = eext_panel_add(NULL);
+   assert_eq(panel, NULL);
+
+   return 0;
+}
+
+int utc_efl_ext_eext_panel_part_content_set_p(void)
+{
+   Evas_Object *win;
+   Evas_Object *panel;
+   Evas_Object *button;
+   Evas_Object *ret_obj;
+
+   win = _create_win("window");
+   assert(win);
+
+   panel = eext_panel_add(win);
+   assert(panel);
+
+   button = elm_button_add(panel);
+
+   eext_panel_part_content_set(panel, "primary", button);
+   ret_obj = eext_panel_part_content_get(panel, "primary");
+   assert_eq(ret_obj, button);
+
+   return 0;
+}
+
+int utc_efl_ext_eext_panel_part_content_set_n(void)
+{
+   Evas_Object *win;
+   Evas_Object *panel;
+   Evas_Object *button;
+   Evas_Object *contents;
+
+   win = _create_win("window");
+   assert(win);
+
+   panel = eext_panel_add(win);
+   assert(panel);
+
+   button = elm_button_add(panel);
+
+   eext_panel_part_content_set(panel, NULL, button);
+   contents = eext_panel_part_content_get(panel, NULL);
+   assert_eq(contents, NULL);
+
+   eext_panel_part_content_set(NULL, NULL, NULL);
+
+   return 0;
+}
+
+int utc_efl_ext_eext_panel_part_content_get_p(void)
+{
+   Evas_Object *win;
+   Evas_Object *panel;
+   Evas_Object *button;
+   Evas_Object *ret_obj;
+
+   win = _create_win("window");
+   assert(win);
+
+   panel = eext_panel_add(win);
+   assert(panel);
+
+   button = elm_button_add(panel);
+
+   eext_panel_part_content_set(panel, "primary", button);
+   ret_obj = eext_panel_part_content_get(panel, "primary");
+   assert_eq(ret_obj, button);
+
+   return 0;
+}
+
+int utc_efl_ext_eext_panel_part_content_get_n(void)
+{
+   Evas_Object *win;
+   Evas_Object *panel;
+   Evas_Object *button;
+   Evas_Object *ret_obj;
+
+   win = _create_win("window");
+   assert(win);
+
+   panel = eext_panel_add(win);
+   assert(panel);
+
+   button = elm_button_add(panel);
+
+   eext_panel_part_content_set(panel, NULL, button);
+   ret_obj = eext_panel_part_content_get(NULL, NULL);
+   assert_eq(ret_obj, NULL);
+
+   return 0;
+}
+
 #endif