elementary\gengrid: Merged TCs to reduce duplicate test operations and reduced unnece... 01/190001/4
authorManoj Kumar <manoj.km@samsung.com>
Wed, 26 Sep 2018 04:18:50 +0000 (09:48 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Oct 2018 07:42:28 +0000 (07:42 +0000)
Change-Id: Ia5096bb85d0d32d66b62b56ab8c4da81674e3b2f

58 files changed:
TC/elementary/gengrid/tslist
TC/elementary/gengrid/tslist_mobile
TC/elementary/gengrid/tslist_tv
TC/elementary/gengrid/tslist_wear
TC/elementary/gengrid/utc_elm_gengrid_add.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_align_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_align_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_align_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_at_xy_item_get.c
TC/elementary/gengrid/utc_elm_gengrid_filled_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_filled_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_filled_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_group_item_size_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_horizontal_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_horizontal_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_class_free.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_class_new.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_class_new_free.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get_update.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_item_class_update.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_selected_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_selected_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_selected_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_size_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_size_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_size_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_item_update.c
TC/elementary/gengrid/utc_elm_gengrid_multi_select_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_multi_select_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_realized_items_update.c
TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_set.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_select_mode_get.c [deleted file]
TC/elementary/gengrid/utc_elm_gengrid_select_mode_get_set.c [new file with mode: 0644]
TC/elementary/gengrid/utc_elm_gengrid_select_mode_set.c [deleted file]

index 0a7b69e7c38c8e7ea441213fb5f04b6eb4ee1819..4291afc5452d03a7e470f9bcfdc77b243cc52dac 100644 (file)
@@ -1,66 +1,48 @@
-utc_elm_gengrid_add.c
-utc_elm_gengrid_align_set.c
-utc_elm_gengrid_align_get.c
+utc_elm_gengrid_align_get_set.c
 utc_elm_gengrid_at_xy_item_get.c
 utc_elm_gengrid_clear.c
-utc_elm_gengrid_filled_get.c
-utc_elm_gengrid_filled_set.c
+utc_elm_gengrid_filled_get_set.c
 utc_elm_gengrid_first_item_get.c
-utc_elm_gengrid_group_item_size_get.c
-utc_elm_gengrid_group_item_size_set.c
-utc_elm_gengrid_highlight_mode_get.c
-utc_elm_gengrid_highlight_mode_set.c
-utc_elm_gengrid_horizontal_get.c
-utc_elm_gengrid_horizontal_set.c
+utc_elm_gengrid_group_item_size_get_set.c
+utc_elm_gengrid_highlight_mode_get_set.c
+utc_elm_gengrid_horizontal_get_set.c
 utc_elm_gengrid_item_all_contents_unset.c
 utc_elm_gengrid_item_append.c
 utc_elm_gengrid_item_bring_in.c
-utc_elm_gengrid_item_class_free.c
-utc_elm_gengrid_item_class_new.c
+utc_elm_gengrid_item_class_new_free.c
 utc_elm_gengrid_item_class_ref.c
 utc_elm_gengrid_item_class_unref.c
 utc_elm_gengrid_item_cursor_get_set_unset.c
-utc_elm_gengrid_item_cursor_engine_only_get.c
-utc_elm_gengrid_item_cursor_engine_only_set.c
-utc_elm_gengrid_item_cursor_style_get.c
-utc_elm_gengrid_item_cursor_style_set.c
+utc_elm_gengrid_item_cursor_engine_only_get_set.c
+utc_elm_gengrid_item_cursor_style_get_set.c
 utc_elm_gengrid_item_fields_update.c
 utc_elm_gengrid_item_index_get.c
 utc_elm_gengrid_item_insert_after.c
 utc_elm_gengrid_item_insert_before.c
-utc_elm_gengrid_item_item_class_get.c
-utc_elm_gengrid_item_item_class_update.c
+utc_elm_gengrid_item_item_class_get_update.c
 utc_elm_gengrid_item_next_get.c
 utc_elm_gengrid_item_pos_get.c
 utc_elm_gengrid_item_prepend.c
 utc_elm_gengrid_item_prev_get.c
-utc_elm_gengrid_item_select_mode_get.c
-utc_elm_gengrid_item_select_mode_set.c
-utc_elm_gengrid_item_selected_get.c
-utc_elm_gengrid_item_selected_set.c
+utc_elm_gengrid_item_select_mode_get_set.c
+utc_elm_gengrid_item_selected_get_set.c
 utc_elm_gengrid_item_show.c
-utc_elm_gengrid_item_size_get.c
-utc_elm_gengrid_item_size_set.c
+utc_elm_gengrid_item_size_get_set.c
 utc_elm_gengrid_item_sorted_insert.c
 utc_elm_gengrid_item_tooltip_content_cb_set.c
-utc_elm_gengrid_item_tooltip_style_get.c
-utc_elm_gengrid_item_tooltip_style_set.c
+utc_elm_gengrid_item_tooltip_style_get_set.c
 utc_elm_gengrid_item_tooltip_text_set.c
 utc_elm_gengrid_item_tooltip_unset.c
-utc_elm_gengrid_item_tooltip_window_mode_get.c
-utc_elm_gengrid_item_tooltip_window_mode_set.c
+utc_elm_gengrid_item_tooltip_window_mode_get_set.c
 utc_elm_gengrid_item_update.c
 utc_elm_gengrid_items_count.c
 utc_elm_gengrid_last_item_get.c
-utc_elm_gengrid_multi_select_get.c
-utc_elm_gengrid_multi_select_set.c
+utc_elm_gengrid_multi_select_get_set.c
 utc_elm_gengrid_nth_item_get.c
 utc_elm_gengrid_page_show.c
 utc_elm_gengrid_realized_items_get.c
 utc_elm_gengrid_realized_items_update.c
-utc_elm_gengrid_reorder_mode_set.c
-utc_elm_gengrid_reorder_mode_get.c
+utc_elm_gengrid_reorder_mode_get_set.c
 utc_elm_gengrid_selected_item_get.c
 utc_elm_gengrid_selected_items_get.c
-utc_elm_gengrid_select_mode_get.c
-utc_elm_gengrid_select_mode_set.c
+utc_elm_gengrid_select_mode_get_set.c
index 0a7b69e7c38c8e7ea441213fb5f04b6eb4ee1819..4291afc5452d03a7e470f9bcfdc77b243cc52dac 100644 (file)
@@ -1,66 +1,48 @@
-utc_elm_gengrid_add.c
-utc_elm_gengrid_align_set.c
-utc_elm_gengrid_align_get.c
+utc_elm_gengrid_align_get_set.c
 utc_elm_gengrid_at_xy_item_get.c
 utc_elm_gengrid_clear.c
-utc_elm_gengrid_filled_get.c
-utc_elm_gengrid_filled_set.c
+utc_elm_gengrid_filled_get_set.c
 utc_elm_gengrid_first_item_get.c
-utc_elm_gengrid_group_item_size_get.c
-utc_elm_gengrid_group_item_size_set.c
-utc_elm_gengrid_highlight_mode_get.c
-utc_elm_gengrid_highlight_mode_set.c
-utc_elm_gengrid_horizontal_get.c
-utc_elm_gengrid_horizontal_set.c
+utc_elm_gengrid_group_item_size_get_set.c
+utc_elm_gengrid_highlight_mode_get_set.c
+utc_elm_gengrid_horizontal_get_set.c
 utc_elm_gengrid_item_all_contents_unset.c
 utc_elm_gengrid_item_append.c
 utc_elm_gengrid_item_bring_in.c
-utc_elm_gengrid_item_class_free.c
-utc_elm_gengrid_item_class_new.c
+utc_elm_gengrid_item_class_new_free.c
 utc_elm_gengrid_item_class_ref.c
 utc_elm_gengrid_item_class_unref.c
 utc_elm_gengrid_item_cursor_get_set_unset.c
-utc_elm_gengrid_item_cursor_engine_only_get.c
-utc_elm_gengrid_item_cursor_engine_only_set.c
-utc_elm_gengrid_item_cursor_style_get.c
-utc_elm_gengrid_item_cursor_style_set.c
+utc_elm_gengrid_item_cursor_engine_only_get_set.c
+utc_elm_gengrid_item_cursor_style_get_set.c
 utc_elm_gengrid_item_fields_update.c
 utc_elm_gengrid_item_index_get.c
 utc_elm_gengrid_item_insert_after.c
 utc_elm_gengrid_item_insert_before.c
-utc_elm_gengrid_item_item_class_get.c
-utc_elm_gengrid_item_item_class_update.c
+utc_elm_gengrid_item_item_class_get_update.c
 utc_elm_gengrid_item_next_get.c
 utc_elm_gengrid_item_pos_get.c
 utc_elm_gengrid_item_prepend.c
 utc_elm_gengrid_item_prev_get.c
-utc_elm_gengrid_item_select_mode_get.c
-utc_elm_gengrid_item_select_mode_set.c
-utc_elm_gengrid_item_selected_get.c
-utc_elm_gengrid_item_selected_set.c
+utc_elm_gengrid_item_select_mode_get_set.c
+utc_elm_gengrid_item_selected_get_set.c
 utc_elm_gengrid_item_show.c
-utc_elm_gengrid_item_size_get.c
-utc_elm_gengrid_item_size_set.c
+utc_elm_gengrid_item_size_get_set.c
 utc_elm_gengrid_item_sorted_insert.c
 utc_elm_gengrid_item_tooltip_content_cb_set.c
-utc_elm_gengrid_item_tooltip_style_get.c
-utc_elm_gengrid_item_tooltip_style_set.c
+utc_elm_gengrid_item_tooltip_style_get_set.c
 utc_elm_gengrid_item_tooltip_text_set.c
 utc_elm_gengrid_item_tooltip_unset.c
-utc_elm_gengrid_item_tooltip_window_mode_get.c
-utc_elm_gengrid_item_tooltip_window_mode_set.c
+utc_elm_gengrid_item_tooltip_window_mode_get_set.c
 utc_elm_gengrid_item_update.c
 utc_elm_gengrid_items_count.c
 utc_elm_gengrid_last_item_get.c
-utc_elm_gengrid_multi_select_get.c
-utc_elm_gengrid_multi_select_set.c
+utc_elm_gengrid_multi_select_get_set.c
 utc_elm_gengrid_nth_item_get.c
 utc_elm_gengrid_page_show.c
 utc_elm_gengrid_realized_items_get.c
 utc_elm_gengrid_realized_items_update.c
-utc_elm_gengrid_reorder_mode_set.c
-utc_elm_gengrid_reorder_mode_get.c
+utc_elm_gengrid_reorder_mode_get_set.c
 utc_elm_gengrid_selected_item_get.c
 utc_elm_gengrid_selected_items_get.c
-utc_elm_gengrid_select_mode_get.c
-utc_elm_gengrid_select_mode_set.c
+utc_elm_gengrid_select_mode_get_set.c
index 5b0c51d8d76e86c3d1929cdd80a6b3bed666c964..3aedf25e0ee0d09728317cccc30d1f550769adc2 100644 (file)
@@ -1,66 +1,48 @@
-utc_elm_gengrid_add.c
-utc_elm_gengrid_align_set.c
-utc_elm_gengrid_align_get.c
+utc_elm_gengrid_align_get_set.c
 utc_elm_gengrid_at_xy_item_get.c
 utc_elm_gengrid_clear.c
-utc_elm_gengrid_filled_get.c
-utc_elm_gengrid_filled_set.c
+utc_elm_gengrid_filled_get_set.c
 utc_elm_gengrid_first_item_get.c
-utc_elm_gengrid_group_item_size_get.c
-utc_elm_gengrid_group_item_size_set.c
-utc_elm_gengrid_highlight_mode_get.c
-utc_elm_gengrid_highlight_mode_set.c
-utc_elm_gengrid_horizontal_get.c
-utc_elm_gengrid_horizontal_set.c
+utc_elm_gengrid_group_item_size_get_set.c
+utc_elm_gengrid_highlight_mode_get_set.c
+utc_elm_gengrid_horizontal_get_set.c
 #utc_elm_gengrid_item_all_contents_unset.c
 utc_elm_gengrid_item_append.c
 utc_elm_gengrid_item_bring_in.c
-utc_elm_gengrid_item_class_free.c
-utc_elm_gengrid_item_class_new.c
+utc_elm_gengrid_item_class_new_free.c
 utc_elm_gengrid_item_class_ref.c
 utc_elm_gengrid_item_class_unref.c
 utc_elm_gengrid_item_cursor_get_set_unset.c
-utc_elm_gengrid_item_cursor_engine_only_get.c
-utc_elm_gengrid_item_cursor_engine_only_set.c
-utc_elm_gengrid_item_cursor_style_get.c
-utc_elm_gengrid_item_cursor_style_set.c
+utc_elm_gengrid_item_cursor_engine_only_get_set.c
+utc_elm_gengrid_item_cursor_style_get_set.c
 utc_elm_gengrid_item_fields_update.c
 utc_elm_gengrid_item_index_get.c
 utc_elm_gengrid_item_insert_after.c
 utc_elm_gengrid_item_insert_before.c
-utc_elm_gengrid_item_item_class_get.c
-utc_elm_gengrid_item_item_class_update.c
+utc_elm_gengrid_item_item_class_get_update.c
 utc_elm_gengrid_item_next_get.c
 utc_elm_gengrid_item_pos_get.c
 utc_elm_gengrid_item_prepend.c
 utc_elm_gengrid_item_prev_get.c
-utc_elm_gengrid_item_select_mode_get.c
-utc_elm_gengrid_item_select_mode_set.c
-utc_elm_gengrid_item_selected_get.c
-utc_elm_gengrid_item_selected_set.c
+utc_elm_gengrid_item_select_mode_get_set.c
+utc_elm_gengrid_item_selected_get_set.c
 utc_elm_gengrid_item_show.c
-utc_elm_gengrid_item_size_get.c
-utc_elm_gengrid_item_size_set.c
+utc_elm_gengrid_item_size_get_set.c
 utc_elm_gengrid_item_sorted_insert.c
 utc_elm_gengrid_item_tooltip_content_cb_set.c
-utc_elm_gengrid_item_tooltip_style_get.c
-utc_elm_gengrid_item_tooltip_style_set.c
+utc_elm_gengrid_item_tooltip_style_get_set.c
 utc_elm_gengrid_item_tooltip_text_set.c
 utc_elm_gengrid_item_tooltip_unset.c
-utc_elm_gengrid_item_tooltip_window_mode_get.c
-utc_elm_gengrid_item_tooltip_window_mode_set.c
+utc_elm_gengrid_item_tooltip_window_mode_get_set.c
 utc_elm_gengrid_item_update.c
 utc_elm_gengrid_items_count.c
 utc_elm_gengrid_last_item_get.c
-utc_elm_gengrid_multi_select_get.c
-utc_elm_gengrid_multi_select_set.c
+utc_elm_gengrid_multi_select_get_set.c
 #utc_elm_gengrid_nth_item_get.c
 #utc_elm_gengrid_page_show.c
 utc_elm_gengrid_realized_items_get.c
 utc_elm_gengrid_realized_items_update.c
-utc_elm_gengrid_reorder_mode_set.c
-utc_elm_gengrid_reorder_mode_get.c
+utc_elm_gengrid_reorder_mode_get_set.c
 utc_elm_gengrid_selected_item_get.c
 utc_elm_gengrid_selected_items_get.c
-utc_elm_gengrid_select_mode_get.c
-utc_elm_gengrid_select_mode_set.c
+utc_elm_gengrid_select_mode_get_set.c
index 304e9b71f2b63a0d1ecd06133e2d436ef8b2df21..096b82b7c8a1e15f42d6bab4858aa17ade5aa474 100644 (file)
@@ -1,66 +1,48 @@
-utc_elm_gengrid_add.c
-utc_elm_gengrid_align_set.c
-utc_elm_gengrid_align_get.c
+utc_elm_gengrid_align_get_set.c
 utc_elm_gengrid_at_xy_item_get.c
 utc_elm_gengrid_clear.c
-utc_elm_gengrid_filled_get.c
-utc_elm_gengrid_filled_set.c
+utc_elm_gengrid_filled_get_set.c
 utc_elm_gengrid_first_item_get.c
-utc_elm_gengrid_group_item_size_get.c
-utc_elm_gengrid_group_item_size_set.c
-utc_elm_gengrid_highlight_mode_get.c
-utc_elm_gengrid_highlight_mode_set.c
-utc_elm_gengrid_horizontal_get.c
-utc_elm_gengrid_horizontal_set.c
+utc_elm_gengrid_group_item_size_get_set.c
+utc_elm_gengrid_highlight_mode_get_set.c
+utc_elm_gengrid_horizontal_get_set.c
 #utc_elm_gengrid_item_all_contents_unset.c
 utc_elm_gengrid_item_append.c
 utc_elm_gengrid_item_bring_in.c
-utc_elm_gengrid_item_class_free.c
-utc_elm_gengrid_item_class_new.c
+utc_elm_gengrid_item_class_new_free.c
 utc_elm_gengrid_item_class_ref.c
 utc_elm_gengrid_item_class_unref.c
 utc_elm_gengrid_item_cursor_get_set_unset.c
-utc_elm_gengrid_item_cursor_engine_only_get.c
-utc_elm_gengrid_item_cursor_engine_only_set.c
-utc_elm_gengrid_item_cursor_style_get.c
-utc_elm_gengrid_item_cursor_style_set.c
+utc_elm_gengrid_item_cursor_engine_only_get_set.c
+utc_elm_gengrid_item_cursor_style_get_set.c
 utc_elm_gengrid_item_fields_update.c
 utc_elm_gengrid_item_index_get.c
 utc_elm_gengrid_item_insert_after.c
 utc_elm_gengrid_item_insert_before.c
-utc_elm_gengrid_item_item_class_get.c
-utc_elm_gengrid_item_item_class_update.c
+utc_elm_gengrid_item_item_class_get_update.c
 utc_elm_gengrid_item_next_get.c
 utc_elm_gengrid_item_pos_get.c
 utc_elm_gengrid_item_prepend.c
 utc_elm_gengrid_item_prev_get.c
-utc_elm_gengrid_item_select_mode_get.c
-utc_elm_gengrid_item_select_mode_set.c
-utc_elm_gengrid_item_selected_get.c
-utc_elm_gengrid_item_selected_set.c
+utc_elm_gengrid_item_select_mode_get_set.c
+utc_elm_gengrid_item_selected_get_set.c
 utc_elm_gengrid_item_show.c
-utc_elm_gengrid_item_size_get.c
-utc_elm_gengrid_item_size_set.c
+utc_elm_gengrid_item_size_get_set.c
 #utc_elm_gengrid_item_sorted_insert.c
 utc_elm_gengrid_item_tooltip_content_cb_set.c
-utc_elm_gengrid_item_tooltip_style_get.c
-utc_elm_gengrid_item_tooltip_style_set.c
+utc_elm_gengrid_item_tooltip_style_get_set.c
 utc_elm_gengrid_item_tooltip_text_set.c
 utc_elm_gengrid_item_tooltip_unset.c
-utc_elm_gengrid_item_tooltip_window_mode_get.c
-utc_elm_gengrid_item_tooltip_window_mode_set.c
+utc_elm_gengrid_item_tooltip_window_mode_get_set.c
 utc_elm_gengrid_item_update.c
 utc_elm_gengrid_items_count.c
 utc_elm_gengrid_last_item_get.c
-utc_elm_gengrid_multi_select_get.c
-utc_elm_gengrid_multi_select_set.c
+utc_elm_gengrid_multi_select_get_set.c
 #utc_elm_gengrid_nth_item_get.c
 #utc_elm_gengrid_page_show.c
 utc_elm_gengrid_realized_items_get.c
 utc_elm_gengrid_realized_items_update.c
-utc_elm_gengrid_reorder_mode_set.c
-utc_elm_gengrid_reorder_mode_get.c
+utc_elm_gengrid_reorder_mode_get_set.c
 utc_elm_gengrid_selected_item_get.c
 utc_elm_gengrid_selected_items_get.c
-utc_elm_gengrid_select_mode_get.c
-utc_elm_gengrid_select_mode_set.c
+utc_elm_gengrid_select_mode_get_set.c
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_add.c b/TC/elementary/gengrid/utc_elm_gengrid_add.c
deleted file mode 100644 (file)
index 7c27d0b..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_add  elm_gengrid_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_add
- * @{
- * @objective Positive Test case checks if function call with valid value to add the gengrid widget to the
- * given parent Elementary (container) object works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_gengrid_add with valid value
- *
- * @passcondition
- * @li Test passes if returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_add_p)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Object *gengrid = NULL;
-
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(gengrid);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_add
- * @{
- * @objective Negative Test case checks if function call with invalid value to add the gengrid widget to the
- * given parent Elementary (container) object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_gengrid_add with invalid invalue instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_gengrid_add, main_win))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_add()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_add_p);
-   tcase_add_test(tcase, utc_elm_gengrid_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_align_get.c b/TC/elementary/gengrid/utc_elm_gengrid_align_get.c
deleted file mode 100644 (file)
index f98e2a1..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_align_get elm_gengrid_align_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_align_get
- * @{
- * @objective Positive Test case checks if function call with valid values to get the items grid's
- * alignment values within a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li the double to store the horizontal alignment
- * @li the double to store the vertical alignment
- *
- * @procedure
- * @step 1 Set the items grid's alignment within a given gengrid widget
- * @step 2 Call elm_gengrid_align_get with valid values
- *
- * @passcondition
- * @li Test passes if returned values are same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_align_get_p)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   double x = 0.0, y = 0.0;
-
-   elm_gengrid_align_set(gengrid, 0.2, 0.2);
-   elm_gengrid_align_get(gengrid, &x, &y);
-   if ((fabs(x - 0.2) > DBL_EPSILON) || (fabs(y - 0.2) > DBL_EPSILON))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_align_get
- * @{
- * @objective Negative Test case 1 checks if function call with invalid value to get the items grid's
- * alignment values within a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- * @li the double to store the horizontal alignment
- * @li the double to store the vertical alignment
- *
- * @procedure
- * @step 1 Call elm_gengrid_align_get with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if returned alignment values are same as they were before function call and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_align_get_n)
-{
-   double x = 0.3, y = 0.3;
-
-   elm_gengrid_align_get(NULL, &x, &y);
-   if (x != 0.3 || y != 0.3)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_align_get
- * @{
- * @objective Negative Test case 2 checks if function call with invalid value to get the items grid's
- * alignment values within a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL, the gengrid object
- * @li NULL, the double to store the horizontal alignment
- * @li NULL, the double to store the vertical alignment
- *
- * @procedure
- * @step 1 Call elm_gengrid_align_get with invalid value instead of the gengrid object
- * @step 2 Call elm_gengrid_align_get with invalid value instead of the double to store the horizontal alignment
- * @step 3 Call elm_gengrid_align_get with invalid value instead of the double to store the vertical alignment
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_align_get_n2)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   double x = 0.0, y = 0.0;
-
-   UNITEST_FUNC_NEG(elm_gengrid_align_get, gengrid, &x, &y)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_align_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_align_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_align_get_p);
-   tcase_add_test(tcase, utc_elm_gengrid_align_get_n);
-   tcase_add_test(tcase, utc_elm_gengrid_align_get_n2);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_align_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_align_get_set.c
new file mode 100644 (file)
index 0000000..1c5067f
--- /dev/null
@@ -0,0 +1,218 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <math.h>
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_align_get elm_gengrid_align_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_align_get
+ * @{
+ * @objective Positive Test case checks if function call with valid values to get the items grid's
+ * alignment values within a given gengrid widget works properly and without segmentation fault
+ * @n Input Data:
+ * @li the gengrid object
+ * @li the double to store the horizontal alignment
+ * @li the double to store the vertical alignment
+ *
+ * @procedure
+ * @step 1 Set the items grid's alignment within a given gengrid widget
+ * @step 2 Call elm_gengrid_align_get with valid values
+ *
+ * @passcondition
+ * @li Test passes if returned values are same as specified values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_align_get_p)
+{
+   if (main_win == NULL || gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   double x = 0.0, y = 0.0;
+
+   elm_gengrid_align_set(gengrid, 0.2, 0.2);
+   elm_gengrid_align_get(gengrid, &x, &y);
+   if ((fabs(x - 0.2) > DBL_EPSILON) || (fabs(y - 0.2) > DBL_EPSILON))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_add
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to add the gengrid widget to the
+ * given parent Elementary (container) object works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_add with invalid invalue instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_gengrid_add, main_win))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_align_get
+ * @{
+ * @objective Negative Test case 1 checks if function call with invalid value to get the items grid's
+ * alignment values within a given gengrid widget works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ * @li the double to store the horizontal alignment
+ * @li the double to store the vertical alignment
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_align_get with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if returned alignment values are same as they were before function call and
+ * there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_align_get_n)
+{
+   double x = 0.3, y = 0.3;
+
+   elm_gengrid_align_get(NULL, &x, &y);
+   if (x != 0.3 || y != 0.3)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_align_get
+ * @{
+ * @objective Negative Test case 2 checks if function call with invalid value to get the items grid's
+ * alignment values within a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the gengrid object
+ * @li NULL, the double to store the horizontal alignment
+ * @li NULL, the double to store the vertical alignment
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_align_get with invalid value instead of the gengrid object
+ * @step 2 Call elm_gengrid_align_get with invalid value instead of the double to store the horizontal alignment
+ * @step 3 Call elm_gengrid_align_get with invalid value instead of the double to store the vertical alignment
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_align_get_n2)
+{
+   double x = 0.0, y = 0.0;
+
+   UNITEST_FUNC_NEG(elm_gengrid_align_get, gengrid, &x, &y)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_align_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the items grid's
+ * alignment values within a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the gengrid object
+ * @li 0.2, -0.2 as the alignment in the horizontal axis. Range is from 0.0 to 1.0
+ * @li 0.2, -0.2 as the alignment in the vertical axis. Range is from 0.0 to 1.0
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_align_set with invalid value instead of the gengrid object
+ * @step 2 Call elm_gengrid_align_set with invalid value instead of the horizontal alignment
+ * @step 3 Call elm_gengrid_align_set with invalid value instead of the vertical alignment
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_align_set_n)
+{
+   if (main_win == NULL || gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_align_set(NULL, 0.2, 0.2);
+   elm_gengrid_align_set(gengrid, -0.2, 0.2);
+   elm_gengrid_align_set(gengrid, 0.2, -0.2);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_align_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_align_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_align_get_p);
+   tcase_add_test(tcase, utc_elm_gengrid_add_n);
+   tcase_add_test(tcase, utc_elm_gengrid_align_get_n);
+   tcase_add_test(tcase, utc_elm_gengrid_align_get_n2);
+   tcase_add_test(tcase, utc_elm_gengrid_align_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_align_set.c b/TC/elementary/gengrid/utc_elm_gengrid_align_set.c
deleted file mode 100644 (file)
index 1008555..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_align_set elm_gengrid_align_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_align_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set the items grid's
- * alignment values within a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li 0.2 as the alignment in the horizontal axis. Range is from 0.0 to 1.0
- * @li 0.2 as the alignment in the vertical axis. Range is from 0.0 to 1.0
- *
- * @procedure
- * @step 1 Call elm_gengrid_align_set with valid values
- * @step 2 Get the items grid's alignment within a given gengrid widget
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_align_set_p)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   double x = 0.0, y = 0.0;
-
-   elm_gengrid_align_set(gengrid, 0.2, 0.2);
-   elm_gengrid_align_get(gengrid, &x, &y);
-   if ((fabs(x - 0.2) > DBL_EPSILON) || (fabs(y - 0.2) > DBL_EPSILON))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_align_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the items grid's
- * alignment values within a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL, the gengrid object
- * @li 0.2, -0.2 as the alignment in the horizontal axis. Range is from 0.0 to 1.0
- * @li 0.2, -0.2 as the alignment in the vertical axis. Range is from 0.0 to 1.0
- *
- * @procedure
- * @step 1 Call elm_gengrid_align_set with invalid value instead of the gengrid object
- * @step 2 Call elm_gengrid_align_set with invalid value instead of the horizontal alignment
- * @step 3 Call elm_gengrid_align_set with invalid value instead of the vertical alignment
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_align_set_n)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_align_set(NULL, 0.2, 0.2);
-   elm_gengrid_align_set(gengrid, -0.2, 0.2);
-   elm_gengrid_align_set(gengrid, 0.2, -0.2);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_align_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_align_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_align_set_p);
-   tcase_add_test(tcase, utc_elm_gengrid_align_set_n);
-   return tcase;
-}
index 57bec5fd34982edd2ad96df7373502aadd15877b..2344f4be56ad4a92641a403fa6b6f0fa244db714 100644 (file)
@@ -103,17 +103,12 @@ static Eina_Bool _quit_timer_cb(void* data)
  */
 START_TEST(utc_elm_gengrid_at_xy_item_get_p_1)
 {
-   if (main_win == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
    Evas_Coord x = 0, y = 0, w = 0, h = 0, mx = 0, my = 0;
    Elm_Object_Item *ret = NULL;
    int xposret = 10, yposret = 10;
 
    evas_object_geometry_get(gengrid, &x, &y, &w, &h);
-   ecore_timer_add(1.0, _quit_timer_cb, NULL);
+   ecore_timer_add(0.1, _quit_timer_cb, NULL);
    ecore_main_loop_begin();
    mx = x + 75;
    my = y + 75;
@@ -146,11 +141,6 @@ START_TEST(utc_elm_gengrid_at_xy_item_get_n_1)
 {
    int xposret = 0;
    int yposret = 0;
-
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
    UNITEST_FUNC_NEG(elm_gengrid_at_xy_item_get, NULL, 10, 10, &xposret, &yposret);
    UNITEST_FUNC_NEG(elm_gengrid_at_xy_item_get, NULL, -10, -10, &xposret, &yposret);
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_filled_get.c b/TC/elementary/gengrid/utc_elm_gengrid_filled_get.c
deleted file mode 100644 (file)
index bc13e8a..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Evas.h>
-#include <Eina.h>
-
-#include "../../utc_negative_unitest.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_filled_get elm_gengrid_filled_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object and set up its fields
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-/**
- * @addtogroup elm_gengrid_filled_get
- * @{
- * @objective Positive Test 01 case checks how the items are filled
- * within a given gengrid widget
- * @n Input Data:
- * @li gengrid widget
- *
- * @procedure
- * @step 1 Call elm_gengrid_filled_get to get default fill state of the gengrid items
- * @step 2 Check whether default fill state is false
- * @step 3 Call elm_gengrid_filled_set passing filled EINA_TRUE flag
- * @step 4 Call elm_gengrid_filled_get to check whether fill state is equal to EINA_TRUE
- *
- * @passcondition
- * @li Test passes if gotten filled state is equal to one has been set
- * @}
- */
-START_TEST(utc_elm_gengrid_filled_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        return;
-     }
-
-   //By default the fill state is false
-   Eina_Bool filled = elm_gengrid_filled_get(gengrid);
-   if (EINA_TRUE == filled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   filled = EINA_TRUE;
-   elm_gengrid_filled_set(gengrid, filled);
-   if (filled != elm_gengrid_filled_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_filled_get
- * @{
- * @objective Positive Test 02 case checks how the items are filled
- * within a given gengrid widget
- * @n Input Data:
- * @li gengrid widget
- *
- * @procedure
- * @step 1 Call elm_gengrid_filled_get to get default fill state of the gengrid items
- * @step 2 Check whether default fill state is false
- * @step 3 Call elm_gengrid_filled_set passing filled EINA_FALSE flag
- * @step 4 Call elm_gengrid_filled_get to check whether fill state is equal to EINA_FALSE
- *
- * @passcondition
- * @li Test passes if gotten filled state is equal to one has been set
- * @}
- */
-START_TEST(utc_elm_gengrid_filled_get_p_02)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_filled_set(gengrid, EINA_FALSE);
-   Eina_Bool filled = elm_gengrid_filled_get(gengrid);
-   if (EINA_TRUE == filled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   filled = EINA_FALSE;
-   elm_gengrid_filled_set(gengrid, filled);
-   if (filled != elm_gengrid_filled_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_filled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_filled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_filled_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_filled_get_p_02);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_filled_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_filled_get_set.c
new file mode 100644 (file)
index 0000000..c487e67
--- /dev/null
@@ -0,0 +1,148 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_filled_set elm_gengrid_filled_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ * @step 4 Set up the gengrid's item class for the item
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_filled_set
+ * @{
+ * @objective Positive Test case checks if function call assigns select mode for gengrid items
+ * @n Input Data:
+ * @li the gengrid object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append with valid values to append a 1st item in the given gengrid widget
+ * @step 2 Call elm_gengrid_item_append with valid values to append a 2nd item in the given gengrid widget
+ * @step 3 Set filled mode for gengrid
+ * @step 4 Get the filled mode of gengrid. Check whether filled mode was assigned correctly
+ * @step 5 Set filled mode for gengrid
+ * @step 6 Get the filled mode of gengrid. Check whether filled mode was assigned correctly
+ *
+ * @passcondition
+ * @li Test passes if filled mode were correctly assigned to the gengrid
+ * @}
+ */
+START_TEST(utc_elm_gengrid_filled_set_p_1)
+{
+   Elm_Object_Item *item_1st = NULL, *item_2nd = NULL;
+   //By default the fill state is false
+   if (EINA_TRUE == elm_gengrid_filled_get(gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   item_1st = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item_1st == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   item_2nd = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item_2nd == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_filled_set(gengrid, EINA_FALSE);
+   if (elm_gengrid_filled_get(gengrid) != EINA_FALSE)
+     {
+        elm_object_item_del(item_1st);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_filled_set(gengrid, EINA_TRUE);
+   if (elm_gengrid_filled_get(gengrid) != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+   elm_object_item_del(item_1st);
+   elm_object_item_del(item_2nd);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_filled_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL pointer to the gengrid item
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL pointer
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_filled_set with NULL pointer to the gengrid
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_filled_set_n_1)
+{
+   UNITEST_FUNC_NEG(elm_gengrid_filled_set, NULL, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_filled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_filled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_filled_set_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_filled_set_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_filled_set.c b/TC/elementary/gengrid/utc_elm_gengrid_filled_set.c
deleted file mode 100644 (file)
index 3e3f6d3..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_filled_set elm_gengrid_filled_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Set up the gengrid's item class for the item
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_filled_set
- * @{
- * @objective Positive Test case checks if function call assigns select mode for gengrid items
- * @n Input Data:
- * @li the gengrid object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append with valid values to append a 1st item in the given gengrid widget
- * @step 2 Call elm_gengrid_item_append with valid values to append a 2nd item in the given gengrid widget
- * @step 3 Set filled mode for gengrid
- * @step 4 Get the filled mode of gengrid. Check whether filled mode was assigned correctly
- * @step 5 Set filled mode for gengrid
- * @step 6 Get the filled mode of gengrid. Check whether filled mode was assigned correctly
- *
- * @passcondition
- * @li Test passes if filled mode were correctly assigned to the gengrid
- * @}
- */
-START_TEST(utc_elm_gengrid_filled_set_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *item_1st = NULL, *item_2nd = NULL;
-
-   item_1st = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item_1st == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   item_2nd = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item_2nd == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_filled_set(gengrid, EINA_FALSE);
-   if (elm_gengrid_filled_get(gengrid) != EINA_FALSE)
-     {
-        elm_object_item_del(item_1st);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_filled_set(gengrid, EINA_TRUE);
-   if (elm_gengrid_filled_get(gengrid) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   elm_object_item_del(item_1st);
-   elm_object_item_del(item_2nd);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_filled_set
- * @{
- * @objective Negative Test case checks if function call with NULL pointer to the gengrid item
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL pointer
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_gengrid_filled_set with NULL pointer to the gengrid
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_filled_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(elm_gengrid_filled_set, NULL, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_filled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_filled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_filled_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_filled_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get.c b/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get.c
deleted file mode 100644 (file)
index 99fcf77..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Evas.h>
-#include <Eina.h>
-
-#include "../../utc_negative_unitest.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_group_item_size_get elm_gengrid_group_item_size_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object and set up its fields
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-/**
- * @addtogroup elm_gengrid_group_item_size_get
- * @{
- * @objective Positive Test 01 case checks whether gotten size of
- * the group items of a given gengrid widget corresponds to one has been set
- * @n Input Data:
- * @li gengrid widget
- * @li pointer to variable where to store the group items' width
- * @li pointer to variable where to store the group items' height
- *
- * @procedure
- * @step 1 Call elm_gengrid_group_item_size_set to set up the size of the group items of a gengrid
- * @step 2 Call elm_gengrid_group_item_size_get to get the size
- * @step 3 Check whether width and height are equal to those that have been set
- *
- * @passcondition
- * @li Test passes if gengrid widget is still a valid pointer and also
- * if width/height data has been stored properly by elm_gengrid_group_item_size_get
- * @}
- */
-START_TEST(utc_elm_gengrid_group_item_size_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Coord init_width = 30, init_height = 40;
-   elm_gengrid_group_item_size_set(gengrid, init_width, init_height);
-
-   Evas_Coord width = -1, height = -1;
-   elm_gengrid_group_item_size_get(gengrid, &width, &height);
-   if (width != init_width)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (height != init_height)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_group_item_size_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_group_item_size_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_group_item_size_get_p_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_get_set.c
new file mode 100644 (file)
index 0000000..0a58c55
--- /dev/null
@@ -0,0 +1,120 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_group_item_size_set elm_gengrid_group_item_size_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window and show it
+ * @step 4 Set up the gengrid's item class for the item
+ * @step 5 Append an item in the gengrid
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(gengrid);
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_group_item_size_set
+ * @{
+ * @objective Positive Test case checks if function call with valid values to get the size
+ * set for the items of a given gengrid widget works properly and without segmentation fault
+ * @procedure
+ * @step 1 Set the size set for the items of a given gengrid widget
+ * @step 2 Call elm_gengrid_item_size_get with valid values
+ * @step 3 Check whether the retrieved width and height match with width and height that were set
+ *
+ * @passcondition
+ * @li Test passes if returned values are same as specified values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_group_item_size_set_p_1)
+{
+   Evas_Coord w = 0, h = 0;
+
+   elm_gengrid_group_item_size_set(gengrid, 50, 50);
+   elm_gengrid_group_item_size_get(gengrid, &w, &h);
+   if (w != 50 || h != 50)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_group_item_size_set
+ * @{
+ * @objective Negative test indicates the impossibility to set negative width and height
+ * @procedure
+ * @step 1 Call elm_gengrid_item_size_set with invalid value instead of width and height
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_group_item_size_set_n_1)
+{
+   UNITEST_FUNC_NEG(elm_gengrid_group_item_size_set, gengrid, -1, -1)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_group_item_size_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_group_item_size_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_group_item_size_set_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_group_item_size_set_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_set.c b/TC/elementary/gengrid/utc_elm_gengrid_group_item_size_set.c
deleted file mode 100644 (file)
index 89379bb..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_group_item_size_set elm_gengrid_group_item_size_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_group_item_size_set
- * @{
- * @objective Positive Test case checks if function call with valid values to get the size
- * set for the items of a given gengrid widget works properly and without segmentation fault
- * @procedure
- * @step 1 Set the size set for the items of a given gengrid widget
- * @step 2 Call elm_gengrid_item_size_get with valid values
- * @step 3 Check whether the retrieved width and height match with width and height that were set
- *
- * @passcondition
- * @li Test passes if returned values are same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_group_item_size_set_p_1)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Coord w = 0, h = 0;
-
-   elm_gengrid_group_item_size_set(gengrid, 50, 50);
-   elm_gengrid_group_item_size_get(gengrid, &w, &h);
-   if (w != 50 || h != 50)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_group_item_size_set
- * @{
- * @objective Negative test indicates the impossibility to set negative width and height
- * @procedure
- * @step 1 Call elm_gengrid_item_size_set with invalid value instead of width and height
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_group_item_size_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(elm_gengrid_group_item_size_set, gengrid, -1, -1)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_group_item_size_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_group_item_size_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_group_item_size_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_group_item_size_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get.c b/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get.c
deleted file mode 100644 (file)
index 0ceafa8..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Evas.h>
-#include <Eina.h>
-
-#include "../../utc_negative_unitest.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_highlight_mode_get elm_gengrid_highlight_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object and set up its fields
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   //object creation
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   //object deletion
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_get
- * @{
- * @objective Positive Test 01 case checks whether the gengrid's items
- * are set to be highlighted when item selected
- * @n Input Data:
- * @li gengrid widget
- *
- * @procedure
- * @step 1 Call elm_gengrid_highlight_mode_get to get default highlighted flag
- * @step 2 Check whether highlighted flag is equal to EINA_TRUE by default
- *
- * @passcondition
- * @li Test passes if gotten highlight flag is equal EINA_TRUE by default
- * @}
- */
-
-START_TEST(utc_elm_gengrid_highlight_mode_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool highlighted = elm_gengrid_highlight_mode_get(gengrid);
-
-   //highlight is enabled by default
-   if (EINA_TRUE != highlighted)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_get
- * @{
- * @objective Positive Test 02 case checks whether the gengrid's items
- * are set to be highlighted when item selected
- * @n Input Data:
- * @li gengrid widget
- *
- * @procedure
- * @step 1 Set highlighted flag to EINA_FALSE and call elm_gengrid_highlight_mode_set passing the flag into
- * @step 2 Call elm_gengrid_highlight_mode_get to get the flag and check whether the it is equal to EINA_FALSE
- *
- * @passcondition
- * @li Test passes if gotten highlight flags are equal to those which have been set to gengrid widget
- * @}
- */
-
-START_TEST(utc_elm_gengrid_highlight_mode_get_p_02)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool highlighted = EINA_FALSE;
-   elm_gengrid_highlight_mode_set(gengrid, highlighted);
-   if (highlighted != elm_gengrid_highlight_mode_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_get
- * @{
- * @objective Positive Test 03 case checks whether the gengrid's items
- * are set to be highlighted when item selected
- * @n Input Data:
- * @li gengrid widget
- *
- * @procedure
- * @step 1 Set highlighted flag to EINA_TRUE and call elm_gengrid_highlight_mode_set passing the flag into
- * @step 2 Call elm_gengrid_highlight_mode_get to get the flag and check whether the it is equal to EINA_TRUE
- *
- * @passcondition
- * @li Test passes if gotten highlight flags are equal to those which have been set to gengrid widget
- * @}
- */
-
-START_TEST(utc_elm_gengrid_highlight_mode_get_p_03)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool highlighted = EINA_TRUE;
-   elm_gengrid_highlight_mode_set(gengrid, highlighted);
-   if (highlighted != elm_gengrid_highlight_mode_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_get
- * @{
- * @objective Negative Test 01 case checks if function call with NULL pointer to the gengrid item
- *  works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of gengrid
- *
- * @procedure
- * @step 1 Call elm_gengrid_highlight_mode_get with NULL pointer to the gengrid item
- *
- * @passcondition
- * @li Test passes if elm_gengrid_highlight_mode_get return EINA_FALSE and
- * there is no segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_highlight_mode_get_n_01)
-{
-   if (EINA_FALSE != elm_gengrid_highlight_mode_get(NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_highlight_mode_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_highlight_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_p_02);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_p_03);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_get_set.c
new file mode 100644 (file)
index 0000000..d47a277
--- /dev/null
@@ -0,0 +1,177 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <Evas.h>
+#include <Eina.h>
+
+#include "../../utc_negative_unitest.h"
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_highlight_mode_get elm_gengrid_highlight_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ * @step 4 Create gengrid item class object and set up its fields
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+
+   //object creation
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+
+   //object deletion
+   elm_gengrid_item_class_free(it_class);
+   it_class = NULL;
+}
+
+/**
+ * @addtogroup elm_gengrid_highlight_mode_get
+ * @{
+ * @objective Positive Test 01 case checks whether the gengrid's items
+ * are set to be highlighted when item selected
+ * @n Input Data:
+ * @li gengrid widget
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_highlight_mode_get to get default highlighted flag
+ * @step 2 Check whether highlighted flag is equal to EINA_TRUE by default
+ *
+ * @passcondition
+ * @li Test passes if gotten highlight flag is equal EINA_TRUE by default
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_highlight_mode_get_p_01)
+{
+   Eina_Bool highlighted = elm_gengrid_highlight_mode_get(gengrid);
+
+   //highlight is enabled by default
+   if (EINA_TRUE != highlighted)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_highlight_mode_set(gengrid, EINA_FALSE);
+   if (EINA_FALSE != elm_gengrid_highlight_mode_get(gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_highlight_mode_set(gengrid, EINA_TRUE);
+   if (EINA_TRUE != elm_gengrid_highlight_mode_get(gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_highlight_mode_get
+ * @{
+ * @objective Negative Test 01 case checks if function call with NULL pointer to the gengrid item
+ *  works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of gengrid
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_highlight_mode_get with NULL pointer to the gengrid item
+ *
+ * @passcondition
+ * @li Test passes if elm_gengrid_highlight_mode_get return EINA_FALSE and
+ * there is no segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_highlight_mode_get_n_01)
+{
+   if (EINA_FALSE != elm_gengrid_highlight_mode_get(NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_highlight_mode_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL pointer to the gengrid item
+ *  works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_highlight_mode_set with NULL pointer to the gengrid item
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_highlight_mode_set_n_1)
+{
+   elm_gengrid_highlight_mode_set(NULL, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_highlight_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_highlight_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_p_01);
+   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_get_n_01);
+   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_set_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_set.c b/TC/elementary/gengrid/utc_elm_gengrid_highlight_mode_set.c
deleted file mode 100644 (file)
index 8a0b59e..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_highlight_mode_set elm_gengrid_highlight_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Set up the gengrid's item class for the item
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_set
- * @{
- * @objective Positive Test case checks if function call assigns select mode for gengrid items
- * @n Input Data:
- * @li the gengrid item
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append with valid values to append a 1st item in the given gengrid widget
- * @step 2 Call elm_gengrid_item_append with valid values to append a 2nd item in the given gengrid widget
- * @step 3 Set highlight mode for the first item
- * @step 4 Set highlight mode for the second item
- * @step 5 Get the highlight mode of the first and second items. Check whether select mode was assigned correctly
- *
- * @passcondition
- * @li Test passes if highlight modes were correctly assigned to the gengrid items
- * @}
- */
-START_TEST(utc_elm_gengrid_highlight_mode_set_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   Elm_Object_Item *item_1st = NULL, *item_2nd = NULL;
-   item_1st = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item_1st == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   item_2nd = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item_2nd == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_item_select_mode_set(item_1st, EINA_FALSE);
-   elm_gengrid_item_select_mode_set(item_2nd, EINA_TRUE);
-   if (elm_gengrid_item_select_mode_get(item_1st) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        elm_object_item_del(item_1st);
-     }
-   if (elm_gengrid_item_select_mode_get(item_2nd) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   elm_object_item_del(item_1st);
-   elm_object_item_del(item_2nd);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_highlight_mode_set
- * @{
- * @objective Negative Test case checks if function call with NULL pointer to the gengrid item
- *  works properly and without segmentation fault
- * @n Input Data:
- * @li NULL
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_gengrid_highlight_mode_set with NULL pointer to the gengrid item
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_highlight_mode_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_highlight_mode_set(NULL, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_highlight_mode_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_highlight_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_highlight_mode_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_horizontal_get.c b/TC/elementary/gengrid/utc_elm_gengrid_horizontal_get.c
deleted file mode 100644 (file)
index f2b41ad..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_horizontal_get elm_gengrid_horizontal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_horizontal_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get for what direction
- * a given gengrid widget will expand while placing its items works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- *
- * @procedure
- * @step 1 Activate "horizontal mode"
- * @step 2 Call elm_gengrid_horizontal_get with valid value
- * @step 3 Activate "vertical mode"
- * @step 4 Call elm_gengrid_horizontal_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_horizontal_get_p)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool is_horizontally_expand = EINA_FALSE;
-
-   elm_gengrid_horizontal_set(gengrid, EINA_TRUE);
-   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
-   if (is_horizontally_expand == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_horizontal_set(gengrid, EINA_FALSE);
-   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
-   if (is_horizontally_expand == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_horizontal_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get for what direction
- * a given gengrid widget will expand while placing its items works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- *
- * @procedure
- * @step 1 Call elm_gengrid_horizontal_get with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_horizontal_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_gengrid_horizontal_get, gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_horizontal_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_horizontal_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_horizontal_get_p);
-   tcase_add_test(tcase, utc_elm_gengrid_horizontal_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_horizontal_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..ff12747
--- /dev/null
@@ -0,0 +1,149 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_horizontal_set elm_gengrid_horizontal_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_horizontal_set
+ * @{
+ * @objective Positive Test case checks if function call with valid values to get for what direction
+ * a given gengrid widget will expand while placing its items works properly and without segmentation fault
+ * @n Input Data:
+ * @li the gengrid object
+ * @li EINA_TRUE, EINA_FALSE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_horizontal_set with EINA_TRUE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
+ * @step 2 Get for what direction a given gengrid widget will expand while placing its items
+ * @step 3 Call elm_gengrid_horizontal_set with EINA_FALSE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
+ * @step 4 Get for what direction a given gengrid widget will expand while placing its items
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_horizontal_set_p)
+{
+   Eina_Bool is_horizontally_expand = EINA_FALSE;
+
+   elm_gengrid_horizontal_set(gengrid, EINA_TRUE);
+   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
+   if (is_horizontally_expand == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_gengrid_horizontal_set(gengrid, EINA_FALSE);
+   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
+   if (is_horizontally_expand == EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_horizontal_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get for what direction
+ * a given gengrid widget will expand while placing its items works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ * @li EINA_TRUE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_horizontal_set with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_horizontal_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0)
+   UNITEST_FUNC_NEG_CA(elm_gengrid_horizontal_set, gengrid, EINA_TRUE)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_horizontal_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get for what direction
+ * a given gengrid widget will expand while placing its items works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_horizontal_get with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_horizontal_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_gengrid_horizontal_get, gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_horizontal_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_horizontal_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_horizontal_set_p);
+   tcase_add_test(tcase, utc_elm_gengrid_horizontal_set_n);
+   tcase_add_test(tcase, utc_elm_gengrid_horizontal_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_horizontal_set.c b/TC/elementary/gengrid/utc_elm_gengrid_horizontal_set.c
deleted file mode 100644 (file)
index a98bf29..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_horizontal_set elm_gengrid_horizontal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_horizontal_set
- * @{
- * @objective Positive Test case checks if function call with valid values to get for what direction
- * a given gengrid widget will expand while placing its items works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li EINA_TRUE, EINA_FALSE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
- *
- * @procedure
- * @step 1 Call elm_gengrid_horizontal_set with EINA_TRUE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
- * @step 2 Get for what direction a given gengrid widget will expand while placing its items
- * @step 3 Call elm_gengrid_horizontal_set with EINA_FALSE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
- * @step 4 Get for what direction a given gengrid widget will expand while placing its items
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_horizontal_set_p)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool is_horizontally_expand = EINA_FALSE;
-
-   elm_gengrid_horizontal_set(gengrid, EINA_TRUE);
-   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
-   if (is_horizontally_expand == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_horizontal_set(gengrid, EINA_FALSE);
-   is_horizontally_expand = elm_gengrid_horizontal_get(gengrid);
-   if (is_horizontally_expand == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_horizontal_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to get for what direction
- * a given gengrid widget will expand while placing its items works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- * @li EINA_TRUE as flag's value to set the direction in which a given gengrid widget will expand while placing its items
- *
- * @procedure
- * @step 1 Call elm_gengrid_horizontal_set with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_horizontal_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0)
-   UNITEST_FUNC_NEG_CA(elm_gengrid_horizontal_set, gengrid, EINA_TRUE)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_horizontal_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_horizontal_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_horizontal_set_p);
-   tcase_add_test(tcase, utc_elm_gengrid_horizontal_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_class_free.c b/TC/elementary/gengrid/utc_elm_gengrid_item_class_free.c
deleted file mode 100644 (file)
index b8dbda0..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_class_free elm_gengrid_item_class_free()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Set up the gengrid's item class for the item
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_class_free
- * @{
- * @objective Positive Test case 01: checks if function free gengrid item class
- * @n Input Data:
- * @li The itc to be removed
- *
- * @procedure
- * @step 1 Create new item class elm_gengrid_item_class_new()
- * @step 2 Call elm_gengrid_item_class_free with valid object
- * @step 3 Check Elm_Object_Item
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault and delete_me flag is on
- * @}
- */
-START_TEST(utc_elm_gengrid_item_class_free_p_1)
-{
-   Elm_Gengrid_Item_Class *item_1st = NULL;
-
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   item_1st = elm_gengrid_item_class_new();
-   elm_gengrid_item_class_ref(item_1st);
-   elm_gengrid_item_class_free(item_1st);
-
-   if (!item_1st->delete_me)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_class_free(item_1st);
-   item_1st = NULL;
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_class_free
- * @{
- * @objective Negative Test case 01: checks if function working properly with NULL
- * instead of item class
- * @n Input Data:
- * @li NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_class_free with NULL instead of item class
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_class_free_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_class_free(NULL);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_class_free()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_class_free");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_class_free_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_class_free_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_class_new.c b/TC/elementary/gengrid/utc_elm_gengrid_item_class_new.c
deleted file mode 100644 (file)
index 8ee5b99..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_class_new elm_gengrid_item_class_new()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Set up the gengrid's item class for the item
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_class_new
- * @{
- * @objective Positive Test case checks if function returns non NULL pointer
- * @n Input Data:
- * @li void
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_class_new
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault and function returns non NULL pointer
- * @}
- */
-START_TEST(utc_elm_gengrid_item_class_new_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   if (elm_gengrid_item_class_new() == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has failed..\n", __FILE__, __LINE__);
-
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_class_new()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_class_new");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_class_new_p_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_class_new_free.c b/TC/elementary/gengrid/utc_elm_gengrid_item_class_new_free.c
new file mode 100644 (file)
index 0000000..ad2813a
--- /dev/null
@@ -0,0 +1,123 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_class_free elm_gengrid_item_class_free()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ * @step 4 Set up the gengrid's item class for the item
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_item_class_free
+ * @{
+ * @objective Positive Test case 01: checks if function free gengrid item class
+ * @n Input Data:
+ * @li The itc to be removed
+ *
+ * @procedure
+ * @step 1 Create new item class elm_gengrid_item_class_new()
+ * @step 2 Call elm_gengrid_item_class_free with valid object
+ * @step 3 Check Elm_Object_Item
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault and delete_me flag is on
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_class_free_p_1)
+{
+   Elm_Gengrid_Item_Class *item_1st = NULL;
+   item_1st = elm_gengrid_item_class_new();
+   elm_gengrid_item_class_ref(item_1st);
+   elm_gengrid_item_class_free(item_1st);
+
+   if (!item_1st->delete_me)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_class_free(item_1st);
+   item_1st = NULL;
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_class_free
+ * @{
+ * @objective Negative Test case 01: checks if function working properly with NULL
+ * instead of item class
+ * @n Input Data:
+ * @li NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_class_free with NULL instead of item class
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_class_free_n_1)
+{
+   elm_gengrid_item_class_free(NULL);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_item_class_new_free()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_class_new_free");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_class_free_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_class_free_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get.c
deleted file mode 100644 (file)
index 3a32ede..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Elementary_Cursor.h>
-#include <Evas.h>
-#include <Eina.h>
-
-static void _realized_cb(void *data, Evas_Object *obj, void *event_info);
-static Eina_Bool _wait_gengrid_realized_timer_cb(void *data);
-
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL, *box = NULL;
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_cursor_engine_only_get elm_gengrid_item_cursor_engine_only_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create main window
- * @step 3 Create box
- * @step 4 Set box to the main window
- * @step 5 Create gengrid
- * @step 6 Add gengrid to the box
- * @step 7 Set callback on the gengrid realized
- * @step 8 Create gengrid item class object
- * @step 9 Show main window, box and gengrid
- * @step 10 Add timer for wait time when gengrid will be realized
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   box = elm_box_add(main_win);
-   if (box == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
-     }
-   elm_win_resize_object_add(main_win, box);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   elm_gengrid_item_size_set(gengrid, 150, 150);
-   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_box_pack_end(box, gengrid);
-
-   evas_object_smart_callback_add(gengrid, "realized", _realized_cb, NULL);
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   evas_object_show(box);
-   evas_object_show(gengrid);
-
-   // Wait when gengrid will be realized for correct tests execution
-   ecore_timer_add(2, _wait_gengrid_realized_timer_cb, NULL);
-   ecore_main_loop_begin();
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   //object deletion
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-static void _realized_cb(void *data, Evas_Object *obj, void *event_info)
-{
-   ecore_main_loop_quit();
-}
-
-static Eina_Bool _wait_gengrid_realized_timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_gengrid_item_cursor_engine_only_get
- * @{
- * @objective Positive Test case 01 checks whether elm_gengrid_item_cursor_engine_only_get
- * returns custom cursor search flag equals to the return value of elm_config_cursor_engine_only_get by default
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Check whether gengrid element has been created
- * @step 2 Call elm_gengrid_item_cursor_engine_only_get to get default cursor search flag
- * @step 3 Check whether cursor flag is equal to the return value of elm_config_cursor_engine_only_get by default
- *
- * @passcondition
- * @li Test passes if gengrid element is created and default cursor search flag is equal to
- * the return value of elm_config_cursor_engine_get_only
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_engine_only_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   //TODO: need specify in doxy of elm_gengrid_item_cursor_engine_only_get default value of the flag.
-   if (elm_gengrid_item_cursor_engine_only_get(item) != elm_config_cursor_engine_only_get())
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_cursor_engine_only_get
- * @{
- * @objective Positive Test case 02 checks whether elm_gengrid_item_cursor_engine_only_get
- * returns custom cursor search flag equally to one has been set by elm_gengrid_item_cursor_engine_only_set
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Check whether a gengrid element has been created
- * @step 2 Call elm_gengrid_item_cursor_set to setup custom cursor
- * @step 3 Call elm_object_cursor_theme_search_enabled_set to set up theme search enabled flag
- * @step 4 Call elm_gengrid_item_cursor_engine_only_set to cursor search flag to EINA_FALSE
- * @step 5 Call elm_gengrid_item_cursor_engine_only_get to get cursor search flag and check
- * whether it has been set up successfully to the gengrid item
- *
- * @passcondition
- * @li Test passes if gengrid element is created and cursor search flag is equal to EINA_FALSE
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_engine_only_get_p_02)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_cursor_set(item, ELM_CURSOR_HEART);
-   elm_object_cursor_theme_search_enabled_set(gengrid, EINA_TRUE);
-
-   //EINA_TRUE - rendering engine
-   //EINA_FALSE - widget's theme
-   elm_gengrid_item_cursor_engine_only_set(item, EINA_FALSE);
-   if (elm_gengrid_item_cursor_engine_only_get(item))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_cursor_engine_only_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_engine_only_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_engine_only_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_engine_only_get_p_02);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_get_set.c
new file mode 100644 (file)
index 0000000..b2f7970
--- /dev/null
@@ -0,0 +1,200 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <Elementary_Cursor.h>
+#include <Evas.h>
+#include <Eina.h>
+
+static void _realized_cb(void *data, Evas_Object *obj, void *event_info);
+static Eina_Bool _wait_gengrid_realized_timer_cb(void *data);
+
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL, *box = NULL;
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_cursor_engine_only_get elm_gengrid_item_cursor_engine_only_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create main window
+ * @step 3 Create box
+ * @step 4 Set box to the main window
+ * @step 5 Create gengrid
+ * @step 6 Add gengrid to the box
+ * @step 7 Set callback on the gengrid realized
+ * @step 8 Create gengrid item class object
+ * @step 9 Show main window, box and gengrid
+ * @step 10 Add timer for wait time when gengrid will be realized
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   box = elm_box_add(main_win);
+   if (box == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
+     }
+   elm_win_resize_object_add(main_win, box);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   elm_gengrid_item_size_set(gengrid, 150, 150);
+   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_box_pack_end(box, gengrid);
+
+   evas_object_smart_callback_add(gengrid, "realized", _realized_cb, NULL);
+
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+   item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+
+   evas_object_show(main_win);
+   evas_object_show(box);
+   evas_object_show(gengrid);
+
+   // Wait when gengrid will be realized for correct tests execution
+   ecore_timer_add(0.2, _wait_gengrid_realized_timer_cb, NULL);
+   ecore_main_loop_begin();
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+
+   //object deletion
+   elm_gengrid_item_class_free(it_class);
+   it_class = NULL;
+}
+
+static void _realized_cb(void *data, Evas_Object *obj, void *event_info)
+{
+   ecore_main_loop_quit();
+}
+
+static Eina_Bool _wait_gengrid_realized_timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_engine_only_get
+ * @{
+ * @objective Positive Test case 01 checks whether elm_gengrid_item_cursor_engine_only_get
+ * returns custom cursor search flag equals to the return value of elm_config_cursor_engine_only_get by default
+ * @n Input Data:
+ * @li gengrid item
+ *
+ * @procedure
+ * @step 1 Check whether gengrid element has been created
+ * @step 2 Call elm_gengrid_item_cursor_engine_only_get to get default cursor search flag
+ * @step 3 Check whether cursor flag is equal to the return value of elm_config_cursor_engine_only_get by default
+ *
+ * @passcondition
+ * @li Test passes if gengrid element is created and default cursor search flag is equal to
+ * the return value of elm_config_cursor_engine_get_only
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_engine_only_get_p_01)
+{
+   //TODO: need specify in doxy of elm_gengrid_item_cursor_engine_only_get default value of the flag.
+   if (elm_gengrid_item_cursor_engine_only_get(item) != elm_config_cursor_engine_only_get())
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_engine_only_get
+ * @{
+ * @objective Positive Test case 02 checks whether elm_gengrid_item_cursor_engine_only_get
+ * returns custom cursor search flag equally to one has been set by elm_gengrid_item_cursor_engine_only_set
+ * @n Input Data:
+ * @li gengrid item
+ *
+ * @procedure
+ * @step 1 Check whether a gengrid element has been created
+ * @step 2 Call elm_gengrid_item_cursor_set to setup custom cursor
+ * @step 3 Call elm_object_cursor_theme_search_enabled_set to set up theme search enabled flag
+ * @step 4 Call elm_gengrid_item_cursor_engine_only_set to cursor search flag to EINA_FALSE
+ * @step 5 Call elm_gengrid_item_cursor_engine_only_get to get cursor search flag and check
+ * whether it has been set up successfully to the gengrid item
+ * @step 6 Call elm_gengrid_item_cursor_engine_only_set to cursor search flag to EINA_TRUE
+ * @step 7 Call elm_gengrid_item_cursor_engine_only_get to get cursor search flag and check
+ * whether it has been set up successfully to the gengrid item
+ *
+ * @passcondition
+ * @li Test passes if gengrid element is created and cursor search flag is equal to expected value
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_engine_only_get_p_02)
+{
+   elm_gengrid_item_cursor_set(item, ELM_CURSOR_HEART);
+   elm_object_cursor_theme_search_enabled_set(gengrid, EINA_TRUE);
+
+   //EINA_TRUE - rendering engine
+   //EINA_FALSE - widget's theme
+   elm_gengrid_item_cursor_engine_only_set(item, EINA_FALSE);
+   if (elm_gengrid_item_cursor_engine_only_get(item))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_cursor_engine_only_set(item, EINA_TRUE);
+   if (!elm_gengrid_item_cursor_engine_only_get(item))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_item_cursor_engine_only_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_engine_only_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_engine_only_get_p_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_engine_only_get_p_02);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_engine_only_set.c
deleted file mode 100644 (file)
index f03184f..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Elementary_Cursor.h>
-#include <Evas.h>
-#include <Eina.h>
-
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL, *box = NULL;
-static Elm_Gengrid_Item_Class *gic = NULL;
-static Elm_Object_Item *item = NULL;
-static const char *cursor = "boat";
-static const char *ret = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_cursor_engine_only_set elm_gengrid_item_cursor_engine_only_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   box = elm_box_add(main_win);
-   if (box == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
-     }
-   elm_win_resize_object_add(main_win, box);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   elm_gengrid_item_size_set(gengrid, 150, 150);
-   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_box_pack_end(box, gengrid);
-   gic = elm_gengrid_item_class_new();
-   if (gic == NULL)
-   {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid item class in the gengrid widget..", __FILE__, __LINE__);
-   }
-   item = elm_gengrid_item_append(gengrid, gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   evas_object_show(box);
-   evas_object_show(gengrid);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
-   elm_gengrid_item_cursor_set(item, cursor);
-   return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
-   ret = elm_gengrid_item_cursor_get(item);
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_gengrid_item_cursor_engine_only_set
- * @{
- * @objective Positive Test case 01 checks whether cursor search flag is set properly
- * to a given gengrid item
- * @n Input Data:
- * @li gengrid item
- * @li cursor search flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_cursor_set to setup a custom cursor to an item
- * @step 3 Check whether custom cursor has been set up
- * @step 5 Call elm_gengrid_item_cursor_engine_only_set to set up cursor search flag
- * @step 6 Check whether cursor search flag has been set up properly
- *
- * @passcondition
- * @li Test passes if a gengrid item is created, custom cursor and cursor search flag are set up properly
-  * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_engine_only_set_p_01)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   ecore_timer_add(2, _set_timer_cb_p, NULL);
-   ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
-   ecore_main_loop_begin();
-   if (ret == NULL || strcmp(ret, cursor))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s_%s_%s[%d] : Test has failed..", ret, cursor, __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_cursor_engine_only_set(item, EINA_FALSE);
-   if (elm_gengrid_item_cursor_engine_only_get(item))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_cursor_engine_only_set(item, EINA_TRUE);
-   if (!elm_gengrid_item_cursor_engine_only_get(item))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_cursor_engine_only_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_engine_only_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_engine_only_set_p_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get.c
deleted file mode 100644 (file)
index b8de102..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Elementary_Cursor.h>
-#include <Evas.h>
-#include <Eina.h>
-static Evas_Object *main_win = NULL, *gengrid = NULL, *box = NULL;
-static Elm_Gengrid_Item_Class *gic = NULL;
-static Elm_Object_Item *item = NULL;
-static const char *cursor = "boat";
-static const char *ret = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_cursor_style_get elm_gengrid_item_cursor_style_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   box = elm_box_add(main_win);
-   if (box == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
-     }
-   elm_win_resize_object_add(main_win, box);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   elm_gengrid_item_size_set(gengrid, 150, 150);
-   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_box_pack_end(box, gengrid);
-   gic = elm_gengrid_item_class_new();
-   if (gic == NULL)
-   {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid item class in the gengrid widget..", __FILE__, __LINE__);
-   }
-   item = elm_gengrid_item_append(gengrid, gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   evas_object_show(box);
-   evas_object_show(gengrid);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
-   elm_gengrid_item_cursor_set(item, cursor);
-   return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
-   ret = elm_gengrid_item_cursor_get(item);
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_gengrid_item_cursor_style_get
- * @{
- * @objective Positive Test case 01 checks whether a gotten cursor style is NULL by default
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_cursor_style_get to get default cursor style of a gengrid item
- * @step 3 Check whether gotten cursor style is equal to NULL by default
- *
- * @passcondition : Test passes if element is added properly, cursor style is equal to NULL by default
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_style_get_p_01)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   //cursor hasn't been set
-   if (NULL != elm_gengrid_item_cursor_style_get(item))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_cursor_style_get
- * @{
- * @objective Positive Test case 02 checks whether a gotten cursor style equals to one has been set
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_cursor_set to setup a custom cursor to an item
- * @step 3 Check whether custom cursor has been set to an item
- * @step 4 Call elm_gengrid_item_cursor_style_set to set up cursor style to an item
- * @step 5 Check whether cursor style has been set up
- *
- * @passcondition : Test passes if a gengrid element is created, custom cursor is set to an item and
- * cursor style is set to an item
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_style_get_p_02)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   ecore_timer_add(2, _set_timer_cb_p, NULL);
-   ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
-   ecore_main_loop_begin();
-   if (ret == NULL || strcmp(ret, cursor))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const char* cursor_style = "transparent";
-   elm_gengrid_item_cursor_style_set(item, cursor_style);
-
-   const char* actual_cursor_style = elm_gengrid_item_cursor_style_get(item);
-   if (!actual_cursor_style || 0 != strcmp(actual_cursor_style, cursor_style))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_cursor_style_get
- * @{
- * @objective Negative Test case 01: checks if function working properly with NULL
- * instead of item
- * @n Input Data:
- * @li NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_cursor_style_get with NULL instead of item
- * @step 2 Check returned value
- *
- * @passcondition : Test passes if there is no segmentation fault and returned value equal to NULL
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_style_get_n_01)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (elm_gengrid_item_cursor_style_get(NULL) != NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_cursor_style_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_style_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_p_02);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_get_set.c
new file mode 100644 (file)
index 0000000..87a71dd
--- /dev/null
@@ -0,0 +1,220 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <Elementary_Cursor.h>
+#include <Evas.h>
+#include <Eina.h>
+static Evas_Object *main_win = NULL, *gengrid = NULL, *box = NULL;
+static Elm_Gengrid_Item_Class *gic = NULL;
+static Elm_Object_Item *item = NULL;
+static const char *cursor = "boat";
+static const char *ret = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_cursor_style_get elm_gengrid_item_cursor_style_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ * @step 4 Create gengrid item class object
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   box = elm_box_add(main_win);
+   if (box == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
+     }
+   elm_win_resize_object_add(main_win, box);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   elm_gengrid_item_size_set(gengrid, 150, 150);
+   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_box_pack_end(box, gengrid);
+   gic = elm_gengrid_item_class_new();
+   if (gic == NULL)
+   {
+      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid item class in the gengrid widget..", __FILE__, __LINE__);
+   }
+   item = elm_gengrid_item_append(gengrid, gic, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   evas_object_show(box);
+   evas_object_show(gengrid);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _set_timer_cb_p(void* data)
+{
+   elm_gengrid_item_cursor_set(item, cursor);
+   return ECORE_CALLBACK_CANCEL;
+}
+
+static Eina_Bool _get_and_quit_timer_cb_p(void *data)
+{
+   ret = elm_gengrid_item_cursor_get(item);
+   ecore_main_loop_quit();
+   return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_style_get
+ * @{
+ * @objective Positive Test case 01 checks whether a gotten cursor style is NULL by default
+ * @n Input Data:
+ * @li gengrid item
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
+ * @step 2 Call elm_gengrid_item_cursor_style_get to get default cursor style of a gengrid item
+ * @step 3 Check whether gotten cursor style is equal to NULL by default
+ *
+ * @passcondition : Test passes if element is added properly, cursor style is equal to NULL by default
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_style_get_p_01)
+{
+   //cursor hasn't been set
+   if (NULL != elm_gengrid_item_cursor_style_get(item))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_style_get
+ * @{
+ * @objective Positive Test case 02 checks whether a gotten cursor style equals to one has been set
+ * @n Input Data:
+ * @li gengrid item
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
+ * @step 2 Call elm_gengrid_item_cursor_set to setup a custom cursor to an item
+ * @step 3 Check whether custom cursor has been set to an item
+ * @step 4 Call elm_gengrid_item_cursor_style_set to set up cursor style to an item
+ * @step 5 Check whether cursor style has been set up
+ *
+ * @passcondition : Test passes if a gengrid element is created, custom cursor is set to an item and
+ * cursor style is set to an item
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_style_get_p_02)
+{
+   ecore_timer_add(0.2, _set_timer_cb_p, NULL);
+   ecore_timer_add(0.4, _get_and_quit_timer_cb_p, NULL);
+   ecore_main_loop_begin();
+   if (ret == NULL || strcmp(ret, cursor))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   const char* cursor_style = "transparent";
+   elm_gengrid_item_cursor_style_set(item, cursor_style);
+
+   const char* actual_cursor_style = elm_gengrid_item_cursor_style_get(item);
+   if (!actual_cursor_style || 0 != strcmp(actual_cursor_style, cursor_style))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_style_get
+ * @{
+ * @objective Negative Test case 01: checks if function working properly with NULL
+ * instead of item
+ * @n Input Data:
+ * @li NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_cursor_style_get with NULL instead of item
+ * @step 2 Check returned value
+ *
+ * @passcondition : Test passes if there is no segmentation fault and returned value equal to NULL
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_style_get_n_01)
+{
+   if (elm_gengrid_item_cursor_style_get(NULL) != NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_cursor_style_set
+ * @{
+ * @objective Negative Test case 01: checks if function working properly with NULL
+ * instead of item
+ * @n Input Data:
+ * @li NULL
+ * @li cursor_style
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_cursor_style_set with NULL instead of item
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_cursor_style_set_n_01)
+{
+   const char* cursor_style = "transparent";
+   elm_gengrid_item_cursor_style_set(NULL, cursor_style);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_item_cursor_style_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_style_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_p_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_p_02);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_get_n_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_set_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_cursor_style_set.c
deleted file mode 100644 (file)
index f466e7f..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Elementary_Cursor.h>
-#include <Evas.h>
-#include <Eina.h>
-static Evas_Object *main_win = NULL, *gengrid = NULL, *box = NULL;
-static Elm_Gengrid_Item_Class *gic = NULL;
-static Elm_Object_Item *item = NULL;
-static const char *cursor = "boat";
-static const char *ret = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_cursor_style_set elm_gengrid_item_cursor_style_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   box = elm_box_add(main_win);
-   if (box == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
-     }
-   elm_win_resize_object_add(main_win, box);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   elm_gengrid_item_size_set(gengrid, 150, 150);
-   evas_object_size_hint_align_set(gengrid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_box_pack_end(box, gengrid);
-   gic = elm_gengrid_item_class_new();
-   if (gic == NULL)
-   {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid item class in the gengrid widget..", __FILE__, __LINE__);
-   }
-   item = elm_gengrid_item_append(gengrid, gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   evas_object_show(box);
-   evas_object_show(gengrid);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
-   elm_gengrid_item_cursor_set(item, cursor);
-   return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
-   ret = elm_gengrid_item_cursor_get(item);
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_gengrid_item_cursor_style_set
- * @{
- * @objective Positive Test case 01 checks whether different styles could be set to a
- * custom cursor for a given gengrid item
- * @n Input Data:
- * @li gengrid item
- * @li cursor style
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_cursor_set to setup custom cursor to an item
- * @step 3 Check whether custom cursor has been set
- * @step 4 Call elm_gengrid_item_cursor_style_set to setup cursor style
- * @step 5 Check whether cursor style for a given gengrid item is equal to one has been set
- *
- * @passcondition
- * @li Test passes if element is created, custom cursor is set, cursor style is set
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_style_set_p_01)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   ecore_timer_add(2, _set_timer_cb_p, NULL);
-   ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
-   ecore_main_loop_begin();
-   if (ret == NULL || strcmp(ret, cursor))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const char* cursor_style = "transparent";
-   elm_gengrid_item_cursor_style_set(item, cursor_style);
-   const char* actual_cursor_style = elm_gengrid_item_cursor_style_get(item);
-   if (!actual_cursor_style || 0 != strcmp(actual_cursor_style, cursor_style))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_cursor_style_set
- * @{
- * @objective Negative Test case 01: checks if function working properly with NULL
- * instead of item
- * @n Input Data:
- * @li NULL
- * @li cursor_style
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_cursor_style_set with NULL instead of item
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_cursor_style_set_n_01)
-{
-   if (main_win == NULL || box == NULL || gengrid == NULL || gic == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const char* cursor_style = "transparent";
-   elm_gengrid_item_cursor_style_set(NULL, cursor_style);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_cursor_style_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_cursor_style_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_set_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_cursor_style_set_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get.c
deleted file mode 100644 (file)
index 9725818..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Elm_Gengrid_Item_Class *it_class_1 = NULL, *it_class_2 = NULL;
-
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_item_class_get elm_gengrid_item_item_class_get()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create two item classes
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class_1 = elm_gengrid_item_class_new();
-   it_class_2 = elm_gengrid_item_class_new();
-   if ((it_class_1 == NULL) || (it_class_2 == NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-   it_class_1->item_style = "default";
-   it_class_1->func.text_get = NULL;
-   it_class_1->func.content_get = NULL;
-   it_class_1->func.state_get = NULL;
-   it_class_1->func.del = NULL;
-
-   it_class_2->item_style = "Extraordinary";
-   it_class_2->func.text_get = NULL;
-   it_class_2->func.content_get = NULL;
-   it_class_2->func.state_get = NULL;
-   it_class_2->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   elm_gengrid_item_class_free(it_class_1);
-   elm_gengrid_item_class_free(it_class_2);
-   it_class_1 = NULL;
-   it_class_2 = NULL;
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_item_class_get
- * @{
- * @objective Positive Test case checks whether function returns a correct item class
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 create two items with different classes
- * @step 2 call elm_gengrid_item_item_class_get and check returned classes
- *
- * @passcondition: Test passes if returned class match expected class
- * @}
- */
-START_TEST(utc_elm_gengrid_item_item_class_get_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class_1, "Lonely item.", NULL, NULL);
-   Elm_Object_Item* item2 = elm_gengrid_item_append(gengrid, it_class_2, "Another lonely item. They are too different ot be together", NULL, NULL);
-
-   if ( (elm_gengrid_item_item_class_get(item1) == it_class_1) && (elm_gengrid_item_item_class_get(item2) == it_class_2))
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-   else
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-   elm_object_item_del(item1);
-   elm_object_item_del(item2);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_item_class_get
- * @{
- * @objective Negative Test case checks whether no gengrid has no item class, and passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid item NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_item_class_get by passing NULL instead of gengrid object
- *
- * @passcondition : Test passes unless function provokes segmentation fault, and return value is NULL
- * @}
- */
-START_TEST(utc_elm_gengrid_item_item_class_get_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item1 = NULL;
-
-   if (TEST_PASS != UNITEST_FUNC_NEG_RET(NULL, elm_gengrid_item_item_class_get, item1))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_item_class_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_item_class_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_get_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_get_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get_update.c b/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_get_update.c
new file mode 100644 (file)
index 0000000..3983517
--- /dev/null
@@ -0,0 +1,181 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Elm_Gengrid_Item_Class *it_class_1 = NULL, *it_class_2 = NULL;
+
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_item_class_update elm_gengrid_item_item_class_update()
+ * @precondition
+ * @step 1 create window
+ * @step 2 put a gengrid on the window
+ * @step 3 create two item classes
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
+     }
+
+   it_class_1 = elm_gengrid_item_class_new();
+   it_class_2 = elm_gengrid_item_class_new();
+   if ((it_class_1 == NULL) || (it_class_2 == NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
+     }
+   it_class_1->item_style = "First";
+   it_class_1->func.text_get = NULL;
+   it_class_1->func.content_get = NULL;
+   it_class_1->func.state_get = NULL;
+   it_class_1->func.del = NULL;
+
+   it_class_2->item_style = "Second";
+   it_class_2->func.text_get = NULL;
+   it_class_2->func.content_get = NULL;
+   it_class_2->func.state_get = NULL;
+   it_class_2->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   elm_gengrid_item_class_free(it_class_1);
+   elm_gengrid_item_class_free(it_class_2);
+   it_class_1 = NULL;
+   it_class_2 = NULL;
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_item_item_class_update
+ * @{
+ * @objective Positive Test case checks whether function returns a correct item class
+ * @n Input Data:
+ * @li gengrid item
+ * @li item class
+ *
+ * @procedure
+ * @step 1 create two items with different classes
+ * @step 2 call elm_gengrid_item_item_class_update to change classes for items
+ * @step 3 call elm_gengrid_item_item_class_get and check returned classes
+ *
+ * @passcondition: Test passes if returned class match expected class
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_item_class_update_p_1)
+{
+   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class_1, "Inferior item.", NULL, NULL);
+   Elm_Object_Item* item2 = elm_gengrid_item_append(gengrid, it_class_2, "Superior item.", NULL, NULL);
+
+   elm_gengrid_item_item_class_update(item1, it_class_2);
+   elm_gengrid_item_item_class_update(item2, it_class_1);
+
+   if ( (elm_gengrid_item_item_class_get(item1) == it_class_2) && (elm_gengrid_item_item_class_get(item2) == it_class_1))
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+     }
+   else
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_item_class_update
+ * @{
+ * @objective Negative Test case checks whether function cannot update item class with wrong input params,
+ * and passing invalid value to a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid item NULL
+ * @li item class NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_item_class_update by passing NULL instead of gengrid object
+ *
+ * @passcondition : Test passes unless function provokes segmentation fault, and item remains with class it_class_1
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_item_class_update_n_1)
+{
+   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class_1, "Happy item.", NULL, NULL);
+
+   UNITEST_FUNC_NEG(elm_gengrid_item_item_class_update, item1, it_class_2);
+
+   //class for item1 should be the same
+   if (elm_gengrid_item_item_class_get(item1) != it_class_1)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Class was changed.", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+
+   elm_object_item_del(item1);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_item_class_get
+ * @{
+ * @objective Negative Test case checks whether no gengrid has no item class, and passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid item NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_item_class_get by passing NULL instead of gengrid object
+ *
+ * @passcondition : Test passes unless function provokes segmentation fault, and return value is NULL
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_item_class_get_n_1)
+{
+   Elm_Object_Item* item1 = NULL;
+
+   if (TEST_PASS != UNITEST_FUNC_NEG_RET(NULL, elm_gengrid_item_item_class_get, item1))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+   else
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+     }
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_item_item_class_get_update()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_item_class_get_update");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_update_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_update_n_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_get_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_update.c b/TC/elementary/gengrid/utc_elm_gengrid_item_item_class_update.c
deleted file mode 100644 (file)
index 370c41c..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Elm_Gengrid_Item_Class *it_class_1 = NULL, *it_class_2 = NULL;
-
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_item_class_update elm_gengrid_item_item_class_update()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create two item classes
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class_1 = elm_gengrid_item_class_new();
-   it_class_2 = elm_gengrid_item_class_new();
-   if ((it_class_1 == NULL) || (it_class_2 == NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-   it_class_1->item_style = "First";
-   it_class_1->func.text_get = NULL;
-   it_class_1->func.content_get = NULL;
-   it_class_1->func.state_get = NULL;
-   it_class_1->func.del = NULL;
-
-   it_class_2->item_style = "Second";
-   it_class_2->func.text_get = NULL;
-   it_class_2->func.content_get = NULL;
-   it_class_2->func.state_get = NULL;
-   it_class_2->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   elm_gengrid_item_class_free(it_class_1);
-   elm_gengrid_item_class_free(it_class_2);
-   it_class_1 = NULL;
-   it_class_2 = NULL;
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_item_class_update
- * @{
- * @objective Positive Test case checks whether function returns a correct item class
- * @n Input Data:
- * @li gengrid item
- * @li item class
- *
- * @procedure
- * @step 1 create two items with different classes
- * @step 2 call elm_gengrid_item_item_class_update to change classes for items
- * @step 3 call elm_gengrid_item_item_class_get and check returned classes
- *
- * @passcondition: Test passes if returned class match expected class
- * @}
- */
-START_TEST(utc_elm_gengrid_item_item_class_update_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class_1, "Inferior item.", NULL, NULL);
-   Elm_Object_Item* item2 = elm_gengrid_item_append(gengrid, it_class_2, "Superior item.", NULL, NULL);
-
-   elm_gengrid_item_item_class_update(item1, it_class_2);
-   elm_gengrid_item_item_class_update(item2, it_class_1);
-
-   if ( (elm_gengrid_item_item_class_get(item1) == it_class_2) && (elm_gengrid_item_item_class_get(item2) == it_class_1))
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-   else
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_item_class_update
- * @{
- * @objective Negative Test case checks whether function cannot update item class with wrong input params,
- * and passing invalid value to a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid item NULL
- * @li item class NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_item_class_update by passing NULL instead of gengrid object
- *
- * @passcondition : Test passes unless function provokes segmentation fault, and item remains with class it_class_1
- * @}
- */
-START_TEST(utc_elm_gengrid_item_item_class_update_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class_1, "Happy item.", NULL, NULL);
-
-   UNITEST_FUNC_NEG(elm_gengrid_item_item_class_update, item1, it_class_2);
-
-   //class for item1 should be the same
-   if (elm_gengrid_item_item_class_get(item1) != it_class_1)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Class was changed.", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-
-   elm_object_item_del(item1);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_item_class_update()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_item_class_update");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_update_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_item_class_update_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get.c
deleted file mode 100644 (file)
index 90c498a..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_select_mode_get elm_gengrid_item_select_mode_get()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_select_mode_get
- * @{
- * @objective Positive Test case checks whether append item select mode is
- * equal to the predefined select mode
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to a gengrid
- * @step 2 Call elm_gengrid_item_select_mode_set to set the select mode for all items in gengrid
- * @step 3 Call elm_gengrid_item_select_mode_get to get the select mode of actually contained items in gengrid
- * @step 4 Check if appended item select mode is equal to existed in array item select mode
- *
- * @passcondition: Test passes if appended item select mode is equal to existed in array item select mode
- * @}
- */
-START_TEST(utc_elm_gengrid_item_select_mode_get_p_1)
-{
-   unsigned int i;
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   const unsigned int ITEMS_COUNT = 4;
-   Elm_Object_Item* items[ITEMS_COUNT];
-   char* strings[] = {"Zero", "One", "Two", "Three"};
-   int modes[] = {ELM_OBJECT_SELECT_MODE_DEFAULT, ELM_OBJECT_SELECT_MODE_ALWAYS, ELM_OBJECT_SELECT_MODE_NONE, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY };
-
-   for (i=0; i<ITEMS_COUNT; ++i)
-     {
-        items[i] = elm_gengrid_item_append(gengrid, it_class, strings[i], NULL, NULL);
-        elm_gengrid_item_select_mode_set(items[i], modes[i]);
-     }
-
-   Eina_Bool result = EINA_TRUE;
-   for (i=0; i<ITEMS_COUNT && result; ++i)
-     {
-        result &= (elm_gengrid_item_select_mode_get(items[i]) == modes[i]);
-     }
-
-   for (i=0; i<ITEMS_COUNT; ++i)
-     {
-        elm_object_item_del(items[i]);
-     }
-
-   if ( result )
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-   else
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_select_mode_get
- * @{
- * @objective Negative Test case checks whether passing invalid value to
- * a function provokes no segmentation fault and return result is ELM_OBJECT_SELECT_MODE_MAX
- * @n Input Data:
- * @li gengrid item NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_select_mode_get by passing NULL instead of gengrid item
- *
- * @passcondition : Test passes unless function provokes segmentation fault, and return value is ELM_OBJECT_SELECT_MODE_MAX
- * @}
- */
-START_TEST(utc_elm_gengrid_item_select_mode_get_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   if (ELM_OBJECT_SELECT_MODE_MAX != elm_gengrid_item_select_mode_get(NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_select_mode_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_select_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_get_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_get_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_get_set.c
new file mode 100644 (file)
index 0000000..a9af228
--- /dev/null
@@ -0,0 +1,191 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_select_mode_set elm_gengrid_item_select_mode_set()
+ * @precondition
+ * @step 1 create window
+ * @step 2 put a gengrid on the window
+ * @step 3 create an item class
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
+     }
+
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
+     }
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   elm_gengrid_item_class_free(it_class);
+   it_class = NULL;
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_item_select_mode_set
+ * @{
+ * @objective Positive Test case checks whether append item select mode is
+ * equal to the predefined select mode
+ * @n Input Data:
+ * @li gengrid item
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add items to a gengrid
+ * @step 2 Call elm_gengrid_item_select_mode_set to set the select mode for all items in gengrid
+ * @step 3 Call elm_gengrid_item_select_mode_get to get the select mode of actually contained items in gengrid
+ * @step 4 Check if appended item select mode is equal to existed in array item select mode
+ *
+ * @passcondition: Test passes if appended item select mode is equal to existed in array item select mode
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_select_mode_set_p_1)
+{
+   unsigned int i;
+
+   const unsigned int ITEMS_COUNT = 4;
+   Elm_Object_Item* items[ITEMS_COUNT];
+   char* strings[] = {"Zero", "One", "Two", "Three"};
+   int modes[] = {ELM_OBJECT_SELECT_MODE_DEFAULT, ELM_OBJECT_SELECT_MODE_ALWAYS, ELM_OBJECT_SELECT_MODE_NONE, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY };
+
+   for (i=0; i<ITEMS_COUNT; ++i)
+     {
+        items[i] = elm_gengrid_item_append(gengrid, it_class, strings[i], NULL, NULL);
+        elm_gengrid_item_select_mode_set(items[i], modes[i]);
+     }
+
+   Eina_Bool result = EINA_TRUE;
+   for (i=0; i<ITEMS_COUNT && result; ++i)
+     {
+        result &= (elm_gengrid_item_select_mode_get(items[i]) == modes[i]);
+     }
+
+   for (i=0; i<ITEMS_COUNT; ++i)
+     {
+        elm_object_item_del(items[i]);
+     }
+
+   if ( result )
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+     }
+   else
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_select_mode_get
+ * @{
+ * @objective Negative Test case checks whether passing invalid value to
+ * a function provokes no segmentation fault and return result is ELM_OBJECT_SELECT_MODE_MAX
+ * @n Input Data:
+ * @li gengrid item NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_select_mode_get by passing NULL instead of gengrid item
+ *
+ * @passcondition : Test passes unless function provokes segmentation fault, and return value is ELM_OBJECT_SELECT_MODE_MAX
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_select_mode_get_n_1)
+{
+   if (ELM_OBJECT_SELECT_MODE_MAX != elm_gengrid_item_select_mode_get(NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+   else
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+     }
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_select_mode_set
+ * @{
+ * @objective Negative Test case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid item NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_select_mode_set by passing NULL instead of gengrid item
+ * @step 2 Check item selection mode. It should not change.
+ *
+ * @passcondition : Test passes unless function provokes segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_select_mode_set_n_1)
+{
+   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class, "Target item", NULL, NULL);
+   elm_gengrid_item_select_mode_set(item1, ELM_OBJECT_SELECT_MODE_ALWAYS);
+
+   elm_gengrid_item_select_mode_set(NULL, ELM_OBJECT_SELECT_MODE_ALWAYS);
+
+   if (ELM_OBJECT_SELECT_MODE_ALWAYS != elm_gengrid_item_select_mode_get(item1))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+   else
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item1);
+}
+END_TEST
+
+/**
+ @}
+ */
+
+TCase * _utc_elm_gengrid_item_select_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_select_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_set_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_get_n_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_set_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_select_mode_set.c
deleted file mode 100644 (file)
index e1fcc7f..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_select_mode_set elm_gengrid_item_select_mode_set()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_select_mode_set
- * @{
- * @objective Positive Test case checks whether append item select mode is
- * equal to the predefined select mode
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to a gengrid
- * @step 2 Call elm_gengrid_item_select_mode_set to set the select mode for all items in gengrid
- * @step 3 Call elm_gengrid_item_select_mode_get to get the select mode of actually contained items in gengrid
- * @step 4 Check if appended item select mode is equal to existed in array item select mode
- *
- * @passcondition: Test passes if appended item select mode is equal to existed in array item select mode
- * @}
- */
-START_TEST(utc_elm_gengrid_item_select_mode_set_p_1)
-{
-   unsigned int i;
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const unsigned int ITEMS_COUNT = 4;
-   Elm_Object_Item* items[ITEMS_COUNT];
-   char* strings[] = {"Zero", "One", "Two", "Three"};
-   int modes[] = {ELM_OBJECT_SELECT_MODE_DEFAULT, ELM_OBJECT_SELECT_MODE_ALWAYS, ELM_OBJECT_SELECT_MODE_NONE, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY };
-
-   for (i=0; i<ITEMS_COUNT; ++i)
-     {
-        items[i] = elm_gengrid_item_append(gengrid, it_class, strings[i], NULL, NULL);
-        elm_gengrid_item_select_mode_set(items[i], modes[i]);
-     }
-
-   Eina_Bool result = EINA_TRUE;
-   for (i=0; i<ITEMS_COUNT && result; ++i)
-     {
-        result &= (elm_gengrid_item_select_mode_get(items[i]) == modes[i]);
-     }
-
-   for (i=0; i<ITEMS_COUNT; ++i)
-     {
-        elm_object_item_del(items[i]);
-     }
-
-   if ( result )
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-   else
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_select_mode_set
- * @{
- * @objective Negative Test case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid item NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_select_mode_set by passing NULL instead of gengrid item
- * @step 2 Check item selection mode. It should not change.
- *
- * @passcondition : Test passes unless function provokes segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_select_mode_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item1 = elm_gengrid_item_append(gengrid, it_class, "Target item", NULL, NULL);
-   elm_gengrid_item_select_mode_set(item1, ELM_OBJECT_SELECT_MODE_ALWAYS);
-
-   elm_gengrid_item_select_mode_set(NULL, ELM_OBJECT_SELECT_MODE_ALWAYS);
-
-   if (ELM_OBJECT_SELECT_MODE_ALWAYS != elm_gengrid_item_select_mode_get(item1))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item1);
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_select_mode_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_select_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_select_mode_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_selected_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_selected_get.c
deleted file mode 100644 (file)
index a9ecaa5..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Evas.h>
-#include <Eina.h>
-
-static Evas_Object* main_win = NULL;
-static Evas_Object* gengrid  = NULL;
-static Elm_Gengrid_Item_Class* it_class = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_selected_get elm_gengrid_item_selected_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create gengrid item class object and set up its fields
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_selected_get
- * @{
- * @objective Positive Test 01 case checks whether the selection attribute
- * was obtained properly from a given gengrid item
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_selected_set to setup a selection state to an item
- * @step 3 Get selection state of an item by calling elm_gengrid_item_selected_get
- * @step 4 Check if an item is selected/unselected
- *
- * @passcondition
- * @li Test passes if element added was obtained and selection state of an item
- * is equal to one has been set
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_selected_get_p_01)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item =  elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool selected = EINA_FALSE;
-   elm_gengrid_item_selected_set(item, selected);
-
-   if (selected != elm_gengrid_item_selected_get(item))
-     {
-        elm_object_item_del(item);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   selected = !selected;
-   elm_gengrid_item_selected_set(item, selected);
-
-   if (selected != elm_gengrid_item_selected_get(item))
-     {
-        elm_object_item_del(item);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_selected_get
- * @{
- * @objective Negative Test 01 case checks whether the calling function
- * elm_gengrid_item_selected_get with invalid value(NULL) does not result in
- * segmentation fault
- * @n Input Data:
- * @li NULL instead of the elementary object
- *
- * @procedure
- * @step 1 Call elm_gengrid_add with invalid value instead of the elementary object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there're no segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_selected_get_n_01)
-{
-
-   Elm_Object_Item* it = NULL;
-
-   if (elm_gengrid_item_selected_get(it) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_selected_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_selected_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_selected_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_selected_get_set.c
new file mode 100644 (file)
index 0000000..d893355
--- /dev/null
@@ -0,0 +1,371 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <Evas.h>
+#include <Eina.h>
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_selected_set elm_gengrid_item_selected_set()
+ * @precondition
+ * @step 1 create window
+ * @step 2 put a gengrid on the window
+ * @step 3 create an item class
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (it_class != NULL)
+     {
+        elm_gengrid_item_class_free(it_class);
+        it_class = NULL;
+     }
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_item_selected_set
+ * @{
+ * @objective Positive Test 1 case checks whether selection attribute
+ * is passed properly for a given gengrid item
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
+ * @step 2 Call elm_gengrid_item_selected_set to setup a selection state to an item
+ * @step 3 Get selection state of an item by calling elm_gengrid_item_selected_get
+ * @step 4 Check if an item is selected/unselected
+ *
+ * @passcondition
+ * @li Test passes if element is added properly, got selection state of an item
+ * is equal to one has been set
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_selected_set_p_1)
+{
+   Elm_Object_Item *item =  elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   Eina_Bool selected = EINA_FALSE;
+   elm_gengrid_item_selected_set(item, selected);
+
+   if (selected != elm_gengrid_item_selected_get(item))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   selected = !selected;
+   elm_gengrid_item_selected_set(item, selected);
+
+   if (selected != elm_gengrid_item_selected_get(item))
+     {
+        elm_object_item_del(item);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_selected_set
+ * @{
+ * @objective Positive Test 2 case checks whether one item selection
+ * provokes unselection of another one. By default multiselection mode is off
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_multi_select_get to check select-mode
+ * @step 2 Call elm_gengrid_item_append to add items to a gengrid
+ * @step 3 Call elm_gengrid_item_selected_set to setup a selection state to items
+ * @step 4 Get selection state of the first item after the second was
+ * selected by calling elm_gengrid_item_selected_get
+ * @step 5 Check if an item is unselected
+ *
+ * @passcondition
+ * @li Test passes if  multiselect is OFF, first element has been unselected
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_selected_set_p_2)
+{
+   //By default, multi-selection is disabled on gengrids
+   Eina_Bool multi_selection = elm_gengrid_multi_select_get(gengrid);
+   if (EINA_FALSE != multi_selection)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   Elm_Object_Item *item1 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item1 == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_selected_set(item1, EINA_TRUE);
+
+   Elm_Object_Item *item2 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item2 == NULL)
+     {
+        elm_object_item_del(item1);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_selected_set(item2, EINA_TRUE);
+
+   if (EINA_FALSE != elm_gengrid_item_selected_get(item1))
+     {
+        elm_object_item_del(item1);
+        elm_object_item_del(item2);
+
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item1);
+   elm_object_item_del(item2);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_selected_set
+ * @{
+ * @objective Positive Test 3 case checks whether items are selected
+ * after setting multiselect ON
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_multi_select_set to set multiselect ON
+ * @step 2 Call elm_gengrid_item_append to add items to a gengrid
+ * @step 3 Call elm_gengrid_item_selected_set to setup a selection state to items
+ * @step 4 Get selection state of items by calling elm_gengrid_item_selected_get
+ * @step 5 Check if items are selected
+ *
+ * @passcondition
+ * @li Test passes if  multiselect is ON, items has been selected
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_selected_set_p_3)
+{
+   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
+
+   Eina_Bool multi_selection = elm_gengrid_multi_select_get(gengrid);
+   if (EINA_TRUE != multi_selection)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   Elm_Object_Item *item1 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item1 == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_selected_set(item1, EINA_TRUE);
+
+   Elm_Object_Item *item2 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item2 == NULL)
+     {
+        elm_object_item_del(item1);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_selected_set(item2, EINA_TRUE);
+
+   Eina_Bool item1_selected = elm_gengrid_item_selected_get(item1);
+   Eina_Bool item2_selected = elm_gengrid_item_selected_get(item2);
+
+   if (!(item1_selected && item2_selected))
+     {
+        elm_object_item_del(item1);
+        elm_object_item_del(item2);
+
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item1);
+   elm_object_item_del(item2);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_selected_set
+ * @{
+ * @objective Positive Test 4 case checks whether an item is selected
+ * after multiple select actions in both - multiselect and default mode
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection flag
+ *
+ * @procedure:
+ * @step 1 Call elm_gengrid_item_append to add item to a gengrid
+ * @step 2 Call elm_gengrid_item_selected_set multiple times  to mark item as selected one
+ * for default and multiselect mode
+ * @step 3 Get selection state of the item after few select actions
+ * @step 4 Get selection state of item by calling elm_gengrid_item_selected_get
+ * @step 5 Check if an item are selected
+ *
+ * @passcondition
+ * @li Test passes if an item has been selected for default and multiselect mode
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_selected_set_p_4)
+{
+   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_selected_set(item, EINA_TRUE);
+   elm_gengrid_item_selected_set(item, EINA_TRUE);
+
+   if (!elm_gengrid_item_selected_get(item))
+     {
+        elm_object_item_del(item);
+
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
+
+   elm_gengrid_item_selected_set(item, EINA_TRUE);
+   elm_gengrid_item_selected_set(item, EINA_TRUE);
+
+   if (!elm_gengrid_item_selected_get(item))
+     {
+        elm_object_item_del(item);
+
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_selected_set
+ * @{
+ * @objective Negative Test case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid object NULL
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_selected by passing NULL instead of gengrid object
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_selected_set_n_1)
+{
+   elm_gengrid_item_selected_set(NULL, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_selected_get
+ * @{
+ * @objective Negative Test 01 case checks whether the calling function
+ * elm_gengrid_item_selected_get with invalid value(NULL) does not result in
+ * segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the elementary object
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_add with invalid value instead of the elementary object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there're no segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_selected_get_n_01)
+{
+   Elm_Object_Item* it = NULL;
+
+   if (elm_gengrid_item_selected_get(it) != EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_gengrid_item_selected_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_selected_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_2);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_3);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_4);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_n_1);
+   tcase_add_test(tcase, utc_elm_gengrid_item_selected_get_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_selected_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_selected_set.c
deleted file mode 100644 (file)
index 4b69f00..0000000
+++ /dev/null
@@ -1,365 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <Evas.h>
-#include <Eina.h>
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_selected_set elm_gengrid_item_selected_set()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (it_class != NULL)
-     {
-        elm_gengrid_item_class_free(it_class);
-        it_class = NULL;
-     }
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_selected_set
- * @{
- * @objective Positive Test 1 case checks whether selection attribute
- * is passed properly for a given gengrid item
- * @n Input Data:
- * @li gengrid item
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 2 Call elm_gengrid_item_selected_set to setup a selection state to an item
- * @step 3 Get selection state of an item by calling elm_gengrid_item_selected_get
- * @step 4 Check if an item is selected/unselected
- *
- * @passcondition
- * @li Test passes if element is added properly, got selection state of an item
- * is equal to one has been set
- * @}
- */
-START_TEST(utc_elm_gengrid_item_selected_set_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *item =  elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Eina_Bool selected = EINA_FALSE;
-   elm_gengrid_item_selected_set(item, selected);
-
-   if (selected != elm_gengrid_item_selected_get(item))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   selected = !selected;
-   elm_gengrid_item_selected_set(item, selected);
-
-   if (selected != elm_gengrid_item_selected_get(item))
-     {
-        elm_object_item_del(item);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_selected_set
- * @{
- * @objective Positive Test 2 case checks whether one item selection
- * provokes unselection of another one. By default multiselection mode is off
- * @n Input Data:
- * @li gengrid item
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_multi_select_get to check select-mode
- * @step 2 Call elm_gengrid_item_append to add items to a gengrid
- * @step 3 Call elm_gengrid_item_selected_set to setup a selection state to items
- * @step 4 Get selection state of the first item after the second was
- * selected by calling elm_gengrid_item_selected_get
- * @step 5 Check if an item is unselected
- *
- * @passcondition
- * @li Test passes if  multiselect is OFF, first element has been unselected
- * @}
- */
-START_TEST(utc_elm_gengrid_item_selected_set_p_2)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   //By default, multi-selection is disabled on gengrids
-   Eina_Bool multi_selection = elm_gengrid_multi_select_get(gengrid);
-   if (EINA_FALSE != multi_selection)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *item1 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item1 == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(item1, EINA_TRUE);
-
-   Elm_Object_Item *item2 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item2 == NULL)
-     {
-        elm_object_item_del(item1);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(item2, EINA_TRUE);
-
-   if (EINA_FALSE != elm_gengrid_item_selected_get(item1))
-     {
-        elm_object_item_del(item1);
-        elm_object_item_del(item2);
-
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item1);
-   elm_object_item_del(item2);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_selected_set
- * @{
- * @objective Positive Test 3 case checks whether items are selected
- * after setting multiselect ON
- * @n Input Data:
- * @li gengrid item
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_multi_select_set to set multiselect ON
- * @step 2 Call elm_gengrid_item_append to add items to a gengrid
- * @step 3 Call elm_gengrid_item_selected_set to setup a selection state to items
- * @step 4 Get selection state of items by calling elm_gengrid_item_selected_get
- * @step 5 Check if items are selected
- *
- * @passcondition
- * @li Test passes if  multiselect is ON, items has been selected
- * @}
- */
-START_TEST(utc_elm_gengrid_item_selected_set_p_3)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
-
-   Eina_Bool multi_selection = elm_gengrid_multi_select_get(gengrid);
-   if (EINA_TRUE != multi_selection)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *item1 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item1 == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(item1, EINA_TRUE);
-
-   Elm_Object_Item *item2 = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item2 == NULL)
-     {
-        elm_object_item_del(item1);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(item2, EINA_TRUE);
-
-   Eina_Bool item1_selected = elm_gengrid_item_selected_get(item1);
-   Eina_Bool item2_selected = elm_gengrid_item_selected_get(item2);
-
-   if (!(item1_selected && item2_selected))
-     {
-        elm_object_item_del(item1);
-        elm_object_item_del(item2);
-
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item1);
-   elm_object_item_del(item2);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_selected_set
- * @{
- * @objective Positive Test 4 case checks whether an item is selected
- * after multiple select actions in both - multiselect and default mode
- * @n Input Data:
- * @li gengrid item
- * @li selection flag
- *
- * @procedure:
- * @step 1 Call elm_gengrid_item_append to add item to a gengrid
- * @step 2 Call elm_gengrid_item_selected_set multiple times  to mark item as selected one
- * for default and multiselect mode
- * @step 3 Get selection state of the item after few select actions
- * @step 4 Get selection state of item by calling elm_gengrid_item_selected_get
- * @step 5 Check if an item are selected
- *
- * @passcondition
- * @li Test passes if an item has been selected for default and multiselect mode
- * @}
- */
-START_TEST(utc_elm_gengrid_item_selected_set_p_4)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(item, EINA_TRUE);
-   elm_gengrid_item_selected_set(item, EINA_TRUE);
-
-   if (!elm_gengrid_item_selected_get(item))
-     {
-        elm_object_item_del(item);
-
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
-
-   elm_gengrid_item_selected_set(item, EINA_TRUE);
-   elm_gengrid_item_selected_set(item, EINA_TRUE);
-
-   if (!elm_gengrid_item_selected_get(item))
-     {
-        elm_object_item_del(item);
-
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_selected_set
- * @{
- * @objective Negative Test case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid object NULL
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_selected by passing NULL instead of gengrid object
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_selected_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_selected_set(NULL, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_gengrid_item_selected_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_selected_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_2);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_3);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_p_4);
-   tcase_add_test(tcase, utc_elm_gengrid_item_selected_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_size_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_size_get.c
deleted file mode 100644 (file)
index 580e202..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_size_get elm_gengrid_item_size_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_size_get
- * @{
- * @objective Positive Test case checks if function call with valid values to get the size
- * set for the items of a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li the Evas_Coord to store the items' width
- * @li the Evas_Coord to store the items' height
- *
- * @procedure
- * @step 1 Set the size set for the items of a given gengrid widget
- * @step 2 Call elm_gengrid_item_size_get with valid values
- *
- * @passcondition
- * @li Test passes if returned values are same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_size_get_p)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Coord w = 0, h = 0;
-
-   elm_gengrid_item_size_set(gengrid, 100, 60);
-   elm_gengrid_item_size_get(gengrid, &w, &h);
-   if (w != 100 || h != 60)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_size_get
- * @{
- * @objective Negative Test case 1 checks if function call with invalid value to get the size
- * set for the items of a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- * @li the Evas_Coord to store the items' width
- * @li the Evas_Coord to store the items' height
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_size_get with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if returned sizing values are same as they were before function call and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_size_get_n)
-{
-   Evas_Coord w = 10, h = 10;
-
-   elm_gengrid_item_size_get(NULL, &w, &h);
-   if (w != 10 || h != 10)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_size_get
- * @{
- * @objective Negative Test case 2 checks if function call with invalid value to get the size
- * set for the items of a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL, the gengrid object
- * @li NULL, the Evas_Coord to store the items' width
- * @li NULL, the Evas_Coord to store the items' height
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_size_get with invalid value instead of the gengrid object
- * @step 2 Call elm_gengrid_item_size_get with invalid value instead of the Evas_Coord to store the items' width
- * @step 3 Call elm_gengrid_item_size_get with invalid value instead of the Evas_Coord to store the items' height
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_size_get_n2)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Coord w = 0, h = 0;
-
-   UNITEST_FUNC_NEG(elm_gengrid_item_size_get, gengrid, &w, &h)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_size_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_size_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_p);
-   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_n);
-   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_n2);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_size_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_size_get_set.c
new file mode 100644 (file)
index 0000000..713711b
--- /dev/null
@@ -0,0 +1,193 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_size_get elm_gengrid_item_size_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window and show it
+ * @step 4 Set up the gengrid's item class for the item
+ * @step 5 Append an item in the gengrid
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(gengrid);
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_item_size_get
+ * @{
+ * @objective Positive Test case checks if function call with valid values to get the size
+ * set for the items of a given gengrid widget works properly and without segmentation fault
+ * @n Input Data:
+ * @li the gengrid object
+ * @li the Evas_Coord to store the items' width
+ * @li the Evas_Coord to store the items' height
+ *
+ * @procedure
+ * @step 1 Set the size set for the items of a given gengrid widget
+ * @step 2 Call elm_gengrid_item_size_get with valid values
+ *
+ * @passcondition
+ * @li Test passes if returned values are same as specified values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_size_get_p)
+{
+   Evas_Coord w = 0, h = 0;
+
+   elm_gengrid_item_size_set(gengrid, 100, 60);
+   elm_gengrid_item_size_get(gengrid, &w, &h);
+   if (w != 100 || h != 60)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_size_get
+ * @{
+ * @objective Negative Test case 1 checks if function call with invalid value to get the size
+ * set for the items of a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ * @li the Evas_Coord to store the items' width
+ * @li the Evas_Coord to store the items' height
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_size_get with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if returned sizing values are same as they were before function call and
+ * there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_size_get_n)
+{
+   Evas_Coord w = 10, h = 10;
+
+   elm_gengrid_item_size_get(NULL, &w, &h);
+   if (w != 10 || h != 10)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_size_get
+ * @{
+ * @objective Negative Test case 2 checks if function call with invalid value to get the size
+ * set for the items of a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the gengrid object
+ * @li NULL, the Evas_Coord to store the items' width
+ * @li NULL, the Evas_Coord to store the items' height
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_size_get with invalid value instead of the gengrid object
+ * @step 2 Call elm_gengrid_item_size_get with invalid value instead of the Evas_Coord to store the items' width
+ * @step 3 Call elm_gengrid_item_size_get with invalid value instead of the Evas_Coord to store the items' height
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_size_get_n2)
+{
+   Evas_Coord w = 0, h = 0;
+
+   UNITEST_FUNC_NEG(elm_gengrid_item_size_get, gengrid, &w, &h)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_size_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the size
+ * for the items of a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the gengrid object
+ * @li NULL, -100 as the items' width
+ * @li NULL, -60 as the items' height
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_size_set with invalid value instead of the gengrid object
+ * @step 2 Call elm_gengrid_item_size_set with invalid value instead of the items' width
+ * @step 3 Call elm_gengrid_item_size_set with invalid value instead of the items' height
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_size_set_n)
+{
+   UNITEST_FUNC_NEG(elm_gengrid_item_size_set, gengrid, -100, -60)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_item_size_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_size_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_p);
+   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_n);
+   tcase_add_test(tcase, utc_elm_gengrid_item_size_get_n2);
+   tcase_add_test(tcase, utc_elm_gengrid_item_size_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_size_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_size_set.c
deleted file mode 100644 (file)
index d0684e0..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_size_set elm_gengrid_item_size_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_item_size_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set the size
- * for the items of a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li 100 as the items' width
- * @li 60 as the items' height
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_size_set with valid values
- * @step 2 Get the size set for the items of a given gengrid widget
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_size_set_p)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Evas_Coord w = 0, h = 0;
-
-   elm_gengrid_item_size_set(gengrid, 100, 60);
-   elm_gengrid_item_size_get(gengrid, &w, &h);
-   if (w != 100 || h != 60)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_size_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the size
- * for the items of a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL, the gengrid object
- * @li NULL, -100 as the items' width
- * @li NULL, -60 as the items' height
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_size_set with invalid value instead of the gengrid object
- * @step 2 Call elm_gengrid_item_size_set with invalid value instead of the items' width
- * @step 3 Call elm_gengrid_item_size_set with invalid value instead of the items' height
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_size_set_n)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(elm_gengrid_item_size_set, gengrid, -100, -60)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_size_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_size_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_size_set_p);
-   tcase_add_test(tcase, utc_elm_gengrid_item_size_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get.c
deleted file mode 100644 (file)
index 323f742..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <string.h>
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_tooltip_style_get elm_gengrid_item_tooltip_style_get()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_style_get
- * @{
- * @objective Positive Test 01 case checks whether tooltip style of the item was correctly obtained
- * @li it The gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to a gengrid
- * @step 2 Call elm_gengrid_item_tooltip_style_set to set style for a given gengrid item's tooltip
- * @step 3 Call elm_gengrid_item_tooltip_text_set to set the text to be shown in a given gengrid item's
- * tooltips.
- * @step 4 Call elm_gengrid_item_tooltip_style_get to check for equality current item tooltip style with
- * tooltip style was set
- *
- * @passcondition: Test passes if current item tooltip style equals tooltip style was obtained by
- * calling elm_gengrid_item_tooltip_style_get
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_style_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item* item = NULL;
-   const char* string = "item_data";
-   item = elm_gengrid_item_append(gengrid, it_class, string, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const char* tooltip_message = "tooltip_messages";
-   elm_gengrid_item_tooltip_text_set(item, tooltip_message);
-   const char* theme_style = "default";
-   elm_gengrid_item_tooltip_style_set(item, theme_style);
-
-   if ( strcmp(elm_gengrid_item_tooltip_style_get(item), theme_style) != 0 )
-     {
-        elm_object_item_del(item);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_style_get
- * @{
- * @objective Negative Test 01 case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li it NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_tooltip_style_get by passing NULL instead of gengrid item
- * @step 2 Check item tooltip style. It should equals NULL and does not provokes segmentation fault
- *
- * @passcondition
- * @li Test passes unless function elm_gengrid_item_tooltip_style_get does not return NULL or
- * function provokes segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_style_get_n_01)
-{
-
-   if ( elm_gengrid_item_tooltip_style_get(NULL) != NULL )
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_item_tooltip_style_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_style_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_get_set.c
new file mode 100644 (file)
index 0000000..4aaf435
--- /dev/null
@@ -0,0 +1,241 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <string.h>
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_tooltip_style_set elm_gengrid_item_tooltip_style_set()
+ * @precondition
+ * @step 1 create window
+ * @step 2 put a gengrid on the window
+ * @step 3 create an item class
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
+     }
+
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
+     }
+
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
+     }
+
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+
+   elm_gengrid_item_class_free(it_class);
+   it_class = NULL;
+}
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_style_set
+ * @{
+ * @objective Positive Test 01 case checks whether tooltip style of the item was correctly set
+ * @n Input Data:
+ * @li it The gengrid item
+ * @li text The text to set in the content
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add items to a gengrid
+ * @step 2 Call elm_gengrid_item_tooltip_style_set to set style for a given gengrid item's tooltip
+ * @step 3 Call elm_gengrid_item_tooltip_text_set to set the text to be shown in a given gengrid item's
+ * tooltips.
+ * @step 4 Call elm_gengrid_item_tooltip_style_get to check for equality current item tooltip style with
+ * tooltip style was set
+ *
+ * @passcondition: Test passes if current item tooltip style equals tooltip style was set
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_style_set_p_01)
+{
+   const unsigned int ITEMS_COUNT = 2;
+   Elm_Object_Item* items[] = { NULL, NULL };
+   const char* strings[] = {"first_item_data", "second_item_data"};
+
+   unsigned int i = 0;
+   for(i = 0; i < ITEMS_COUNT; ++i) {
+      items[i] = elm_gengrid_item_append(gengrid, it_class, strings[i], NULL, NULL);
+      if (items[i] == NULL)
+        {
+      for( ; i != 0; ) {
+           elm_object_item_del(items[--i]);
+           }
+           ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        }
+   }
+
+   const char* theme_styles[] = { "default", "transparent" };
+   const char* tooltip_messages[] = { "tooltip_messages_1", "tooltip_messages_2" };
+
+   for(i = 0; i < ITEMS_COUNT; ++i) {
+      elm_gengrid_item_tooltip_text_set(items[i], tooltip_messages[i]);
+      elm_gengrid_item_tooltip_style_set(items[i], theme_styles[i]);
+   }
+
+   for(i = 0; i < ITEMS_COUNT; ++i) {
+      if ( strcmp(elm_gengrid_item_tooltip_style_get(items[i]), theme_styles[i]) != 0 )
+        {
+      for( i = 0; i < ITEMS_COUNT; ++i ) {
+           elm_object_item_del(items[i]);
+           }
+           ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        }
+   }
+
+   for(i = 0; i < ITEMS_COUNT; ++i) {
+      elm_object_item_del(items[i]);
+   }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_style_set
+ * @{
+ * @objective Negative Test 01 case checks whether passing invalid value(NULL)
+ * as the theme style to use on tooltips to the function does not provokes segmentation fault
+ * @n Input Data:
+ * @li it gengrid item with tooltip set.
+ * @li style the theme style to use on tooltips. NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add items to a gengrid
+ * @step 2 Call elm_gengrid_item_tooltip_style_set by passing NULL instead of
+ * item tooltip style
+ * @step 3 Check item tooltip style. It should equals NULL and no segmentation fault
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_style_set_n_01)
+{
+   const char* string = "item_data";
+   Elm_Object_Item* item = NULL;
+   item = elm_gengrid_item_append(gengrid, it_class, string, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_item_tooltip_style_set(item, NULL);
+   if ( elm_gengrid_item_tooltip_style_get(item) != NULL )
+     {
+        elm_object_item_del(item);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(item);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_style_set
+ * @{
+ * @objective Negative Test 02 case checks whether passing invalid value(NULL) to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li it gengrid item with tooltip set. NULL
+ * @li style the theme style to use on tooltips. NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_tooltip_style_set by passing NULL
+ * instead of gengrid item and item tooltip style
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_style_set_n_02)
+{
+   elm_gengrid_item_tooltip_style_set(NULL, NULL);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_style_get
+ * @{
+ * @objective Negative Test 01 case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li it NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_tooltip_style_get by passing NULL instead of gengrid item
+ * @step 2 Check item tooltip style. It should equals NULL and does not provokes segmentation fault
+ *
+ * @passcondition
+ * @li Test passes unless function elm_gengrid_item_tooltip_style_get does not return NULL or
+ * function provokes segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_style_get_n_01)
+{
+   if ( elm_gengrid_item_tooltip_style_get(NULL) != NULL )
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ @}
+ */
+
+TCase * _utc_elm_gengrid_item_tooltip_style_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_style_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_p_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_n_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_n_02);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_get_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_style_set.c
deleted file mode 100644 (file)
index 0b27fc2..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <string.h>
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_tooltip_style_set elm_gengrid_item_tooltip_style_set()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_style_set
- * @{
- * @objective Positive Test 01 case checks whether tooltip style of the item was correctly set
- * @n Input Data:
- * @li it The gengrid item
- * @li text The text to set in the content
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to a gengrid
- * @step 2 Call elm_gengrid_item_tooltip_style_set to set style for a given gengrid item's tooltip
- * @step 3 Call elm_gengrid_item_tooltip_text_set to set the text to be shown in a given gengrid item's
- * tooltips.
- * @step 4 Call elm_gengrid_item_tooltip_style_get to check for equality current item tooltip style with
- * tooltip style was set
- *
- * @passcondition: Test passes if current item tooltip style equals tooltip style was set
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_style_set_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-
-   const unsigned int ITEMS_COUNT = 2;
-   Elm_Object_Item* items[] = { NULL, NULL };
-   const char* strings[] = {"first_item_data", "second_item_data"};
-
-   unsigned int i = 0;
-   for(i = 0; i < ITEMS_COUNT; ++i) {
-      items[i] = elm_gengrid_item_append(gengrid, it_class, strings[i], NULL, NULL);
-      if (items[i] == NULL)
-        {
-      for( ; i != 0; ) {
-           elm_object_item_del(items[--i]);
-           }
-           ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        }
-   }
-
-   const char* theme_styles[] = { "default", "transparent" };
-   const char* tooltip_messages[] = { "tooltip_messages_1", "tooltip_messages_2" };
-
-   for(i = 0; i < ITEMS_COUNT; ++i) {
-      elm_gengrid_item_tooltip_text_set(items[i], tooltip_messages[i]);
-      elm_gengrid_item_tooltip_style_set(items[i], theme_styles[i]);
-   }
-
-   for(i = 0; i < ITEMS_COUNT; ++i) {
-      if ( strcmp(elm_gengrid_item_tooltip_style_get(items[i]), theme_styles[i]) != 0 )
-        {
-      for( i = 0; i < ITEMS_COUNT; ++i ) {
-           elm_object_item_del(items[i]);
-           }
-           ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        }
-   }
-
-   for(i = 0; i < ITEMS_COUNT; ++i) {
-      elm_object_item_del(items[i]);
-   }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_style_set
- * @{
- * @objective Negative Test 01 case checks whether passing invalid value(NULL)
- * as the theme style to use on tooltips to the function does not provokes segmentation fault
- * @n Input Data:
- * @li it gengrid item with tooltip set.
- * @li style the theme style to use on tooltips. NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to a gengrid
- * @step 2 Call elm_gengrid_item_tooltip_style_set by passing NULL instead of
- * item tooltip style
- * @step 3 Check item tooltip style. It should equals NULL and no segmentation fault
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_style_set_n_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-
-   const char* string = "item_data";
-   Elm_Object_Item* item = NULL;
-   item = elm_gengrid_item_append(gengrid, it_class, string, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_item_tooltip_style_set(item, NULL);
-   if ( elm_gengrid_item_tooltip_style_get(item) != NULL )
-     {
-        elm_object_item_del(item);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(item);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_style_set
- * @{
- * @objective Negative Test 02 case checks whether passing invalid value(NULL) to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li it gengrid item with tooltip set. NULL
- * @li style the theme style to use on tooltips. NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_tooltip_style_set by passing NULL
- * instead of gengrid item and item tooltip style
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_style_set_n_02)
-{
-
-   elm_gengrid_item_tooltip_style_set(NULL, NULL);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_tooltip_style_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_style_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_n_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_style_set_n_02);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get.c
deleted file mode 100644 (file)
index 7812d20..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-static enum TooltipStateEnum
-{
-   TOOLTIP_UNDEFINED = 1,
-   TOOLTIP_SET,
-   TOOLTIP_DELETED } tooltipState;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_tooltip_window_mode_get elm_gengrid_item_tooltip_window_mode_get()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   tooltipState = TOOLTIP_UNDEFINED;
-
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (it_class != NULL)
-     {
-        elm_gengrid_item_class_free(it_class);
-        it_class = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-}
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_window_mode_get
- * @{
- * @objective Positive Test 01 case checks whether function elm_gengrid_item_tooltip_window_mode_get
- * returns actual value of size restrictions on an object's tooltip
- * @n Input data:
- * @li it The tooltip's anchor object
- * @li disable If EINA_TRUE, size restrictions are disabled
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to the gengrid
- * @step 2 Call elm_gengrid_item_tooltip_window_mode_set to disable size restrictions on an object's tooltip
- * @step 3 Check whether the size restrictions on an object's tooltip was disabled
- * @step 4 Call elm_gengrid_item_tooltip_window_mode_set to enable size restrictions on an object's tooltip
- * @step 5 Check whether the size restrictions on an object's tooltip was enabled
- *
- * @passcondition: Test passes if elm_gengrid_item_tooltip_window_mode_get returns actual value of
- * size restrictions on an object's tooltip and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_tooltip_window_mode_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *it = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (it == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool disable = EINA_FALSE;
-   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   disable = EINA_TRUE;
-   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(it);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_window_mode_get
- * @{
- * @objective Negative Test 01 case checks whether passing invalid value(NULL) to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li it The tooltip's anchor object. Pass NULL as argument
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_tooltip_window_mode_get by passing NULL instead of item
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_item_tooltip_window_mode_get_n_01)
-{
-
-   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_get(NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_tooltip_window_mode_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_window_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_get_set.c
new file mode 100644 (file)
index 0000000..6f34a92
--- /dev/null
@@ -0,0 +1,212 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+static enum TooltipStateEnum
+{
+   TOOLTIP_UNDEFINED = 1,
+   TOOLTIP_SET,
+   TOOLTIP_DELETED } tooltipState;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_item_tooltip_window_mode_set elm_gengrid_item_tooltip_window_mode_set()
+ * @precondition
+ * @step 1 create window
+ * @step 2 put a gengrid on the window
+ * @step 3 create an item class
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   tooltipState = TOOLTIP_UNDEFINED;
+
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
+     }
+
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
+     }
+
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
+     }
+
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (it_class != NULL)
+     {
+        elm_gengrid_item_class_free(it_class);
+        it_class = NULL;
+     }
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+
+}
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_window_mode_get
+ * @{
+ * @objective Positive Test 01 case checks whether function elm_gengrid_item_tooltip_window_mode_get
+ * disable size restrictions on an object's tooltip
+ * @n Input Data:
+ * @li it The tooltip's anchor object
+ * @li disable If EINA_TRUE, size restrictions are disabled
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_append to add items to the gengrid
+ * @step 2 Call elm_gengrid_item_tooltip_window_mode_set to disable size restrictions on an object's tooltip
+ * @step 3 Check whether the size restrictions on an object's tooltip was disabled
+ * @step 4 Call elm_gengrid_item_tooltip_window_mode_set to enable size restrictions on an object's tooltip
+ * @step 5 Check whether the size restrictions on an object's tooltip was enabled
+ *
+ * @passcondition: Test passes if size restrictions on an object's tooltip was succesfully
+ * dizabled/enabled and there is no segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_window_mode_set_p_01)
+{
+   Elm_Object_Item *it = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (it == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   Eina_Bool disable = EINA_FALSE;
+   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
+     {
+        elm_object_item_del(it);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
+     {
+        elm_object_item_del(it);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   disable = EINA_TRUE;
+   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
+     {
+        elm_object_item_del(it);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
+     {
+        elm_object_item_del(it);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_object_item_del(it);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_window_mode_get
+ * @{
+ * @objective Negative Test 01 case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li it The tooltip's anchor object. Pass NULL as argument
+ * @li disable EINA_TRUE/EINA_FALSE to dizable/enable size restrictions
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_tooltip_window_mode_get by passing NULL instead of item
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault and
+ * return value is not EINA_FALSE
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_item_tooltip_window_mode_set_n_01)
+{
+   Eina_Bool disable = EINA_FALSE;
+   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_set(NULL, disable))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   disable = EINA_TRUE;
+   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_set(NULL, disable))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_item_tooltip_window_mode_get
+ * @{
+ * @objective Negative Test 01 case checks whether passing invalid value(NULL) to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li it The tooltip's anchor object. Pass NULL as argument
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_item_tooltip_window_mode_get by passing NULL instead of item
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_item_tooltip_window_mode_get_n_01)
+{
+   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_get(NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ @}
+ */
+
+TCase * _utc_elm_gengrid_item_tooltip_window_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_window_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_set_p_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_set_n_01);
+   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_get_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_set.c b/TC/elementary/gengrid/utc_elm_gengrid_item_tooltip_window_mode_set.c
deleted file mode 100644 (file)
index 43eacbf..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-static enum TooltipStateEnum
-{
-   TOOLTIP_UNDEFINED = 1,
-   TOOLTIP_SET,
-   TOOLTIP_DELETED } tooltipState;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_item_tooltip_window_mode_set elm_gengrid_item_tooltip_window_mode_set()
- * @precondition
- * @step 1 create window
- * @step 2 put a gengrid on the window
- * @step 3 create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   tooltipState = TOOLTIP_UNDEFINED;
-
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window.", __FILE__, __LINE__);
-     }
-
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window.", __FILE__, __LINE__);
-     }
-
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an item class.", __FILE__, __LINE__);
-     }
-
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (it_class != NULL)
-     {
-        elm_gengrid_item_class_free(it_class);
-        it_class = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-}
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_window_mode_get
- * @{
- * @objective Positive Test 01 case checks whether function elm_gengrid_item_tooltip_window_mode_get
- * disable size restrictions on an object's tooltip
- * @n Input Data:
- * @li it The tooltip's anchor object
- * @li disable If EINA_TRUE, size restrictions are disabled
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_append to add items to the gengrid
- * @step 2 Call elm_gengrid_item_tooltip_window_mode_set to disable size restrictions on an object's tooltip
- * @step 3 Check whether the size restrictions on an object's tooltip was disabled
- * @step 4 Call elm_gengrid_item_tooltip_window_mode_set to enable size restrictions on an object's tooltip
- * @step 5 Check whether the size restrictions on an object's tooltip was enabled
- *
- * @passcondition: Test passes if size restrictions on an object's tooltip was succesfully
- * dizabled/enabled and there is no segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_window_mode_set_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Elm_Object_Item *it = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (it == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool disable = EINA_FALSE;
-   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   disable = EINA_TRUE;
-   if (EINA_TRUE != elm_gengrid_item_tooltip_window_mode_set(it, disable))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   if (disable != elm_gengrid_item_tooltip_window_mode_get(it))
-     {
-        elm_object_item_del(it);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_object_item_del(it);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_item_tooltip_window_mode_get
- * @{
- * @objective Negative Test 01 case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li it The tooltip's anchor object. Pass NULL as argument
- * @li disable EINA_TRUE/EINA_FALSE to dizable/enable size restrictions
- *
- * @procedure
- * @step 1 Call elm_gengrid_item_tooltip_window_mode_get by passing NULL instead of item
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault and
- * return value is not EINA_FALSE
- * @}
- */
-
-START_TEST(utc_elm_gengrid_item_tooltip_window_mode_set_n_01)
-{
-
-   Eina_Bool disable = EINA_FALSE;
-   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_set(NULL, disable))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   disable = EINA_TRUE;
-   if (EINA_FALSE != elm_gengrid_item_tooltip_window_mode_set(NULL, disable))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- @}
- */
-
-TCase * _utc_elm_gengrid_item_tooltip_window_mode_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_item_tooltip_window_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_set_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_item_tooltip_window_mode_set_n_01);
-   return tcase;
-}
index 65b26788cca636eab583d72c6e94e2a3074e919e..f44c272c8e92a450a4657acf6e111ce472241a46 100644 (file)
@@ -136,14 +136,9 @@ static Eina_Bool _update_timer_cb_p(void *data)
  */
 START_TEST(utc_elm_gengrid_item_update_p)
 {
-   if (main_win == NULL || box == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
    is_text_cb_called = EINA_FALSE;
    is_content_cb_called = EINA_FALSE;
-   ecore_timer_add(2.0, _update_timer_cb_p, NULL);
+   ecore_timer_add(0.2, _update_timer_cb_p, NULL);
    ecore_main_loop_begin();
 
    if (is_text_cb_called == EINA_FALSE)
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_multi_select_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_multi_select_get_set.c
new file mode 100644 (file)
index 0000000..036e3d1
--- /dev/null
@@ -0,0 +1,163 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_multi_select_set elm_gengrid_multi_select_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window and show it
+ * @step 4 Set up the gengrid's item class for the item
+ * @step 5 Append an item in the gengrid
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(gengrid);
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_multi_select_set
+ * @{
+ * @objective Positive Test case checks if function call with valid values to set whether multi-selection
+ * is enabled or disabled for a given gengrid widget works properly and without segmentation fault
+ * @n Input Data:
+ * @li the gengrid object
+ * @li EINA_TRUE, EINA_FALSE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_multi_select_set with EINA_TRUE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
+ * @step 2 Get the gengrid's multi-selection flag
+ * @step 3 Call elm_gengrid_multi_select_set with EINA_FALSE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
+ * @step 4 Get the gengrid's multi-selection flag
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_multi_select_set_p)
+{
+   Eina_Bool check = EINA_FALSE;
+
+   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
+   check = elm_gengrid_multi_select_get(gengrid);
+   if (check == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_gengrid_multi_select_set(gengrid, EINA_FALSE);
+   check = elm_gengrid_multi_select_get(gengrid);
+   if (check == EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_multi_select_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set whether multi-selection
+ * is enabled or disabled for a given gengrid widget works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ * @li EINA_TRUE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_multi_select_set with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_multi_select_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0)
+   UNITEST_FUNC_NEG_CA(elm_gengrid_multi_select_set, gengrid, EINA_TRUE)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_multi_select_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get whether multi-selection
+ * is enabled or disabled for a given gengrid widget works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid item object
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_multi_select_get with invalid value instead of the gengrid item object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_multi_select_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_gengrid_multi_select_get, item))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_multi_select_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_multi_select_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_multi_select_set_p);
+   tcase_add_test(tcase, utc_elm_gengrid_multi_select_set_n);
+   tcase_add_test(tcase, utc_elm_gengrid_multi_select_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_multi_select_set.c b/TC/elementary/gengrid/utc_elm_gengrid_multi_select_set.c
deleted file mode 100644 (file)
index 5b9e856..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_multi_select_set elm_gengrid_multi_select_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_multi_select_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set whether multi-selection
- * is enabled or disabled for a given gengrid widget works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li EINA_TRUE, EINA_FALSE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
- *
- * @procedure
- * @step 1 Call elm_gengrid_multi_select_set with EINA_TRUE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
- * @step 2 Get the gengrid's multi-selection flag
- * @step 3 Call elm_gengrid_multi_select_set with EINA_FALSE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
- * @step 4 Get the gengrid's multi-selection flag
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_multi_select_set_p)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool check = EINA_FALSE;
-
-   elm_gengrid_multi_select_set(gengrid, EINA_TRUE);
-   check = elm_gengrid_multi_select_get(gengrid);
-   if (check == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_multi_select_set(gengrid, EINA_FALSE);
-   check = elm_gengrid_multi_select_get(gengrid);
-   if (check == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_multi_select_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set whether multi-selection
- * is enabled or disabled for a given gengrid widget works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- * @li EINA_TRUE as the flag's value to set whether multi-selection is enabled or disabled for a given gengrid widget
- *
- * @procedure
- * @step 1 Call elm_gengrid_multi_select_set with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_multi_select_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0)
-   UNITEST_FUNC_NEG_CA(elm_gengrid_multi_select_set, gengrid, EINA_TRUE)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_multi_select_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_multi_select_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_multi_select_set_p);
-   tcase_add_test(tcase, utc_elm_gengrid_multi_select_set_n);
-   return tcase;
-}
index 131f75f547a6ce9a562b2e4db6ff15dc236e8c1e..535f3fbc74ab563a57a121b96789d49dcccbad05 100644 (file)
@@ -128,15 +128,9 @@ static Eina_Bool update_and_quit_timer_cb_p(void *data)
  */
 START_TEST(utc_elm_gengrid_realized_items_update_p_01)
 {
-   if (main_win == NULL || box == NULL || gengrid == NULL || item[FIRST_ITEM_INDEX] == NULL || item[SECOND_ITEM_INDEX] == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-
    is_text_cb_called = EINA_FALSE;
    is_content_cb_called = EINA_FALSE;
-   ecore_timer_add(2, update_and_quit_timer_cb_p, NULL);
+   ecore_timer_add(0.2, update_and_quit_timer_cb_p, NULL);
    ecore_main_loop_begin();
    if (is_text_cb_called == EINA_FALSE || is_content_cb_called == EINA_FALSE)
      {
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get.c b/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get.c
deleted file mode 100644 (file)
index f414b97..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_reorder_mode_get elm_gengrid_reorder_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_reorder_mode_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get whether a given gengrid
- * widget is or not able have items reordered works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- *
- * @procedure
- * @step 1 Allow reordering of the items in the given gengrid widget
- * @step 2 Call elm_gengrid_reorder_mode_get with valid value
- * @step 3 Disallow reordering of the items in the given gengrid widget
- * @step 4 Call elm_gengrid_reorder_mode_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_reorder_mode_get_p)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool check_mode = EINA_FALSE;
-
-   elm_gengrid_reorder_mode_set(gengrid, EINA_TRUE);
-   check_mode = elm_gengrid_reorder_mode_get(gengrid);
-   if (check_mode == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_reorder_mode_set(gengrid, EINA_FALSE);
-   check_mode = elm_gengrid_reorder_mode_get(gengrid);
-   if (check_mode == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_reorder_mode_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get whether a given gengrid
- * widget is or not able have items reordered works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- *
- * @procedure
- * @step 1 Call elm_gengrid_reorder_mode_get with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_reorder_mode_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_gengrid_reorder_mode_get, gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_reorder_mode_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_reorder_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_get_p);
-   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_get_set.c
new file mode 100644 (file)
index 0000000..c698711
--- /dev/null
@@ -0,0 +1,163 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *gengrid = NULL;
+static Elm_Gengrid_Item_Class gic = {0};
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_reorder_mode_set elm_gengrid_reorder_mode_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window and show it
+ * @step 4 Set up the gengrid's item class for the item
+ * @step 5 Append an item in the gengrid
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(gengrid);
+   gic.item_style = "default";
+   gic.func.text_get = NULL;
+   gic.func.content_get = NULL;
+   gic.func.del = NULL;
+   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_gengrid_reorder_mode_set
+ * @{
+ * @objective Positive Test case checks if function call with valid values to set whether a given gengrid
+ * widget is or not able have items reordered works properly and without segmentation fault
+ * @n Input Data:
+ * @li the gengrid object
+ * @li EINA_TRUE, EINA_FALSE as the flag's value to set whether a given gengrid widget is or not able have items reordered
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_reorder_mode_set with EINA_TRUE as the flag's value to set whether a given gengrid widget is or not able have items reordered
+ * @step 2 Get whether a given gengrid widget is or not able have items reordered
+ * @step 3 Call elm_gengrid_reorder_mode_set with EINA_FALSE as the flag's value to set whether a given gengrid widget is or not able have items reordered
+ * @step 4 Get whether a given gengrid widget is or not able have items reordered
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_reorder_mode_set_p)
+{
+   Eina_Bool check_mode = EINA_FALSE;
+
+   elm_gengrid_reorder_mode_set(gengrid, EINA_TRUE);
+   check_mode = elm_gengrid_reorder_mode_get(gengrid);
+   if (check_mode == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_gengrid_reorder_mode_set(gengrid, EINA_FALSE);
+   check_mode = elm_gengrid_reorder_mode_get(gengrid);
+   if (check_mode == EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_reorder_mode_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set whether a given gengrid
+ * widget is or not able have items reordered works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ * @li EINA_TRUE as the flag's value to set whether a given gengrid widget is or not able have items reordered
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_reorder_mode_set with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_reorder_mode_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0)
+   UNITEST_FUNC_NEG_CA(elm_gengrid_reorder_mode_set, gengrid, EINA_TRUE)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_reorder_mode_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get whether a given gengrid
+ * widget is or not able have items reordered works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the gengrid object
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_reorder_mode_get with invalid value instead of the gengrid object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_reorder_mode_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_gengrid_reorder_mode_get, gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_gengrid_reorder_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_reorder_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_set_p);
+   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_set_n);
+   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_set.c b/TC/elementary/gengrid/utc_elm_gengrid_reorder_mode_set.c
deleted file mode 100644 (file)
index 7000583..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *gengrid = NULL;
-static Elm_Gengrid_Item_Class gic = {0};
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_reorder_mode_set elm_gengrid_reorder_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window and show it
- * @step 4 Set up the gengrid's item class for the item
- * @step 5 Append an item in the gengrid
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(gengrid);
-   gic.item_style = "default";
-   gic.func.text_get = NULL;
-   gic.func.content_get = NULL;
-   gic.func.del = NULL;
-   item = elm_gengrid_item_append(gengrid, &gic, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the gengrid widget..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_reorder_mode_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set whether a given gengrid
- * widget is or not able have items reordered works properly and without segmentation fault
- * @n Input Data:
- * @li the gengrid object
- * @li EINA_TRUE, EINA_FALSE as the flag's value to set whether a given gengrid widget is or not able have items reordered
- *
- * @procedure
- * @step 1 Call elm_gengrid_reorder_mode_set with EINA_TRUE as the flag's value to set whether a given gengrid widget is or not able have items reordered
- * @step 2 Get whether a given gengrid widget is or not able have items reordered
- * @step 3 Call elm_gengrid_reorder_mode_set with EINA_FALSE as the flag's value to set whether a given gengrid widget is or not able have items reordered
- * @step 4 Get whether a given gengrid widget is or not able have items reordered
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_reorder_mode_set_p)
-{
-   if (main_win == NULL || gengrid == NULL || item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool check_mode = EINA_FALSE;
-
-   elm_gengrid_reorder_mode_set(gengrid, EINA_TRUE);
-   check_mode = elm_gengrid_reorder_mode_get(gengrid);
-   if (check_mode == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_gengrid_reorder_mode_set(gengrid, EINA_FALSE);
-   check_mode = elm_gengrid_reorder_mode_get(gengrid);
-   if (check_mode == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_reorder_mode_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set whether a given gengrid
- * widget is or not able have items reordered works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the gengrid object
- * @li EINA_TRUE as the flag's value to set whether a given gengrid widget is or not able have items reordered
- *
- * @procedure
- * @step 1 Call elm_gengrid_reorder_mode_set with invalid value instead of the gengrid object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_reorder_mode_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0)
-   UNITEST_FUNC_NEG_CA(elm_gengrid_reorder_mode_set, gengrid, EINA_TRUE)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_gengrid_reorder_mode_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_reorder_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_set_p);
-   tcase_add_test(tcase, utc_elm_gengrid_reorder_mode_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_select_mode_get.c b/TC/elementary/gengrid/utc_elm_gengrid_select_mode_get.c
deleted file mode 100644 (file)
index 9ce145a..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_select_mode_get elm_gengrid_select_mode_get()
- * @precondition
- * @step 1 create window
- * @step 2 makes the given window visible.
- * @step 3 put a gengrid on the window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_gengrid_select_mode_get
- * @{
- * @objective Positive Test case 01 checks whether the set selection mode is equal
- * to the value that elm_gengrid_select_mode_get returns;
- * @n Input Data:
- * @li gengrid item
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_get to check a default value of a
- * gengrid selection mode
- * @step 2 Call elm_gengrid_select_mode_set to set a selection mode
- * @step 3 Call elm_gengrid_select_mode_get to get gengrid selection mode
- * @step 4 Check if set selection mode is equal to actual selection mode of a gengrid
- *
- * @passcondition
- * @li Test passes if gengrid selection mode is equal to one which has been set
- * @}
- */
-
-START_TEST(utc_elm_gengrid_select_mode_get_p_01)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const Elm_Object_Select_Mode default_mode = ELM_OBJECT_SELECT_MODE_DEFAULT;
-   if (default_mode != elm_gengrid_select_mode_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   const unsigned nmodes = 4u;
-   Elm_Object_Select_Mode modes[] = {
-         ELM_OBJECT_SELECT_MODE_DEFAULT,
-         ELM_OBJECT_SELECT_MODE_ALWAYS,
-         ELM_OBJECT_SELECT_MODE_NONE,
-         ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY };
-
-   int i = 0;
-   for (; i < nmodes; ++i)
-     {
-        elm_gengrid_select_mode_set(gengrid, modes[i]);
-        if (modes[i] != elm_gengrid_select_mode_get(gengrid))
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_select_mode_get
- * @{
- * @objective Negative Test 01 case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid object NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_get by passing NULL instead of gengrid object
- *
- * @passcondition
- * @li Test passes unless function provokes segmentation fault and the return value
- * of gengrid selection mode is equal to ELM_OBJECT_SELECT_MODE_MAX
- * @}
- */
-
-START_TEST(utc_elm_gengrid_select_mode_get_n_01)
-{
-
-   const Elm_Object_Select_Mode expected_mode_value = ELM_OBJECT_SELECT_MODE_MAX;
-   if (expected_mode_value != elm_gengrid_select_mode_get(NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_gengrid_select_mode_get()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_select_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_get_p_01);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_select_mode_get_set.c b/TC/elementary/gengrid/utc_elm_gengrid_select_mode_get_set.c
new file mode 100644 (file)
index 0000000..e25ed21
--- /dev/null
@@ -0,0 +1,340 @@
+#include <check.h>
+#include <Eina.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+
+static Elm_Gengrid_Item_Class* it_class = NULL;
+static Evas_Object* gengrid = NULL, *main_win = NULL;
+
+/**
+ * @addtogroup elm_gengrid
+ * @{
+ * @defgroup elm_gengrid_select_mode_set  elm_gengrid_select_mode_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a gengrid to the main window
+ * @step 4 Create an item class
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   gengrid = elm_gengrid_add(main_win);
+   if (gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
+     }
+
+   //object creation
+   it_class = elm_gengrid_item_class_new();
+   if (it_class == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   it_class->item_style = "default";
+   it_class->func.text_get = NULL;
+   it_class->func.content_get = NULL;
+   it_class->func.state_get = NULL;
+   it_class->func.del = NULL;
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+
+   //object deletion
+   elm_gengrid_item_class_free(it_class);
+   it_class = NULL;
+}
+int selectionFuncCalls = 0
+      , selectionCallbackCalls = 0;
+
+static void selection_func(void* data, Evas_Object* obj, void* even_info)
+{
+   char buffer [256];
+   snprintf(buffer, 256, " ============ _call_back ============ \nselection_func(): call count = %d\n", ++selectionFuncCalls);
+   printf(buffer);
+}
+
+//* the Gengrid item that was selected.
+static void selected_callback(void* data, Evas_Object* obj, void* even_info)
+{
+       ++selectionCallbackCalls;
+}
+
+
+/**
+ * @addtogroup elm_gengrid_select_mode_set
+ * @{
+ * @objective Positive Test case 1 checks whether selection mode is set properly
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection mode value
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_set to set a selection mode
+ * @step 2 Call elm_gengrid_select_mode_get to get gengrid selection mode
+ * @step 3 Check if set selection mode is equal to actual selection mode of a gengrid
+ *
+ * @passcondition : Test passes if gengrid selection mode is equal to one which has been set
+ * @}
+ */
+START_TEST(utc_elm_gengrid_select_mode_set_p_1)
+{
+   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_DEFAULT);
+   if (ELM_OBJECT_SELECT_MODE_DEFAULT != elm_gengrid_select_mode_get(gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_ALWAYS);
+   if (ELM_OBJECT_SELECT_MODE_ALWAYS != elm_gengrid_select_mode_get(gengrid))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_select_mode_set
+ * @{
+ * @objective Positive Test case 2 checks whether gengrid item is only call
+ * its selection function and callback when first becoming selected and any
+ * further clicks will do nothing, unless always select mode is set
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection mode value
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_set to set default selection mode
+ * @step 2 Call elm_gengrid_item_append to add an item to a gengrid, selection function is also set
+ * @step 3 Call evas_object_smart_callback_add to register select callback
+ * @step 4 Call elm_gengrid_item_selected_set multiple times to provoke select function and callback invocation
+ * @step 5 Check whether selection function and callback has been called only once
+ *
+ * @passcondition : Test passes if both selection function and callback call counter is equal to 1
+ * @}
+ */
+START_TEST(utc_elm_gengrid_select_mode_set_p_2)
+{
+   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_DEFAULT);
+
+   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, selection_func, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
+
+   selectionFuncCalls = 0;
+   selectionCallbackCalls = 0;
+
+   unsigned int i = 0, N = 3;
+   for(;i != N; ++i) {
+      elm_gengrid_item_selected_set(item, EINA_TRUE);
+   }
+   elm_object_item_del(item);
+
+   //only-call mode
+   if (selectionFuncCalls != 1 && selectionCallbackCalls != 1)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_select_mode_set
+ * @{
+ * @objective Positive Test case 3 checks whether selection callback is called each time
+ * gengrid item is selected when always select mode is ON
+ *
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection mode value
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_set to set always selection mode
+ * @step 2 Call elm_gengrid_item_append to add an item to a gengrid
+ * @step 3 Call evas_object_smart_callback_add to register select callback
+ * @step 4 Call elm_gengrid_item_selected_set multiple times to provoke callback invocation
+ * @step 5 Check whether callback has been called each time gengrid item was selected
+ *
+ * @passcondition : Test passes if callback call counter is equal to the number of selection events
+ * @}
+ */
+/* disabled due to changing of behavior compare with tizen 2.4: https://phab.enlightenment.org/T4069
+START_TEST(utc_elm_gengrid_select_mode_set_p_3)
+{
+   if (main_win == NULL || gengrid == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_ALWAYS);
+   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
+
+   selectionFuncCalls = 0;
+   selectionCallbackCalls = 0;
+
+   unsigned int i = 0, N = 2;
+   for(;i != N; ++i) {
+      elm_gengrid_item_selected_set(item, EINA_TRUE);
+   }
+
+   elm_object_item_del(item);
+   if (selectionCallbackCalls != N)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+*/
+
+/**
+ * @addtogroup elm_gengrid_select_mode_set
+ * @{
+ * @objective Positive Test case 4 checks whether selection callback isn't called
+ * when none select mode is ON
+ *
+ * @n Input Data:
+ * @li gengrid item
+ * @li selection mode value
+ * @li selection flag
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_set to set none selection mode
+ * @step 2 Call elm_gengrid_item_append to add an item to a gengrid
+ * @step 3 Call evas_object_smart_callback_add to register select callback
+ * @step 4 Call elm_gengrid_item_selected_set to provoke callback invocation
+ * @step 5 Check whether selection doesn't provokes a callback call
+ *
+ * @passcondition : Test passes if callback call counter is equal to 0
+ * @}
+ */
+START_TEST(utc_elm_gengrid_select_mode_set_p_4)
+{
+   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_NONE);
+
+   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
+
+   selectionFuncCalls = 0;
+   selectionCallbackCalls = 0;
+   elm_gengrid_item_selected_set(item, EINA_TRUE);
+
+   elm_object_item_del(item);
+   if (selectionCallbackCalls != 0)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_select_mode_set
+ * @{
+ * @objective Negative Test case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid object NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_set by passing NULL instead of gengrid object
+ *
+ * @passcondition : Test passes unless function provokes segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_gengrid_select_mode_set_n_1)
+{
+   elm_gengrid_select_mode_set(NULL, ELM_OBJECT_SELECT_MODE_NONE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_gengrid_select_mode_get
+ * @{
+ * @objective Negative Test 01 case checks whether passing invalid value to
+ * a function provokes no segmentation fault
+ * @n Input Data:
+ * @li gengrid object NULL
+ *
+ * @procedure
+ * @step 1 Call elm_gengrid_select_mode_get by passing NULL instead of gengrid object
+ *
+ * @passcondition
+ * @li Test passes unless function provokes segmentation fault and the return value
+ * of gengrid selection mode is equal to ELM_OBJECT_SELECT_MODE_MAX
+ * @}
+ */
+
+START_TEST(utc_elm_gengrid_select_mode_get_n_1)
+{
+   const Elm_Object_Select_Mode expected_mode_value = ELM_OBJECT_SELECT_MODE_MAX;
+   if (expected_mode_value != elm_gengrid_select_mode_get(NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+*@}
+*/
+
+TCase * _utc_elm_gengrid_select_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_gengrid_select_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_1);
+   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_2);
+   //   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_3);
+   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_4);
+   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_n_1);
+   tcase_add_test(tcase, utc_elm_gengrid_select_mode_get_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/gengrid/utc_elm_gengrid_select_mode_set.c b/TC/elementary/gengrid/utc_elm_gengrid_select_mode_set.c
deleted file mode 100644 (file)
index c3c0921..0000000
+++ /dev/null
@@ -1,330 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-
-static Elm_Gengrid_Item_Class* it_class = NULL;
-static Evas_Object* gengrid = NULL, *main_win = NULL;
-
-/**
- * @addtogroup elm_gengrid
- * @{
- * @defgroup elm_gengrid_select_mode_set  elm_gengrid_select_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a gengrid to the main window
- * @step 4 Create an item class
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-   gengrid = elm_gengrid_add(main_win);
-   if (gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a gengrid widget to the main window..", __FILE__, __LINE__);
-     }
-
-   //object creation
-   it_class = elm_gengrid_item_class_new();
-   if (it_class == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   it_class->item_style = "default";
-   it_class->func.text_get = NULL;
-   it_class->func.content_get = NULL;
-   it_class->func.state_get = NULL;
-   it_class->func.del = NULL;
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-
-   //object deletion
-   elm_gengrid_item_class_free(it_class);
-   it_class = NULL;
-}
-int selectionFuncCalls = 0
-      , selectionCallbackCalls = 0;
-
-static void selection_func(void* data, Evas_Object* obj, void* even_info)
-{
-   char buffer [256];
-   snprintf(buffer, 256, " ============ _call_back ============ \nselection_func(): call count = %d\n", ++selectionFuncCalls);
-   printf(buffer);
-}
-
-//* the Gengrid item that was selected.
-static void selected_callback(void* data, Evas_Object* obj, void* even_info)
-{
-       ++selectionCallbackCalls;
-}
-
-
-/**
- * @addtogroup elm_gengrid_select_mode_set
- * @{
- * @objective Positive Test case 1 checks whether selection mode is set properly
- * @n Input Data:
- * @li gengrid item
- * @li selection mode value
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_set to set a selection mode
- * @step 2 Call elm_gengrid_select_mode_get to get gengrid selection mode
- * @step 3 Check if set selection mode is equal to actual selection mode of a gengrid
- *
- * @passcondition : Test passes if gengrid selection mode is equal to one which has been set
- * @}
- */
-START_TEST(utc_elm_gengrid_select_mode_set_p_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_DEFAULT);
-   if (ELM_OBJECT_SELECT_MODE_DEFAULT != elm_gengrid_select_mode_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_ALWAYS);
-   if (ELM_OBJECT_SELECT_MODE_ALWAYS != elm_gengrid_select_mode_get(gengrid))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_select_mode_set
- * @{
- * @objective Positive Test case 2 checks whether gengrid item is only call
- * its selection function and callback when first becoming selected and any
- * further clicks will do nothing, unless always select mode is set
- * @n Input Data:
- * @li gengrid item
- * @li selection mode value
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_set to set default selection mode
- * @step 2 Call elm_gengrid_item_append to add an item to a gengrid, selection function is also set
- * @step 3 Call evas_object_smart_callback_add to register select callback
- * @step 4 Call elm_gengrid_item_selected_set multiple times to provoke select function and callback invocation
- * @step 5 Check whether selection function and callback has been called only once
- *
- * @passcondition : Test passes if both selection function and callback call counter is equal to 1
- * @}
- */
-START_TEST(utc_elm_gengrid_select_mode_set_p_2)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_DEFAULT);
-
-   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, selection_func, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
-
-   selectionFuncCalls = 0;
-   selectionCallbackCalls = 0;
-
-   unsigned int i = 0, N = 3;
-   for(;i != N; ++i) {
-      elm_gengrid_item_selected_set(item, EINA_TRUE);
-   }
-   elm_object_item_del(item);
-
-   //only-call mode
-   if (selectionFuncCalls != 1 && selectionCallbackCalls != 1)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_select_mode_set
- * @{
- * @objective Positive Test case 3 checks whether selection callback is called each time
- * gengrid item is selected when always select mode is ON
- *
- * @n Input Data:
- * @li gengrid item
- * @li selection mode value
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_set to set always selection mode
- * @step 2 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 3 Call evas_object_smart_callback_add to register select callback
- * @step 4 Call elm_gengrid_item_selected_set multiple times to provoke callback invocation
- * @step 5 Check whether callback has been called each time gengrid item was selected
- *
- * @passcondition : Test passes if callback call counter is equal to the number of selection events
- * @}
- */
-/* disabled due to changing of behavior compare with tizen 2.4: https://phab.enlightenment.org/T4069
-START_TEST(utc_elm_gengrid_select_mode_set_p_3)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_ALWAYS);
-   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
-
-   selectionFuncCalls = 0;
-   selectionCallbackCalls = 0;
-
-   unsigned int i = 0, N = 2;
-   for(;i != N; ++i) {
-      elm_gengrid_item_selected_set(item, EINA_TRUE);
-   }
-
-   elm_object_item_del(item);
-   if (selectionCallbackCalls != N)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-*/
-
-/**
- * @addtogroup elm_gengrid_select_mode_set
- * @{
- * @objective Positive Test case 4 checks whether selection callback isn't called
- * when none select mode is ON
- *
- * @n Input Data:
- * @li gengrid item
- * @li selection mode value
- * @li selection flag
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_set to set none selection mode
- * @step 2 Call elm_gengrid_item_append to add an item to a gengrid
- * @step 3 Call evas_object_smart_callback_add to register select callback
- * @step 4 Call elm_gengrid_item_selected_set to provoke callback invocation
- * @step 5 Check whether selection doesn't provokes a callback call
- *
- * @passcondition : Test passes if callback call counter is equal to 0
- * @}
- */
-START_TEST(utc_elm_gengrid_select_mode_set_p_4)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(gengrid, ELM_OBJECT_SELECT_MODE_NONE);
-
-   Elm_Object_Item *item = elm_gengrid_item_append(gengrid, it_class, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   evas_object_smart_callback_add(gengrid, "selected", selected_callback, NULL);
-
-   selectionFuncCalls = 0;
-   selectionCallbackCalls = 0;
-   elm_gengrid_item_selected_set(item, EINA_TRUE);
-
-   elm_object_item_del(item);
-   if (selectionCallbackCalls != 0)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_gengrid_select_mode_set
- * @{
- * @objective Negative Test case checks whether passing invalid value to
- * a function provokes no segmentation fault
- * @n Input Data:
- * @li gengrid object NULL
- *
- * @procedure
- * @step 1 Call elm_gengrid_select_mode_set by passing NULL instead of gengrid object
- *
- * @passcondition : Test passes unless function provokes segmentation fault
- * @}
- */
-START_TEST(utc_elm_gengrid_select_mode_set_n_1)
-{
-   if (main_win == NULL || gengrid == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-
-   elm_gengrid_select_mode_set(NULL, ELM_OBJECT_SELECT_MODE_NONE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
-*@}
-*/
-
-TCase * _utc_elm_gengrid_select_mode_set()
-{
-   TCase *tcase = tcase_create("utc_elm_gengrid_select_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_1);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_2);
-   //   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_3);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_p_4);
-   tcase_add_test(tcase, utc_elm_gengrid_select_mode_set_n_1);
-   return tcase;
-}