efl/src/tests
Xavi Artigas e776f5f0d7 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-04 19:38:20 +02:00
..
ecore ecore: do not rely on implicit rules for memory lifecycle during test. 2019-06-20 09:40:34 -04:00
ecore_audio_cxx eolian-cxx: Remove .Base requirement 2016-04-21 18:31:53 -03:00
ecore_con remove last bits of Evil.h in tests and use evil_private.h instead 2019-06-24 09:01:25 -04:00
ecore_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
ector cmake: remove! 2018-12-20 20:07:26 +01:00
edje tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
edje_cxx meson: here comes cxx bindings 2018-10-24 12:05:58 +02:00
eet cmake: remove! 2018-12-20 20:07:26 +01:00
eet_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
eeze cmake: remove! 2018-12-20 20:07:26 +01:00
efl Fix miscellaneous build warnings 2019-06-19 10:19:49 +02:00
efl_js eolian: implement new syntax for inheritance 2018-11-23 13:57:07 +01:00
efl_mono csharp: fix some compilation warnings 2019-06-28 10:58:24 -03:00
efreet tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
eina eina: add accessors for c arrays 2019-07-03 07:41:05 +02:00
eina_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
eio tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
eldbus meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
eldbus_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
elementary Efl.Ui.Format revamp 2019-07-04 19:38:20 +02:00
elementary_cxx cxx: Rename Elementary.hh into Efl_Ui.hh 2019-05-02 21:00:57 +02:00
elocation tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
elput here comes meson 2018-10-02 17:22:50 +02:00
elua tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
emile emile_test_base64: Fix memory leak 2019-05-02 13:48:22 +02:00
emotion meson: correctly use the correct dependency 2019-04-05 08:15:39 -04:00
eo tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
eo_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
eolian eolian: allow value types in view containers (iterators etc.) 2019-06-26 14:05:46 +02:00
eolian_cxx meson: enforce 61s timeout for tests, remove explicit timeouts from build files 2019-05-15 18:49:51 +02:00
eolian_js eolian: rename @warn_unused and its associated API 2019-05-26 17:41:22 +02:00
evas evas_events: fix wrong event listening 2019-06-28 09:03:14 +02:00
evas_cxx meson: here comes cxx bindings 2018-10-24 12:05:58 +02:00
evil remove last bits of Evil.h in tests and use evil_private.h instead 2019-06-24 09:01:25 -04:00
.gitignore tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00
efl_check.h efl_check: Fix memory leak 2019-05-02 13:42:08 +02:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00
timeout.c tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00