summaryrefslogtreecommitdiff
path: root/src/tests (follow)
AgeCommit message (Collapse)Author
2019-08-16eolian: rename @class on methods to @staticDaniel Kolesa
Ref https://phab.enlightenment.org/T8118 Ref https://phab.enlightenment.org/T7675
2019-08-15tests/ecore_wl2: Add ecore_wl2_surface tests to build orderChristopher Michael
ref T8016
2019-08-14efl_ui/popup: remove 'expandable' property from popup subclassesMike Blumenkrantz
this is more or less just the max size hint, so just set the max size hint ref T7902 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9550
2019-08-14efl_ui/popup: remove popup_size propertyMike Blumenkrantz
this was more or less just a wrapper around efl_gfx_entity_size_set and resulted in unpredictable behavior depending on when it was called instead, simply set the min size hint on the popup object ref T7902 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9549
2019-08-14efl: mark a couple internal eo files as @betaMike Blumenkrantz
Summary: these are not distributed apis so they should always remain beta Reviewers: q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9559
2019-08-14tests/ecore_wl2: Add start of ecore_wl2_surface testsChristopher Michael
ref T8016
2019-08-12elementary: add tests for the efl_part support of efl_ui_property_bind.Cedric BAIL
Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9529
2019-08-11evas test - use correct type for ptr type tracking calledCarsten Haitzler (Rasterman)
callback setup uses int but thecallback uses intptr_t ... which is... wrong.
2019-08-11efl check - use global not stack local buffer for srunner_set_xmlCarsten Haitzler (Rasterman)
asan is most unhappy about using a priori stack frame's data for this.. it seems check uses the char * buf directly as-is without duplicating it... so we can't sensibvly use local stack data. that is what asan is saying... and this makes our tests not work under asan to begin with... nto to mention other possible issues i have yet to see as i got to this one first.
2019-08-09tests/popup: add (extremely) comprehensive test for anchor popupsMike Blumenkrantz
this verifies all align settings, different anchor points, changing anchors and aligns on-the-fly, unsetting anchors, and changing popup sizes Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9526
2019-08-09tests/popup: add test units for all the text_alert popups in elm_testMike Blumenkrantz
this is mostly to verify that the internal label is sizing as expected Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9523
2019-08-09tests/popup: add unit tests for scroll_alert expandable sizingMike Blumenkrantz
these correspond to the cases in elm_test Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9522
2019-08-08efl_ui_selectable: add spec test suite for thisMarcel Hollerbach
Summary: this brings a spec test suite for Efl.Ui.Selectable Depends on D9517 Reviewers: zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9518
2019-08-07introduce efl_ui_multi_selectable and efl_ui_single_selectableMarcel Hollerbach
right now they are just thin wrappers from what have been in efl_ui_collection. This is just a first effort, the interfaces have to be equipped with more and better API, more events, and tests. ref T8057 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9515
2019-08-07tests/popup: add sizing test for scroll_alert popupMike Blumenkrantz
Differential Revision: https://phab.enlightenment.org/D9516
2019-08-06tests/popup: add unit tests for alert_popupMike Blumenkrantz
this covers all cases from the elm_test example Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9512
2019-08-06efl_ui_check: migrate from own property to Efl.Ui.SelectableMarcel Hollerbach
this is the basic work for getting radio group as a single_selection interface, which can be a part of mutli_selection. Which will come both later on. ref T8057 Differential Revision: https://phab.enlightenment.org/D9504
2019-08-06tests/efl_ui_popup: add tests for this widgetMike Blumenkrantz
these tests cover all the cases in the elm_test efl.ui.popup example Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9509
2019-08-06tests/elm: add helper callback for automatically quitting main loop when ↵Mike Blumenkrantz
triggered Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9506
2019-08-06tests/elm: add helper function for clicking at specified coordsMike Blumenkrantz
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9505
2019-08-05csharp: fix ownership of value types in arrays and listsVitor Sousa
Summary: `eolian_mono` now considers the implicit ownership of value types in arrays and lists when generating ownership flags. Also, update manual bindings for arrays and lists to no longer free elements in the `Dispose` method when the container has ownership of the elements but C# itself does not have ownership of the container; the elements will be freed by whoever owns the container. Modifying and removing elements will still free them though. Re-enabled unit tests that required ownership of value type elements. Reviewers: felipealmeida, q66, vitor.sousa Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9457
2019-08-05csharp: re-enable binbuf tests with -Dmono-beta=falseVitor Sousa
Summary: Since the introduction of the `binbuf` keyword in eolian, `Eina_Binbuf` is no longer a beta only type. Hence, we enable EFL# binbuf unit tests in non-beta compilation too. Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9467
2019-08-05introduce a new interface efl_ui_selectableMarcel Hollerbach
this is meant to be implemented by entities that *can* be selectabled (not to be confused with containers that can have selected contents)! ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9503
2019-08-05efl-mono: Add Model manual implementation to C# and MVVM factoriesLauro Moura
Summary: Depends on D9273, D9270 Test Plan: Run added testcases. Reviewers: cedric, bu5hm4n, zmike, SanghyeonLee, felipealmeida, segfaultxavi Reviewed By: cedric Subscribers: cedric Tags: #expertise_solutions, #efl_language_bindings Differential Revision: https://phab.enlightenment.org/D8080
2019-08-05efl_input_key: replace key property name with key_symYeongjong Lee
Summary: Sorry to touch stable eo classes. there is name conflict issue between class and property when binding language is generated from eo. for example in C#, compiler error occurs. ``` src/bindings/mono/efl_input_key.eo.cs(272,26): error CS0542: `Efl.Input.Key.Key': member names cannot be the same as their enclosing type ``` This patch changes Efl.Input.Key.GetKey/SetKey method to Efl.Input.Key.GetKeySym/SetKeySym and generates Efl.Input.Key.KeySym property. Note that CAPI is not changed. ref T8093 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, woohyun, zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8093 Differential Revision: https://phab.enlightenment.org/D9483 zmike note: this class was not released at the point of this patch, the class was only recently marked as stable
2019-08-03efl_ui_spin: move the step implementation to spin_buttonMarcel Hollerbach
having efl_ui_spin implementing efl.ui.range_interactive does not make sense. Efl.Ui.Spin is a not interactive widget, so it should not implement that interface. ref T7897 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9475
2019-08-01efl_ui_spec: add a test suite for the steady eventMarcel Hollerbach
this checks that the steady event is correctly emitted after some time. Right now this test does notthing for EFL_UI_SPIN_CLASS. Reason for this is that Spin is not interactive, even if it implements the interface for it. Maybe something we should resolve in future. ref T7894 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9460
2019-08-01efl_ui_spin_button: use the newly emitted event from range_interactiveMarcel Hollerbach
this event is not also in range_interactive, so better use this. ref T8097 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9459
2019-08-01efl_ui_range_interactive: add a new eventMarcel Hollerbach
the steady event from slider now moved here. A spec test suite and the corresponding implementations will follow. ref T7894 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9458
2019-08-01eolian: remove __builtin_free_cbDaniel Kolesa
This has long been unused. If we need to replace this eventually, it should be done correctly.
2019-08-01eolian: disallow ptr() in containers in stable APIDaniel Kolesa
2019-08-01tests/ecore_wl2: Add test for ecore_wl2_input_name_getChristopher Michael
ref T8016
2019-08-01tests/ecore_wl2: Add test for ecore_wl2_input_keymap_getChristopher Michael
ref T8016
2019-08-01tests/ecore_wl2: Add test for ecore_wl2_input_display_get functionChristopher Michael
ref T8016
2019-08-01tests/ecore_wl2: Add test for ecore_wl2_input_seat_id_get functionChristopher Michael
ref T8016
2019-08-01tests/ecore_wl2: Fix assert tests for some window functionsChristopher Michael
ref T8016
2019-08-01tests/ecore_wl2: Add start of Ecore_Wl2_Input API testsChristopher Michael
ref T8016
2019-08-01fix warningMarcel Hollerbach
2019-08-01efl_input_clickable: add longpress_abortWooHyun Jung
Now, a specific class which uses efl_input_clickable_util is able to cancel ongoing longpress event by calling longpress_abort. This commit shows how efl_ui_text uses longpress_abort to satisfy its own longpress use case ref T7847 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9455
2019-07-31efl_ui_position_manager: move from accessor to function callbackMarcel Hollerbach
this commit enables access to the item structure of the collection via a function callback. The function callback now enables batching for items, which does not pay off right now. However, a few more optimizations can be done in order to get the whole payoff. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9445
2019-07-31evas_textblock: change font-size/font-family only using EFL.Text.Font Interfaceali
Currently: User cannot change font size only, he needs to set both font and font size with (**efl_text_font_font_set**) To change size only, you need to make two calls, one to get font (**efl_text_font_font_get**) , then pass it again with new size to (**efl_text_font_font_set**). New Behaviour: If user want to change size only, then he passes NULL as font argument to keep same font. If user want to change font only, then he passes 0 as font-size argument, to keep same font-size. Notes: This is not best solution, but it better than current behaviour. I think best solution to have separate function to set font size, but It might break current api or duplicate functions. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9158
2019-07-31efl_ui_check/radio: use clickableMarcel Hollerbach
Summary: with this commit the state of the check / radio buttons are changes when the Widget is clicked. The Widget is now using clickable and emits all the events. ref T7865 Reviewers: segfaultxavi, zmike, Jaehyun_Cho, woohyun Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7865 Differential Revision: https://phab.enlightenment.org/D9456
2019-07-31Efl.Ui.Spin: Remove mouse wheel interactionXavi Artigas
This widget is now meant as a base class for other widgets, with very limited user interaction. Efl.Ui.Spin_Button already takes care of mouse wheel events. Ref T7897 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9453
2019-07-31efl_ui_spec: add test suite for range_display eventsMarcel Hollerbach
Summary: this test case ensures the correct emittation of the newly added events. ref T7895 Depends on D9372 Reviewers: segfaultxavi, zmike, woohyun, cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7895 Differential Revision: https://phab.enlightenment.org/D9373
2019-07-31efl_ui_range_display: move events from spinMarcel Hollerbach
we concluded min,reached and max,reached should be on every widget that implements range_display. This here is the start of that work, the events are moved, next commit fixes all widgets, the last commits enables tests in the spec unit test. ref T7897 ref T7895 Differential Revision: https://phab.enlightenment.org/D9371
2019-07-30csharp: Add EFL_BETA guards around new testLauro Moura
Summary: The test method is not generated when beta is disabled as `Eina.Value_Type` is marked @beta and eolian complains if we try to use it. Other `Eina.Value` methods work despite `Eina.Value` also being beta due to its usage as stable through the keyword `any_value[_ptr]`. Reviewers: vitor.sousa, bu5hm4n, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9449
2019-07-30ecore: Fix download test.Lauro Moura
Summary: After ecore_main_loop_quit() changes, calling it from outside the main loop does not make the next iteration of the main loop quit, causing the original version of the test to deadlock. Also update the function documentation about it. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, felipealmeida, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9448
2019-07-30Revert "evas_object_textblock: add support for variation sequences"Marcel Hollerbach
This reverts commit f7ce771e3243e19f8a12672ea2be752dedccbcf6.
2019-07-30csharp: Add marshal support for Eina.ValueTypeLauro Moura
Summary: It uses a custom marshaler and a helper boxing class to convert between the managed enum values and the native Eina_Value_Type pointers. To be used by future MVVM machinery. Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9443
2019-07-29evas_object_textblock: add support for variation sequencesAli Alzyod
update font processing to handle variation sequences unicodes to select proper glypg in respect to variation seqences Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9053