headless-client: add TC for update 76/207176/1
authorlsj119 <lsj119@samsung.com>
Tue, 30 Apr 2019 02:47:07 +0000 (11:47 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 30 May 2019 08:33:58 +0000 (17:33 +0900)
Change-Id: Ifbcdca52ebe7aa5e864c8664c9058f4fe9c2167d

src/samples/headless_client.c

index dae0286..bb2a008 100644 (file)
@@ -349,6 +349,7 @@ _usage(void)
        printf("                    :  hide  (Hide current window)\n");
        printf("                    :  show  (Show current window)\n");
        printf("                    :  help  (Print this help text)\n");
+       printf("                    :  update(update current window)\n");
        printf("                    :  q/quit  (Quit program)\n");
        printf("grab [key_name] {grab_type}\n");
        printf("  : grab_type:\n");
@@ -451,6 +452,10 @@ _stdin_cb(void *data, Ecore_Fd_Handler *handler EINA_UNUSED)
                ecore_wl2_window_commit(client->win, EINA_TRUE);
                printf("show window\n");
        }
+       else if (!strncmp(tmp, "update", sizeof("update"))) {
+               _update_window(client);
+               printf("update window\n");
+       }
        else {
                printf("Invalid arguments\n");
                _usage();