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"
11 class utc_blink_ewk_view_add_with_context : public utc_blink_ewk_base
16 * @brief Tests if returns valid webview when called with correct Evas object.
18 TEST_F(utc_blink_ewk_view_add_with_context, POS_TEST)
20 Eina_Bool result = EINA_FALSE;
21 Evas_Object* window = elm_win_add(NULL, "TC Launcher", ELM_WIN_BASIC);
22 elm_win_title_set(window, "TC Launcher");
23 Evas* evas = evas_object_evas_get(window);
25 /* Initialization of webview */
26 Evas_Object* webview = ewk_view_add_with_context(evas, ewk_context_default_get());
31 evas_object_show(webview);
32 evas_object_show(window);
34 evas_object_del(webview);
35 evas_object_del(window);
36 utc_check_eq(result, EINA_TRUE);
40 * @brief Tests if returns NULL when not called with NULL Evas object.
42 TEST_F(utc_blink_ewk_view_add_with_context, NEG_TEST1)
44 Evas_Object* webview = ewk_view_add_with_context(NULL, ewk_context_default_get());
50 * @brief Tests if returns NULL when not called with NULL Evas object and NULL context.
52 TEST_F(utc_blink_ewk_view_add_with_context, NEG_TEST2)
54 Evas_Object* webview = ewk_view_add_with_context(NULL, NULL);