summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-21 09:38:39 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-23 07:33:51 +0200
commitf64a0966dcbb8639f5a3f6f57c6f8cd514579b0b (patch)
tree7a2e45b6ec7b110277313bdf36766468933a1974 /src/tests
parent1d2d15bbf844a44276e737c42654ea0a4cbb7e75 (diff)
efl_ui/popup: remove text_alert class
this can now be done by simply calling efl_ui_widget_scrollable_content_scrollable_text_set on an alert popup tests have been adjusted for this Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9677
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/efl_ui_test_popup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/elementary/efl_ui_test_popup.c b/src/tests/elementary/efl_ui_test_popup.c
index da0fee2a89..a1d6d4f17f 100644
--- a/src/tests/elementary/efl_ui_test_popup.c
+++ b/src/tests/elementary/efl_ui_test_popup.c
@@ -445,7 +445,7 @@ EFL_END_TEST
445 445
446EFL_START_TEST(efl_ui_test_popup_text_alert) 446EFL_START_TEST(efl_ui_test_popup_text_alert)
447{ 447{
448 Eo *popup = _popup_alert_setup(EFL_UI_TEXT_ALERT_POPUP_CLASS); 448 Eo *popup = _popup_alert_setup(EFL_UI_ALERT_POPUP_CLASS);
449 char test_string[] = "This is Text Popup"; 449 char test_string[] = "This is Text Popup";
450 unsigned int string_counts[] = 450 unsigned int string_counts[] =
451 { 451 {
@@ -510,12 +510,12 @@ EFL_START_TEST(efl_ui_test_popup_text_alert)
510 for (j = 0; j < string_counts[i]; j++) 510 for (j = 0; j < string_counts[i]; j++)
511 eina_strbuf_append(buf, test_string); 511 eina_strbuf_append(buf, test_string);
512 512
513 efl_text_set(popup, eina_strbuf_string_get(buf)); 513 efl_ui_widget_scrollable_text_set(popup, eina_strbuf_string_get(buf));
514 efl_gfx_hint_size_max_set(popup, test_expands[i]); 514 efl_gfx_hint_size_max_set(popup, test_expands[i]);
515 efl_canvas_group_calculate(popup); 515 efl_canvas_group_calculate(popup);
516 516
517 /* get internal label object: VERY illegal */ 517 /* get internal label object: VERY illegal */
518 scroller = efl_content_get(efl_part(efl_super(popup, efl_ui_text_alert_popup_class_get()), "efl.content")); 518 scroller = efl_content_get(efl_part(efl_super(popup, EFL_UI_ALERT_POPUP_CLASS), "efl.content"));
519 label = efl_content_get(scroller); 519 label = efl_content_get(scroller);
520 520
521 /* label should never be larger than scroller horizontally 521 /* label should never be larger than scroller horizontally