elm_win: change elm_win_fake not to call canvas_set
authorJiyoun Park <jy0703.park@samsung.com>
Fri, 18 May 2018 04:44:27 +0000 (13:44 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 13 Jul 2018 10:51:56 +0000 (19:51 +0900)
   elm_win_fake_canvas_set is not a public internal api.
   elm_win_fake_win sould set ecore evas when it was created.

Change-Id: I9bfad86479dca0c94030b129e87715102d709fa8

TC/elementary/win/utc_elm_win_fake.c

index 2eba6b602f0f68970e8d1afc372da1ff5ef077db..0cd9d5799ab53d4cb3bc4cd0451c8c35ef73ae69 100644 (file)
@@ -7,7 +7,6 @@
  * @{
  * @defgroup elm_win_fake
  * @li elm_win_fake_add()
- * @li elm_win_fake_canvas_set()
  *
  * @precondition
  * @step 1 Initialize Elementary
@@ -33,24 +32,20 @@ teardown(void)
  * @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
  * @}
  */
@@ -78,26 +73,15 @@ START_TEST(utc_elm_win_fake_p)
         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__);