diff --git a/src/tests/elementary/elm_test_entry.c b/src/tests/elementary/elm_test_entry.c
index cbeaed1d10..5033798f7d 100644
--- a/src/tests/elementary/elm_test_entry.c
+++ b/src/tests/elementary/elm_test_entry.c
@@ -393,6 +393,85 @@ EFL_START_TEST(elm_atspi_role_get)
}
EFL_END_TEST
+static Eina_Bool
+end_test()
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+static void
+mag_job(void *e)
+{
+ evas_event_feed_mouse_out(e, 0, NULL);
+ evas_event_feed_mouse_in(e, 0, NULL);
+ evas_event_feed_mouse_move(e, 200, 100, 0, NULL);
+ evas_event_feed_mouse_down(e, 1, 0, 0, NULL);
+ real_timer_add(elm_config_longpress_timeout_get() + 0.1, end_test, NULL);
+}
+
+static void
+norendered(void *data EINA_UNUSED, Evas *e, void *event_info EINA_UNUSED)
+{
+ ecore_job_add(mag_job, e);
+ evas_event_callback_del(e, EVAS_CALLBACK_RENDER_POST, norendered);
+}
+
+EFL_START_TEST(elm_entry_magnifier)
+{
+ Evas_Object *win, *entry;
+ char buf[4096];
+
+ win = win_add_focused(NULL, "entry", ELM_WIN_BASIC);
+ evas_object_size_hint_weight_set(win, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+ entry = elm_entry_add(win);
+ elm_entry_line_wrap_set(entry, ELM_WRAP_NONE);
+ snprintf(buf, sizeof(buf),
+ "This is an entry widget in this window that
"
+ "uses markup like this> for styling and
"
+ "formatting like this>, as well as
"
+ "links in the text>, so enter text
"
+ "in here to edit it. By the way, links are
"
+ "called Anchors so you will need
"
+ "to refer to them this way.
"
+ "
"
+
+ "Also you can stick in items with (relsize + ascent): "
+ " "
+ " (full) "
+ " "
+ " (to the left)
"
+
+ "Also (size + ascent): "
+ " "
+ " (full) "
+ " "
+ " (before this)
"
+
+ "And as well (absize + ascent): "
+ " "
+ " (full) "
+ " "
+ " or even paths to image files on disk too like: "
+ " "
+ " ... end."
+ , elm_app_data_dir_get()
+ );
+ elm_object_text_set(entry, buf);
+ evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ evas_object_show(entry);
+ elm_win_resize_object_add(win, entry);
+ evas_object_show(win);
+ evas_object_resize(entry, 600, 400);
+ evas_object_resize(win, 600, 400);
+ evas_smart_objects_calculate(evas_object_evas_get(win));
+ evas_event_callback_add(evas_object_evas_get(win), EVAS_CALLBACK_RENDER_POST, norendered, NULL);
+ ecore_main_loop_begin();
+}
+EFL_END_TEST
+
EFL_START_TEST(elm_entry_text_set)
{
Evas_Object *win, *entry;
@@ -427,4 +506,5 @@ void elm_test_entry(TCase *tc)
tcase_add_test(tc, elm_entry_atspi_text_selections);
tcase_add_test(tc, elm_atspi_role_get);
tcase_add_test(tc, elm_entry_text_set);
+ tcase_add_test(tc, elm_entry_magnifier);
}