[M108 Migration][Webview] Migrate patches for ewk APIs 2/2
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_view_text_find_highlight_clear_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_view_text_find_highlight_clear : public utc_blink_ewk_base {
8 };
9
10 /**
11  * @brief checking if returns EINA_TRUE when initiated with a correct webview
12  */
13 TEST_F(utc_blink_ewk_view_text_find_highlight_clear, POS_TEST)
14 {
15   Eina_Bool result = ewk_view_text_find_highlight_clear(GetEwkWebView());
16   if (!result) {
17     FAIL();
18   }
19   EXPECT_EQ(result, EINA_TRUE);
20 }
21
22 /**
23  * @brief checking if returns EINA_FALSE when initiated with a NULL webview
24  */
25 TEST_F(utc_blink_ewk_view_text_find_highlight_clear, NEG_TEST)
26 {
27   Eina_Bool result = ewk_view_text_find_highlight_clear(NULL);
28   EXPECT_EQ(result, EINA_FALSE);
29 }
30