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_hit_test_request_base.h"
7 class utc_blink_ewk_hit_test_image_uri_get : public utc_blink_ewk_hit_test_request_base {
9 void CheckHitTest(Ewk_Hit_Test* hit_test) override {
12 static const char* const test_path;
15 const char* const utc_blink_ewk_hit_test_image_uri_get::test_path = "/ewk_hit_test/index.html";
18 * @brief Checking whether the image uri of hit element is returned properly.
20 TEST_F(utc_blink_ewk_hit_test_image_uri_get, POS_TEST1)
22 ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(test_path).c_str()));
23 ASSERT_EQ(Success, EventLoopStart());
25 ewk_view_hit_test_request(GetEwkWebView(), 200, 200, EWK_HIT_TEST_MODE_DEFAULT, hit_test_result, this);
26 ASSERT_EQ(Success, EventLoopStart());
30 * @brief Checking whether function works properly in case of NULL of a hit test instance.
32 TEST_F(utc_blink_ewk_hit_test_image_uri_get, NEG_TEST1)
34 utc_check_eq(0, ewk_hit_test_image_uri_get(NULL));