2013-11-19 05:18:02 -08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "elementary_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
#include "elm_suite.h"
|
2016-04-15 06:39:11 -07:00
|
|
|
#include "../efl_check.h"
|
2019-01-28 10:38:24 -08:00
|
|
|
#include "suite_helpers.h"
|
2018-04-17 06:43:52 -07:00
|
|
|
|
2019-07-10 10:57:40 -07:00
|
|
|
extern Eina_Bool abort_on_warnings;
|
|
|
|
|
2016-04-15 06:39:11 -07:00
|
|
|
static const Efl_Test_Case etc[] = {
|
2016-06-21 01:54:56 -07:00
|
|
|
{ "elm_config", elm_test_config },
|
2013-11-19 05:18:02 -08:00
|
|
|
{ "elm_check", elm_test_check },
|
2014-02-17 04:26:14 -08:00
|
|
|
{ "elm_colorselector", elm_test_colorselector },
|
2014-05-13 20:02:10 -07:00
|
|
|
{ "elm_entry", elm_test_entry},
|
2014-05-28 01:12:34 -07:00
|
|
|
{ "elm_atspi", elm_test_atspi},
|
2014-06-10 19:07:15 -07:00
|
|
|
{ "elm_button", elm_test_button},
|
|
|
|
{ "elm_image", elm_test_image},
|
2014-06-10 03:13:35 -07:00
|
|
|
{ "elm_list", elm_test_list},
|
2014-06-10 19:07:15 -07:00
|
|
|
{ "elm_photo", elm_test_photo},
|
|
|
|
{ "elm_actionslider", elm_test_actionslider},
|
|
|
|
{ "elm_box", elm_test_box},
|
|
|
|
{ "elm_table", elm_test_table},
|
|
|
|
{ "elm_thumb", elm_test_thumb},
|
|
|
|
{ "elm_menu", elm_test_menu},
|
|
|
|
{ "elm_photocam", elm_test_photocam},
|
|
|
|
{ "elm_win", elm_test_win},
|
|
|
|
{ "elm_icon", elm_test_icon},
|
|
|
|
{ "elm_prefs", elm_test_prefs},
|
|
|
|
{ "elm_map", elm_test_map},
|
|
|
|
{ "elm_glview", elm_test_glview},
|
|
|
|
{ "elm_web", elm_test_web},
|
|
|
|
{ "elm_toolbar", elm_test_toolbar},
|
|
|
|
{ "elm_grid", elm_test_grid},
|
|
|
|
{ "elm_diskselector", elm_test_diskselector},
|
|
|
|
{ "elm_notify", elm_test_notify},
|
|
|
|
{ "elm_mapbuf", elm_test_mapbuf},
|
|
|
|
{ "elm_flip", elm_test_flip},
|
|
|
|
{ "elm_layout", elm_test_layout},
|
|
|
|
{ "elm_slider", elm_test_slider},
|
|
|
|
{ "elm_ctxpopup", elm_test_ctxpopup},
|
|
|
|
{ "elm_separator", elm_test_separator},
|
|
|
|
{ "elm_calendar", elm_test_calendar},
|
|
|
|
{ "elm_inwin", elm_test_inwin},
|
|
|
|
{ "elm_gengrid", elm_test_gengrid},
|
|
|
|
{ "elm_radio", elm_test_radio},
|
|
|
|
{ "elm_scroller", elm_test_scroller},
|
|
|
|
{ "elm_frame", elm_test_frame},
|
|
|
|
{ "elm_datetime", elm_test_datetime},
|
|
|
|
{ "elm_player", elm_test_player},
|
|
|
|
{ "elm_bg", elm_test_bg},
|
|
|
|
{ "elm_video", elm_test_video},
|
|
|
|
{ "elm_segmentcontrol", elm_test_segmentcontrol},
|
|
|
|
{ "elm_progressbar", elm_test_progressbar},
|
|
|
|
{ "elm_fileselector", elm_test_fileselector},
|
|
|
|
{ "elm_fileselector_button", elm_test_fileselector_button},
|
|
|
|
{ "elm_fileselector_entry", elm_test_fileselector_entry},
|
|
|
|
{ "elm_hoversel", elm_test_hoversel},
|
|
|
|
{ "elm_multibuttonentry", elm_test_multibuttonentry},
|
|
|
|
{ "elm_naviframe", elm_test_naviframe},
|
|
|
|
{ "elm_popup", elm_test_popup},
|
|
|
|
{ "elm_bubble", elm_test_bubble},
|
|
|
|
{ "elm_clock", elm_test_clock},
|
|
|
|
{ "elm_conformant", elm_test_conformant},
|
|
|
|
{ "elm_dayselector", elm_test_dayselector},
|
|
|
|
{ "elm_flipselector", elm_test_flipselector},
|
|
|
|
{ "elm_genlist", elm_test_genlist},
|
|
|
|
{ "elm_hover", elm_test_hover},
|
|
|
|
{ "elm_index", elm_test_index},
|
|
|
|
{ "elm_label", elm_test_label},
|
|
|
|
{ "elm_panel", elm_test_panel},
|
|
|
|
{ "elm_panes", elm_test_panes},
|
|
|
|
{ "elm_slideshow", elm_test_slideshow},
|
|
|
|
{ "elm_spinner", elm_test_spinner},
|
|
|
|
{ "elm_plug", elm_test_plug},
|
2016-11-27 17:01:35 -08:00
|
|
|
{ "elm_code_file_load", elm_code_file_test_load },
|
|
|
|
{ "elm_code_file_memory", elm_code_file_test_memory },
|
|
|
|
{ "elm_code_parse", elm_code_test_parse },
|
2017-01-20 14:09:16 -08:00
|
|
|
{ "elm_code_syntax", elm_code_test_syntax },
|
2016-11-27 17:01:35 -08:00
|
|
|
{ "elm_code_text", elm_code_test_text },
|
|
|
|
{ "elm_code_indent", elm_code_test_indent },
|
|
|
|
{ "elm_code_basic", elm_code_test_basic },
|
|
|
|
{ "elm_code_widget", elm_code_test_widget },
|
|
|
|
{ "elm_code_widget_text", elm_code_test_widget_text },
|
|
|
|
{ "elm_code_widget_selection", elm_code_test_widget_selection },
|
|
|
|
{ "elm_code_widget_undo", elm_code_test_widget_undo },
|
2018-11-01 18:18:44 -07:00
|
|
|
{ "elm_widget_focus", elm_test_widget_focus},
|
elm: add basics test to create a destroy *every* widget with errors
Summary:
this simply creates packs, resizes, and destroys every single widget
that we have in legacy elm.
This i made to ensure that there are no mistakes in the construction
chain. Additionally, a second test case checks that creation with none
elm parents is erroring but not failing, this seems weird, but we have
provided that in the past, so we should continue providing this.
Reviewers: zmike, segfaultxavi
Reviewed By: zmike, segfaultxavi
Subscribers: segfaultxavi, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10088
2019-10-02 08:05:36 -07:00
|
|
|
{ "elm_widget_basics", elm_test_widget_basics},
|
2013-11-19 05:18:02 -08:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2016-04-15 06:39:11 -07:00
|
|
|
main(int argc, char **argv)
|
2013-11-19 05:18:02 -08:00
|
|
|
{
|
|
|
|
int failed_count;
|
|
|
|
|
2016-04-15 06:39:11 -07:00
|
|
|
if (!_efl_test_option_disp(argc, argv, etc))
|
|
|
|
return 0;
|
2013-11-19 05:18:02 -08:00
|
|
|
|
2019-01-28 10:38:24 -08:00
|
|
|
failed_count = suite_setup(EINA_TRUE);
|
2019-07-10 10:57:40 -07:00
|
|
|
abort_on_warnings = EINA_TRUE;
|
2018-04-17 06:43:52 -07:00
|
|
|
|
|
|
|
failed_count += _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
|
|
|
|
"Elementary", etc, SUITE_INIT_FN(elm2), SUITE_SHUTDOWN_FN(elm));
|
2013-11-19 05:18:02 -08:00
|
|
|
|
|
|
|
return (failed_count == 0) ? 0 : 255;
|
|
|
|
}
|