efl/src/tests
Bowon Ryu f4cf46e9b5 edje: markup flag should be TRUE in legacy edje_object_part_text_set
Summary:
Through some APIs (elm_entry_editable_set, elm_entry_single_line_set, etc.)
located after edje_object_part_text_set(legacy)

If efl_ui_widget_theme_apply is called,
In edje_object_part_text_raw_generic_set, the legacy flag becomes FALSE.
And in this case, the logic works in the unintended direction
because the set_markup flag is FALSE.

Test Plan:
/*
gcc -o entry_example entry.c `pkg-config --cflags --libs elementary`
 */
#include <Elementary.h>

EAPI_MAIN int
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
   Evas_Object *win, *en;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_util_standard_add("entry-example", "test");
   elm_win_autodel_set(win, EINA_TRUE);
   en = elm_entry_add(win);
   evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_object_part_text_set(en, "elm.guide", "<font_size=32 color=#FFF>TEST</font_size>");
   elm_entry_editable_set(en, EINA_FALSE);

   evas_object_show(en);

   elm_object_content_set(win, en);
   evas_object_resize(win, 300, 200);
   evas_object_show(win);

   elm_run();

   return 0;
}
ELM_MAIN()

Reviewers: woohyun, ali.alzyod

Subscribers: zmike, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11868
2020-06-05 14:26:22 +09:00
..
ecore tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
ecore_audio_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
ecore_con tests: ecore_con another cert update to extend the time its valid to 100 years 2020-05-11 17:05:44 +02:00
ecore_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
ecore_wl2 tests/ecore_wl2: Fix check for Enlightenment compositor 2020-01-29 09:01:06 -05:00
ector cmake: remove! 2018-12-20 20:07:26 +01:00
edje tests: edje: Fedora32 system fail resolve 2020-05-05 14:56:53 +02:00
edje_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eet tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
eet_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eeze cmake: remove! 2018-12-20 20:07:26 +01:00
efl tests/efl: use alloca for composite model test future to avoid leak 2020-04-15 19:26:39 +02:00
efl_js bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
efl_mono Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
efreet Merge efreet_mime efreet_trash into efreet 2020-05-26 10:15:30 +02:00
eina Eina file test: use the correct Eina file object 2020-05-27 15:18:59 +02:00
eina_cxx bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
eio Fix build with gcc 10 (which has -fno-common enabled by default). 2020-01-31 14:31:57 +01:00
eldbus tests/eldbus: add va_end for va_args usage in message test 2019-10-18 13:28:48 -04:00
eldbus_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
elementary edje: markup flag should be TRUE in legacy edje_object_part_text_set 2020-06-05 14:26:22 +09:00
elementary_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
elput here comes meson 2018-10-02 17:22:50 +02:00
elua bindings: rename luajit -> lua 2020-05-29 17:06:22 +02:00
emile emile_test_base64: Fix memory leak 2019-05-02 13:48:22 +02:00
emotion meson: correctly use the correct dependency 2019-04-05 08:15:39 -04:00
eo Revert "Revert eo vtale rework..." 2020-03-23 11:35:06 +01:00
eo_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eolian eolian: add out-param variants of expr eval/value get funcs 2020-05-31 02:14:46 +02:00
eolian_cxx Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
eolian_js bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
evas build: add eet to evas suite 2020-06-02 08:54:19 +02:00
evas_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
evil remove last bits of Evil.h in tests and use evil_private.h instead 2019-06-24 09:01:25 -04:00
.gitignore tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00
efl_check.h efl_check: unset the callback here 2020-03-25 22:13:22 +01:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00
timeout.c tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00