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 class utc_blink_ewk_view_back : public utc_blink_ewk_base
10 /* Callback for load finished */
11 void LoadFinished(Evas_Object* webview) override { EventLoopStop(Success); }
15 * @brief Change whether it is possible to go back when two webpages have been loaded
17 TEST_F(utc_blink_ewk_view_back, POS_TEST)
19 if(!ewk_view_url_set(GetEwkWebView(),GetResourceUrl("common/sample.html").c_str()))
21 if(Success!=EventLoopStart())
24 if(!ewk_view_url_set(GetEwkWebView(),GetResourceUrl("common/sample_1.html").c_str()))
26 if(Success!=EventLoopStart())
29 Eina_Bool result = ewk_view_back(GetEwkWebView());
30 if(Success!=EventLoopStart())
33 utc_check_eq(result, EINA_TRUE);
37 * @brief Checking whether function works properly in case of NULL of a webview.
39 TEST_F(utc_blink_ewk_view_back, NEG_TEST)
41 Eina_Bool result = ewk_view_back(NULL);
42 utc_check_eq(result, EINA_FALSE);