2013-11-19 05:18:02 -08:00
|
|
|
#ifndef _ELM_SUITE_H
|
|
|
|
#define _ELM_SUITE_H
|
|
|
|
|
|
|
|
#include <check.h>
|
2018-03-26 11:19:28 -07:00
|
|
|
#include "../efl_check.h"
|
2018-08-06 11:26:08 -07:00
|
|
|
#define ck_assert_strn_eq(s1, s2, len) \
|
|
|
|
{ \
|
|
|
|
char expected[len+1], actual[len+1]; \
|
|
|
|
\
|
|
|
|
strncpy(expected, s1, len); \
|
|
|
|
expected[len] = '\0'; \
|
|
|
|
strncpy(actual, s2, len); \
|
|
|
|
actual[len] = '\0'; \
|
|
|
|
\
|
|
|
|
ck_assert_str_eq(expected, actual); \
|
|
|
|
}
|
2018-04-27 05:59:04 -07:00
|
|
|
|
|
|
|
#include <Evas.h>
|
2019-02-01 11:42:40 -08:00
|
|
|
#include <Ecore.h>
|
2019-03-21 10:24:47 -07:00
|
|
|
#include "suite_helpers.h"
|
2019-01-28 10:38:24 -08:00
|
|
|
|
2016-06-21 01:54:56 -07:00
|
|
|
void elm_test_config(TCase *tc);
|
2013-11-19 05:18:02 -08:00
|
|
|
void elm_test_check(TCase *tc);
|
2014-02-17 04:26:14 -08:00
|
|
|
void elm_test_colorselector(TCase *tc);
|
2014-05-13 20:02:10 -07:00
|
|
|
void elm_test_entry(TCase *tc);
|
2014-05-28 01:12:34 -07:00
|
|
|
void elm_test_atspi(TCase *tc);
|
2014-06-10 19:07:15 -07:00
|
|
|
void elm_test_button(TCase *tc);
|
|
|
|
void elm_test_image(TCase *tc);
|
2014-06-10 03:13:35 -07:00
|
|
|
void elm_test_list(TCase *tc);
|
2014-06-10 19:07:15 -07:00
|
|
|
void elm_test_photo(TCase *tc);
|
|
|
|
void elm_test_actionslider(TCase *tc);
|
|
|
|
void elm_test_box(TCase *tc);
|
|
|
|
void elm_test_table(TCase *tc);
|
|
|
|
void elm_test_thumb(TCase *tc);
|
|
|
|
void elm_test_menu(TCase *tc);
|
|
|
|
void elm_test_photocam(TCase *tc);
|
|
|
|
void elm_test_win(TCase *tc);
|
|
|
|
void elm_test_icon(TCase *tc);
|
|
|
|
void elm_test_prefs(TCase *tc);
|
|
|
|
void elm_test_map(TCase *tc);
|
|
|
|
void elm_test_glview(TCase *tc);
|
|
|
|
void elm_test_web(TCase *tc);
|
|
|
|
void elm_test_toolbar(TCase *tc);
|
|
|
|
void elm_test_grid(TCase *tc);
|
|
|
|
void elm_test_diskselector(TCase *tc);
|
|
|
|
void elm_test_notify(TCase *tc);
|
|
|
|
void elm_test_mapbuf(TCase *tc);
|
|
|
|
void elm_test_flip(TCase *tc);
|
|
|
|
void elm_test_layout(TCase *tc);
|
|
|
|
void elm_test_slider(TCase *tc);
|
|
|
|
void elm_test_ctxpopup(TCase *tc);
|
|
|
|
void elm_test_separator(TCase *tc);
|
|
|
|
void elm_test_calendar(TCase *tc);
|
|
|
|
void elm_test_inwin(TCase *tc);
|
|
|
|
void elm_test_gengrid(TCase *tc);
|
|
|
|
void elm_test_radio(TCase *tc);
|
|
|
|
void elm_test_scroller(TCase *tc);
|
|
|
|
void elm_test_frame(TCase *tc);
|
|
|
|
void elm_test_datetime(TCase *tc);
|
|
|
|
void elm_test_player(TCase *tc);
|
|
|
|
void elm_test_bg(TCase *tc);
|
|
|
|
void elm_test_video(TCase *tc);
|
|
|
|
void elm_test_segmentcontrol(TCase *tc);
|
|
|
|
void elm_test_progressbar(TCase *tc);
|
|
|
|
void elm_test_fileselector(TCase *tc);
|
|
|
|
void elm_test_fileselector_button(TCase *tc);
|
|
|
|
void elm_test_fileselector_entry(TCase *tc);
|
|
|
|
void elm_test_hoversel(TCase *tc);
|
|
|
|
void elm_test_multibuttonentry(TCase *tc);
|
|
|
|
void elm_test_naviframe(TCase *tc);
|
|
|
|
void elm_test_popup(TCase *tc);
|
|
|
|
void elm_test_bubble(TCase *tc);
|
|
|
|
void elm_test_clock(TCase *tc);
|
|
|
|
void elm_test_conformant(TCase *tc);
|
|
|
|
void elm_test_dayselector(TCase *tc);
|
|
|
|
void elm_test_flipselector(TCase *tc);
|
|
|
|
void elm_test_genlist(TCase *tc);
|
|
|
|
void elm_test_hover(TCase *tc);
|
|
|
|
void elm_test_index(TCase *tc);
|
|
|
|
void elm_test_label(TCase *tc);
|
|
|
|
void elm_test_panel(TCase *tc);
|
|
|
|
void elm_test_panes(TCase *tc);
|
|
|
|
void elm_test_slideshow(TCase *tc);
|
|
|
|
void elm_test_spinner(TCase *tc);
|
|
|
|
void elm_test_plug(TCase *tc);
|
2018-11-01 18:18:44 -07:00
|
|
|
void elm_test_widget_focus(TCase *tc);
|
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
|
|
|
void elm_test_widget_basics(TCase *tc);
|
2013-11-19 05:18:02 -08:00
|
|
|
|
2016-06-02 17:19:08 -07:00
|
|
|
void elm_code_file_test_load(TCase *tc);
|
|
|
|
void elm_code_file_test_memory(TCase *tc);
|
|
|
|
void elm_code_test_basic(TCase *tc);
|
|
|
|
void elm_code_test_line(TCase *tc);
|
|
|
|
void elm_code_test_parse(TCase *tc);
|
2017-01-20 14:09:16 -08:00
|
|
|
void elm_code_test_syntax(TCase *tc);
|
2016-06-02 17:19:08 -07:00
|
|
|
void elm_code_test_text(TCase *tc);
|
2016-11-27 17:01:35 -08:00
|
|
|
void elm_code_test_indent(TCase *tc);
|
2016-06-02 17:19:08 -07:00
|
|
|
void elm_code_test_widget(TCase *tc);
|
|
|
|
void elm_code_test_widget_text(TCase *tc);
|
|
|
|
void elm_code_test_widget_selection(TCase *tc);
|
|
|
|
void elm_code_test_widget_undo(TCase *tc);
|
|
|
|
|
2018-04-27 05:59:04 -07:00
|
|
|
Evas_Object *win_add();
|
2018-11-20 09:18:04 -08:00
|
|
|
Evas_Object *win_add_focused();
|
2018-04-27 05:59:04 -07:00
|
|
|
|
2019-02-01 11:42:40 -08:00
|
|
|
Eo *timer_add(double in, Ecore_Task_Cb cb, void *data);
|
|
|
|
|
|
|
|
#define ecore_timer_add timer_add
|
|
|
|
|
2013-11-19 05:18:02 -08:00
|
|
|
#endif /* _ELM_SUITE_H */
|