[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_view_contents_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_view_contents_set : public utc_blink_ewk_base
8 {
9 };
10
11 /**
12  * @brief Positive test case of ewk_view_contents_set(),testing results whether contents are set or not.
13  */
14 TEST_F(utc_blink_ewk_view_contents_set, POS_TEST)
15 {
16   Eina_Bool results = ewk_view_contents_set(GetEwkWebView(), "This is Plain Text", 20, 0, 0, 0);
17   utc_check_eq(results, EINA_TRUE);
18 }
19
20 /**
21  * @brief  checking whether function is working when providing NULL value.
22  */
23 TEST_F(utc_blink_ewk_view_contents_set, NEG_TEST)
24 {
25   utc_check_eq(ewk_view_contents_set(NULL, "This is Plain Text", 0, 0, 0, 0), EINA_FALSE);
26 }