1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "utc_blink_ewk_base.h"
7 class utc_blink_ewk_settings_text_zoom_enabled_set : public utc_blink_ewk_base {
11 * @brief Tests if returns TRUE when initiated with a correct webview and
12 * enabled text zoom set to TRUE.
14 TEST_F(utc_blink_ewk_settings_text_zoom_enabled_set, POS_TEST)
16 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
21 Eina_Bool result = ewk_settings_text_zoom_enabled_set(settings, EINA_TRUE);
25 EXPECT_EQ(result, EINA_TRUE);
29 * @brief Tests if returns FALSE when initiated with a correct webview and
30 * enabled text zoom set to FALSE.
32 TEST_F(utc_blink_ewk_settings_text_zoom_enabled_set, NEG_TEST1)
34 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
39 Eina_Bool result = ewk_settings_text_zoom_enabled_set(settings, EINA_FALSE);
43 EXPECT_EQ(result, EINA_TRUE);
47 * @brief Tests if returns FALSE when initiated with NULL webview.
49 TEST_F(utc_blink_ewk_settings_text_zoom_enabled_set, NEG_TEST2)
51 Eina_Bool result = ewk_settings_text_zoom_enabled_set(NULL, EINA_FALSE);
52 EXPECT_NE(result, EINA_TRUE);