2019-04-23 01:21:43 -07:00
|
|
|
efl_ui_suite_behavior_test_files = files([
|
|
|
|
'efl_test_pack.c',
|
|
|
|
'efl_test_pack_linear.c',
|
|
|
|
'efl_test_content.c',
|
2019-05-14 12:50:32 -07:00
|
|
|
'efl_test_gfx_arrangement.c',
|
|
|
|
'efl_test_clickable.c',
|
Efl.Ui.Format revamp
This class helps widgets which contain a numerical value and must display it,
like Progressbar (units label), Spin, Spin_Button, Slider (both units and popup
labels, in legacy), Tags (when in shrunk mode) or Calendar (year_month label).
Previously this was a mix of interface and mixin: widgets had to support setting a
formatting func, and the mixin offered support for formatting strings, by setting
an internal formatting func. On top of that, the spinner widget supported "special
values", a list of values that should be shown as certain strings instead.
This has now been simplified and unified:
Widgets including this mixin can use the formatted_value_get() method which accepts
an Eina_Value and returns a string. Thats's it.
The mixin adds three properties to the widget (format_values, format_func and
format_string) which users can use to tailor formatting. The widget does not need
to know which method has been used, it just retrieves the resulting string.
This removes a lot of duplicated widget code, and adds functionality which was
missing before. For example, all widgets support passing a list of values now.
Widgets must implement the apply_formatted_value() method so they are notified
of changes in the format and they can redraw anything they need.
Tests have been added to the Elementary Spec suite for all cases.
Legacy widgets behavior has not been modified, although a few needed some code
changes.
2019-07-02 05:40:06 -07:00
|
|
|
'efl_test_format.c',
|
2019-07-08 07:18:57 -07:00
|
|
|
'efl_test_range_display.c',
|
|
|
|
'efl_test_range_interactive.c',
|
2019-07-12 12:24:58 -07:00
|
|
|
'efl_test_ui_view.c',
|
2019-08-06 10:55:40 -07:00
|
|
|
'efl_test_single_selectable.c',
|
|
|
|
'efl_test_multi_selectable.c',
|
2019-08-08 06:12:46 -07:00
|
|
|
'efl_test_selectable.c',
|
efl_ui_animation_view: introduce a new widget for controlling vector animation.
Summary:
This is a new convenient ui control that designed to load vector resources
-svg, json-, and control animations if it supports.
Please turn on evas-loaders-json in meson options,
if you'd like to use Lottie Animation.
Co-authored-by: JunsuChoi <jsuya.choi@samsung.com>
@feature
Reviewers: #committers, jsuya, zmike, bu5hm4n
Reviewed By: #committers, bu5hm4n
Subscribers: zmike, bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9451
2019-08-21 01:39:43 -07:00
|
|
|
'efl_test_gfx_view.c',
|
2019-10-07 06:38:12 -07:00
|
|
|
'efl_test_basics.c'
|
2019-04-23 01:21:43 -07:00
|
|
|
])
|
|
|
|
|
|
|
|
efl_ui_suite_behavior_src = files([
|
2019-03-29 00:14:05 -07:00
|
|
|
join_paths('..','suite_helpers.c'),
|
|
|
|
join_paths('..','suite_helpers.h'),
|
|
|
|
join_paths('..','elm_test_init.c'),
|
|
|
|
'efl_ui_spec_suite.c',
|
|
|
|
'efl_test_container.c',
|
2019-04-23 01:21:43 -07:00
|
|
|
]) + efl_ui_suite_behavior_test_files
|
2019-03-29 00:14:05 -07:00
|
|
|
|
|
|
|
test_generator = find_program('generator.py')
|
|
|
|
|
|
|
|
generated_test_parts = custom_target('generate_test_suite',
|
2019-04-23 01:21:43 -07:00
|
|
|
input: efl_ui_suite_behavior_test_files,
|
2019-03-29 00:14:05 -07:00
|
|
|
output: 'efl_ui_spec_suite_gen.x',
|
2019-04-23 01:21:43 -07:00
|
|
|
command: [test_generator, '@INPUT@', '@OUTPUT@'],
|
2019-03-29 00:14:05 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
efl_ui_behavior_suite = executable('efl_ui_spec_suite',
|
2019-06-29 07:19:08 -07:00
|
|
|
efl_ui_suite_behavior_src + [generated_test_parts] + [priv_eo_file_target],
|
2019-03-29 00:14:05 -07:00
|
|
|
dependencies: [check, eina, elementary, elementary_deps],
|
|
|
|
include_directories : [config_dir] + [elementary_config_dir] + [include_directories('../')],
|
|
|
|
c_args : [
|
|
|
|
'-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
|
|
|
|
'-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
|
2023-12-04 06:22:49 -08:00
|
|
|
'-DELM_IMAGE_DATA_DIR="'+join_paths(source_root, 'data', 'elementary')+'"',
|
|
|
|
'-DELM_TEST_DATA_DIR="'+join_paths(build_root, 'data', 'elementary')+'"',
|
2019-03-29 00:14:05 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
test('efl_ui_spec-suite', efl_ui_behavior_suite,
|
2019-11-04 06:52:29 -08:00
|
|
|
env : test_env,
|
|
|
|
timeout: 60
|
2019-03-29 00:14:05 -07:00
|
|
|
)
|