4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
6 * This library is free software; you can redistribute it and/or modify it under
\r
7 * the terms of the GNU Lesser General Public License as published by the
\r
8 * Free Software Foundation; either version 2.1 of the License, or (at your option)
\r
11 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
\r
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
\r
14 * License for more details.
\r
16 * You should have received a copy of the GNU Lesser General Public License
\r
17 * along with this library; if not, write to the Free Software Foundation, Inc., 51
\r
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
\r
22 /* Define those macros _before_ you include the utc_webkit2_ewk.h header file. */
\r
23 #define TESTED_FUN_NAME ewk_view_page_visibility_state_set
\r
24 #define POSITIVE_TEST_FUN_NUM 2
\r
25 #define NEGATIVE_TEST_FUN_NUM 1
\r
27 #include "utc_webkit2_ewk.h"
\r
29 /* Startup and cleanup functions */
\r
30 static void startup(void)
\r
32 utc_webkit2_ewk_test_init();
\r
35 static void cleanup(void)
\r
37 utc_webkit2_ewk_test_end();
\r
43 Ewk_Page_Visibility_State test_state = EWK_PAGE_VISIBILITY_STATE_PRERENDER;
\r
44 Eina_Bool result = ewk_view_page_visibility_state_set(test_view.webview, test_state, EINA_TRUE);
\r
45 utc_check_eq(result, EINA_TRUE);
\r
51 Ewk_Page_Visibility_State test_state = EWK_PAGE_VISIBILITY_STATE_PRERENDER;
\r
52 Eina_Bool result = ewk_view_page_visibility_state_set(test_view.webview, test_state, EINA_FALSE);
\r
53 utc_check_eq(result, EINA_TRUE);
\r
58 Ewk_Page_Visibility_State test_state = EWK_PAGE_VISIBILITY_STATE_PRERENDER;
\r
59 Eina_Bool result = ewk_view_page_visibility_state_set(NULL, test_state, EINA_FALSE);
\r
60 utc_check_eq(result, EINA_FALSE);
\r