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_settings_loads_images_automatically_set : public utc_blink_ewk_base {
12 * @brief Tests if returns TRUE when initiated with a correct webview and set to TRUE.
14 TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, POS_TEST1)
16 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
21 Eina_Bool result = ewk_settings_loads_images_automatically_set(settings, EINA_TRUE);
25 result = ewk_settings_loads_images_automatically_get(settings);
26 EXPECT_EQ(result, EINA_TRUE);
30 * @brief Tests if returns FALSE when initiated with a correct webview and set to FALSE.
32 TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, POS_TEST2)
34 Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
39 Eina_Bool result = ewk_settings_loads_images_automatically_set(settings, EINA_FALSE);
43 result = ewk_settings_loads_images_automatically_get(settings);
44 EXPECT_EQ(result, EINA_FALSE);
48 * @brief Tests if returns FALSE when initiated with NULL webview.
50 TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, NEG_TEST)
52 Eina_Bool result = ewk_settings_loads_images_automatically_set(NULL, EINA_TRUE);
53 EXPECT_EQ(result, EINA_FALSE);