Rename file and class to be consistent with name of tested function
authorPiotr Sieduszewski <p.sieduszews@samsung.com>
Fri, 5 Dec 2014 12:03:31 +0000 (13:03 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9566
Reviewed by: Kamil Klimek, Piotr Tworek, SeungSeop Park

Change-Id: I083f5e85664e34caf76a8ca6eb0666a978364885
Signed-off-by: Piotr Sieduszewski <p.sieduszews@samsung.com>
tizen_src/ewk/unittest/ewk-tests.gypi
tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_func.cpp [deleted file]
tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_set_func.cpp [new file with mode: 0755]

index 28c71dc7325e966f3658af95c8e096feb70ab742..bef435e7791d438cfac02a67fdffd5bd30feb045 100644 (file)
         'utc_blink_ewk_settings_text_autosizing_enabled_set_func.cpp',
         'utc_blink_ewk_settings_text_autosizing_font_scale_factor_set_func.cpp',
         'utc_blink_ewk_settings_text_selection_enabled_set_func.cpp',
-        'utc_blink_ewk_settings_text_style_state_enabled_func.cpp',
+        'utc_blink_ewk_settings_text_style_state_enabled_set_func.cpp',
         'utc_blink_ewk_settings_text_zoom_enabled_set_func.cpp',
         'utc_blink_ewk_settings_uses_encoding_detector_set_func.cpp',
         'utc_blink_ewk_settings_uses_keypad_without_user_action_set_func.cpp',
diff --git a/tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_func.cpp b/tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_func.cpp
deleted file mode 100755 (executable)
index d748085..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "utc_blink_ewk_base.h"
-
-class utc_blink_ewk_settings_text_style_state_enabled : public utc_blink_ewk_base {
-};
-
-/**
- * @brief Tests if returns TRUE when initiated with a correct webview and
- * enabled text selection set to TRUE.
- */
-TEST_F(utc_blink_ewk_settings_text_style_state_enabled, POS_TEST1)
-{
-  Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
-  if (!settings) {
-    FAIL();
-  }
-
-  ewk_settings_text_style_state_enabled_set(settings, EINA_TRUE);
-  Eina_Bool result = ewk_settings_text_style_state_enabled_get(settings);
-  if (!result) {
-    FAIL();
-  }
-  EXPECT_EQ(result, EINA_TRUE);
-}
-
-/**
- * @brief Tests if returns TRUE when initiated with a correct webview and
- * enabled text selection set to FALSE.
- */
-TEST_F(utc_blink_ewk_settings_text_style_state_enabled, POS_TEST2)
-{
-  Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
-  if (!settings) {
-    FAIL();
-  }
-
-  ewk_settings_text_style_state_enabled_set(settings, EINA_FALSE);
-  Eina_Bool result = ewk_settings_text_style_state_enabled_get(settings);
-  if (result) {
-    FAIL();
-  }
-  EXPECT_EQ(result, EINA_FALSE);
-}
-
-/**
- * @brief Tests if returns FALSE when initiated with NULL webview.
- */
-TEST_F(utc_blink_ewk_settings_text_style_state_enabled, NEG_TEST)
-{
-  ewk_settings_text_style_state_enabled_set(NULL, EINA_FALSE);
-  SUCCEED();
-}
diff --git a/tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_set_func.cpp b/tizen_src/ewk/unittest/utc_blink_ewk_settings_text_style_state_enabled_set_func.cpp
new file mode 100755 (executable)
index 0000000..32590bf
--- /dev/null
@@ -0,0 +1,55 @@
+// Copyright 2014 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "utc_blink_ewk_base.h"
+
+class utc_blink_ewk_settings_text_style_state_enabled_set : public utc_blink_ewk_base {
+};
+
+/**
+ * @brief Tests if returns TRUE when initiated with a correct webview and
+ * enabled text selection set to TRUE.
+ */
+TEST_F(utc_blink_ewk_settings_text_style_state_enabled_set, POS_TEST1)
+{
+  Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
+  if (!settings) {
+    FAIL();
+  }
+
+  ewk_settings_text_style_state_enabled_set(settings, EINA_TRUE);
+  Eina_Bool result = ewk_settings_text_style_state_enabled_get(settings);
+  if (!result) {
+    FAIL();
+  }
+  EXPECT_EQ(result, EINA_TRUE);
+}
+
+/**
+ * @brief Tests if returns TRUE when initiated with a correct webview and
+ * enabled text selection set to FALSE.
+ */
+TEST_F(utc_blink_ewk_settings_text_style_state_enabled_set, POS_TEST2)
+{
+  Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
+  if (!settings) {
+    FAIL();
+  }
+
+  ewk_settings_text_style_state_enabled_set(settings, EINA_FALSE);
+  Eina_Bool result = ewk_settings_text_style_state_enabled_get(settings);
+  if (result) {
+    FAIL();
+  }
+  EXPECT_EQ(result, EINA_FALSE);
+}
+
+/**
+ * @brief Tests if returns FALSE when initiated with NULL webview.
+ */
+TEST_F(utc_blink_ewk_settings_text_style_state_enabled_set, NEG_TEST)
+{
+  ewk_settings_text_style_state_enabled_set(NULL, EINA_FALSE);
+  SUCCEED();
+}