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 extern struct Ewk_Test_View test_view;
8 class utc_blink_ewk_settings_clear_text_selection_automatically_set : public utc_blink_ewk_base {
12 * @brief Tests if returns TRUE when initiated with a correct webview and
13 * enabled clear text selection automatically set to TRUE.
15 TEST_F(utc_blink_ewk_settings_clear_text_selection_automatically_set, POS_TEST1)
17 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
22 Eina_Bool result = ewk_settings_clear_text_selection_automatically_set(settings, EINA_TRUE);
26 EXPECT_EQ(result, EINA_TRUE);
30 * @brief Tests if returns TRUE when initiated with a correct webview and
31 * enabled clear text selection automatically set to FALSE.
33 TEST_F(utc_blink_ewk_settings_clear_text_selection_automatically_set, POS_TEST2)
35 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
40 Eina_Bool result = ewk_settings_clear_text_selection_automatically_set(settings, EINA_FALSE);
44 EXPECT_EQ(result, EINA_TRUE);
48 * @brief Tests if returns FALSE when initiated with NULL webview.
50 TEST_F(utc_blink_ewk_settings_clear_text_selection_automatically_set, NEG_TEST)
52 Eina_Bool result = ewk_settings_clear_text_selection_automatically_set(NULL, EINA_FALSE);
53 EXPECT_NE(result, EINA_TRUE);