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 static const char* TEST_URL = "http://www.google.com/";
9 class utc_blink_ewk_view_url_set : public utc_blink_ewk_base {
13 * @brief Checking whether url is properly set.
15 TEST_F(utc_blink_ewk_view_url_set, POS_TEST)
17 Eina_Bool result = ewk_view_url_set(GetEwkWebView(), TEST_URL);
22 const char* currentUrl = ewk_view_url_get(GetEwkWebView());
23 EXPECT_STREQ(currentUrl, TEST_URL);
27 * @brief Checking whether function works properly in case of NULL of a webview.
29 TEST_F(utc_blink_ewk_view_url_set, NEG_TEST1)
31 Eina_Bool result = ewk_view_url_set(NULL, TEST_URL);
37 TEST_F(utc_blink_ewk_view_url_set, NEG_TEST2)
39 Eina_Bool result = ewk_view_url_set(GetEwkWebView(), NULL);