* @{
* @defgroup elm_win_fake
* @li elm_win_fake_add()
- * @li elm_win_fake_canvas_set()
*
* @precondition
* @step 1 Initialize Elementary
* @objective Positive test case checks if functions creates a fake window object using a pre-existing canvas,
* set to fake window object a pre-existing canvas and without segmentation fault
* @n Input Data:
- * @li the two window object
* @li the Ecore_Evas window canvas
*
* @procedure
- * @step 1 Create first window object
- * @step 2 Set EINA_TRUE the borderless state of a first window
- * @step 3 Call elm_win_fake_add function to creates a fake window object using a first window canvas
+ * @step 1 Create main window object
+ * @step 2 Set EINA_TRUE the borderless state of a main window
+ * @step 3 Call elm_win_fake_add function to creates a fake window object using a main window canvas
* @step 4 Call elm_win_borderless_get function to check borderless state of a fake window on EINA_TRUE
- * @step 5 Create second window object
- * @step 6 Set EINA_FALSE the borderless state of a second window
- * @step 7 Call elm_win_fake_canvas_set function to set to fake window object a second window canvas
- * @step 8 Call elm_win_borderless_get function to check borderless state of a fake window on EINA_FALSE
- * @step 9 Deleted second window object
- * @step 10 Deleted first window object
+ * @step 5 Set EINA_FALSE the borderless state of a main window
+ * @step 6 Call elm_win_borderless_get function to check borderless state of a fake window on EINA_FALSE
+ * @step 7 Deleted the main window object
*
* @passcondition
- * @li Test passes if functions creates a fake window object using a first window canvas,
- * set to fake window object a second window canvas and get expected borderless state of a fake window.
+ * @li Test passes if functions creates a fake window object using a main window canvas,
+ * and get expected borderless state of a fake window.
* There is no segmentation fault
* @}
*/
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- Evas_Object *second_win = elm_win_add(NULL, "second", ELM_WIN_BASIC);
- if (!second_win)
- {
- evas_object_del(second_win);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_borderless_set(second_win, EINA_FALSE);
- evas_object_show(second_win);
+ elm_win_borderless_set(main_win, EINA_FALSE);
- elm_win_fake_canvas_set(fake_win, ecore_evas_ecore_evas_get(evas_object_evas_get(second_win)));
if (elm_win_borderless_get(fake_win))
{
- evas_object_del(second_win);
evas_object_del(main_win);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- evas_object_del(second_win);
evas_object_del(main_win);
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);