0010_splash: fix tc due to E20 changes 74/208874/2 submit/tizen/20190701.070402
authorJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 1 Jul 2019 05:07:44 +0000 (14:07 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 1 Jul 2019 05:39:15 +0000 (14:39 +0900)
launch splash screen were shown at launch request, but the effect had showed
twice after owner set request. due to duplicate effect e20 core has changed
to launch splash screen after all requests(launch, owner) made.
so, TC is also need to be changed

Change-Id: I2384e41f262acd45feb012bf4bc4075703acea4c

src/testcase/0010_splash.cpp

index 9e31602..fadd24d 100644 (file)
@@ -28,6 +28,7 @@ etTestSplash::initTC(char * path, int type)
    ASSERT_TRUE(tw != NULL) << "failed to initiation window";
 
    ret = etRunner::get().setSplashLaunch(path, type);
+   etRunner::get().setSplashOwner();
    ASSERT_TRUE(ret);
 }
 
@@ -47,7 +48,7 @@ TEST_F(etTestSplash, splash_edc)
    EINA_LIST_CAST_FOREACH(list, l, tw2, etWin*)
      {
         // todo: check cw->obj is EDJ type, and group name is effect
-        if (!strncmp(tw2->name, "Launchscreen", strlen(tw2->name)))
+        if (!strncmp(tw2->name, "launchscreen", strlen(tw2->name)))
           res = EINA_TRUE;
      }
    etRunner::get().freeWinInfoList(list);
@@ -71,7 +72,7 @@ TEST_F(etTestSplash, splash_img)
    EINA_LIST_CAST_FOREACH(list, l, tw2, etWin*)
      {
         // todo: check cw->obj is IMG type, and img file
-        if (!strncmp(tw2->name, "Launchscreen", strlen(tw2->name)))
+        if (!strncmp(tw2->name, "launchscreen", strlen(tw2->name)))
           res = EINA_TRUE;
      }
    etRunner::get().freeWinInfoList(list);
@@ -85,7 +86,6 @@ TEST_F(etTestSplash, splash_disappear_after_real)
    Eina_List *list = NULL, *l = NULL;
 
    initTC((char*)path_img, SPLASH_TYPE_IMG);
-   etRunner::get().setSplashOwner();
 
    showTCWin(tw);
    etRunner::get().waitEvent(tw, E_TC_EVENT_TYPE_VIS_ON);
@@ -98,7 +98,7 @@ TEST_F(etTestSplash, splash_disappear_after_real)
      {
         if (tw->native_win == tw2->native_win)
           ASSERT_TRUE(tw2->Focus.obj);
-        if (!strncmp(tw2->name, "Launchscreen", strlen(tw2->name)))
+        if (!strncmp(tw2->name, "launchscreen", strlen(tw2->name)))
           ASSERT_NE(tw->native_win, tw2->native_win);
      }
    etRunner::get().freeWinInfoList(list);
@@ -125,7 +125,7 @@ TEST_F(etTestSplash, splash_evas_callback_after_real)
      {
         if (tw->native_win == tw2->native_win)
           ASSERT_TRUE(tw2->Focus.obj);
-        if (!strncmp(tw2->name, "Launchscreen", strlen(tw2->name)))
+        if (!strncmp(tw2->name, "launchscreen", strlen(tw2->name)))
           ASSERT_NE(tw->native_win, tw2->native_win);
      }
    etRunner::get().freeWinInfoList(list);