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
23 * @file utc_webkit2_ewk_view_horizontal_panning_hold_set.cpp
\r
26 * @brief Tests EWK function ewk_view_horizontal_panning_hold_set()
\r
29 #define TESTED_FUN_NAME ewk_view_horizontal_panning_hold_set
\r
31 #define POSITIVE_TEST_FUN_NUM 2
\r
32 #define NEGATIVE_TEST_FUN_NUM 1
\r
34 #include "utc_webkit2_ewk.h"
\r
41 /* Startup function */
\r
42 static void startup(void)
\r
44 utc_webkit2_ewk_test_init();
\r
47 /* Cleanup function */
\r
48 static void cleanup(void)
\r
50 utc_webkit2_ewk_test_end();
\r
54 * @brief Check whether it is possible to forward when setting panning functionality on or off
\r
58 ewk_view_horizontal_panning_hold_set(test_view.webview,EINA_TRUE);
\r
59 utc_check_eq(ewk_view_horizontal_panning_hold_get(test_view.webview), EINA_TRUE);
\r
63 * @brief Check whether it is possible to forward when setting panning functionality on or off
\r
67 ewk_view_horizontal_panning_hold_set(test_view.webview,EINA_FALSE);
\r
68 utc_check_eq(ewk_view_horizontal_panning_hold_get(test_view.webview), EINA_FALSE);
\r
73 * @brief Checking whether function works properly in case of NULL of a webview.
\r
77 ewk_view_horizontal_panning_hold_set(test_view.webview,EINA_TRUE);
\r
78 ewk_view_horizontal_panning_hold_set(NULL,EINA_FALSE);
\r
79 utc_check_eq(ewk_view_horizontal_panning_hold_get(test_view.webview), EINA_TRUE);
\r