4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 * This library is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the
8 * Free Software Foundation; either version 2.1 of the License, or (at your option)
11 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 * License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library; if not, write to the Free Software Foundation, Inc., 51
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * @file utc_webkit2_ewk_settings_text_autosizing_enabled_set_func.c
24 * @author Krzysztof Czech <k.czech@samsung.com>
26 * @brief Tests EWK function ewk_settings_text_autosizing_enabled_set
29 #define TESTED_FUN_NAME ewk_settings_text_autosizing_enabled_set
30 #define POSITIVE_TEST_FUN_NUM 1
31 #define NEGATIVE_TEST_FUN_NUM 1
33 #include "utc_webkit2_ewk.h"
35 static void startup(void)
37 utc_webkit2_ewk_test_init();
40 static void cleanup(void)
42 utc_webkit2_ewk_test_end();
46 * @brief Checks whether function sets value properly.
50 Ewk_Settings* settings = ewk_view_settings_get(test_view.webview);
52 utc_check_eq(ewk_settings_text_autosizing_enabled_set(settings, EINA_TRUE), EINA_TRUE);
53 utc_check_eq(ewk_settings_text_autosizing_enabled_get(settings), EINA_TRUE);
55 utc_check_eq(ewk_settings_text_autosizing_enabled_set(settings, EINA_FALSE), EINA_TRUE);
56 utc_check_eq(ewk_settings_text_autosiznig_enabled_get(settings), EINA_FALSE);
60 * @brief Checks whether function works properly.
64 utc_check_eq(ewk_settings_text_autosizing_enabled_set(0, EINA_TRUE), EINA_FALSE);