[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_settings_detect_contents_automatically_set_func.cpp
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.
4
5 #include "utc_blink_ewk_base.h"
6
7 class utc_blink_ewk_settings_detect_contents_automatically_set : public utc_blink_ewk_base {
8 };
9
10
11 /**
12  * @brief Tests if returns TRUE when initiated with a correct webview and
13  * enabled select word automatically set to TRUE.
14  */
15 TEST_F(utc_blink_ewk_settings_detect_contents_automatically_set, POS_TEST1)
16 {
17   Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
18   ASSERT_TRUE(settings);
19
20   ewk_settings_detect_contents_automatically_set(settings, EINA_TRUE);
21 }
22
23 /**
24  * @brief Tests if returns TRUE when initiated with a correct webview and
25  * enabled detect content automatically set to FALSE.
26  */
27 TEST_F(utc_blink_ewk_settings_detect_contents_automatically_set, POS_TEST2)
28 {
29   Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
30   ASSERT_TRUE(settings);
31
32   ewk_settings_detect_contents_automatically_set(settings, EINA_FALSE);
33 }
34
35 /**
36  * @brief Tests if returns FALSE when initiated with NULL webview.
37  */
38 TEST_F(utc_blink_ewk_settings_detect_contents_automatically_set, NEG_TEST)
39 {
40   ewk_settings_detect_contents_automatically_set(NULL, EINA_FALSE);
41 }