summaryrefslogtreecommitdiff
path: root/src/tests (unfollow)
AgeCommit message (Collapse)Author
2019-09-06eolian-mono: Renaming suffix for event and event argsBruno da Silva Belo
Summary: suffix _Args to Args, Evt to Event Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: Jaehyun_Cho, woohyun, segfaultxavi, cedric, felipealmeida, #reviewers, lauromoura, #committers Tags: #refactoring, PHID-PROJ-uhnmnvlvunw6jgoqdnd4, #efl_language_bindings Maniphest Tasks: T8164, T8163 Differential Revision: https://phab.enlightenment.org/D9692
2019-09-06eolian: change composite syntax from block to inheritance sectionDaniel Kolesa
This makes more sense as these are related to inheritance tree. Therefore, change while we still can. Fixes T8183
2019-09-05bindings: Rename test cxx and csharp eo ownership tagsLauro Moura
Summary: Ref T8199 Depends on D9843 Reviewers: q66, felipealmeida Reviewed By: q66 Subscribers: cedric, #reviewers, brunobelo, #committers Tags: #efl Maniphest Tasks: T8199 Differential Revision: https://phab.enlightenment.org/D9844
2019-09-05eolian: update C generator to respect by_ref as well as testsDaniel Kolesa
2019-09-05tests/check: use test namespace for legacy check test function namesMike Blumenkrantz
no functional changes Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9830
2019-09-04eolian: remove the expression eval_type APIDaniel Kolesa
This is unnecessary because for all contexts where type is relevant the validator already makes sure the type and expression match correctly, so you don't ever need to re-validate it. If you are doing a generic case and are not sure, just use MASK_ALL.
2019-09-04Efl_Ui: Move elementary and change namespace Ui for ui related modelsSangHyeon Jade Lee
Summary: Select and View is ui characteristic features, so Efl_Select_Model and Efl_View_Model move to elementary from ecore seems more natural. namespace also should changed to Efl.Ui as it's right place. Test Plan: run the test while building it Reviewers: cedric, felipealmeida, bu5hm4n, zmike, lauromoura Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9820
2019-09-04eolian tests: use new c_type APIsDaniel Kolesa
2019-09-03tests: use void cast with util callbackMike Blumenkrantz
Summary: fixes a compiler warning Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9805
2019-09-02eolian: move all tests to use the new @move syntax and APIDaniel Kolesa
2019-09-02Revert "eolian_mono: remove underscore of Evt_Args"Jaehyun Cho
This reverts commit ac99e2ac9410d5b2ef6225fa1aaaf9ffcd6578fb. This patch is reverted because D9692 covers this patch.
2019-09-02eolian_mono: remove underscore of Evt_ArgsJaehyun Cho
Since C# does not use underscore in type name, the underscore of Evt_Args is removed.
2019-08-30efl_ui_collection: prevent the invalid insertion of items.Marcel Hollerbach
Summary: the group hirachy that you can build up with group items is flattend down in the collection, as a linear list. Based on that a user might be able to insert items at invalid positions, like between groups, without having set the proper group item, which ... is a problem. This commit ensures that no new item ever destroys the neightboor hood between two items of the same group or a item with a group and its group leader. Reviewers: stefan_schmidt, zmike, segfaultxavi, SanghyeonLee Reviewed By: SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9778
2019-08-30tests: use void cast with util callbackMike Blumenkrantz
fixes a lot of compiler warnings Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9802
2019-08-30efl_ui/popup: timeout -> closing_timeoutMike Blumenkrantz
simple property rename ref T7902 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9801
2019-08-29eolian: disallow legacy keyword in enums in stable apiDaniel Kolesa
This also marks a bunch of users of that as beta, as they were effectively beta.
2019-08-29eina_test: resolve build warningAli Alzyod
Differential Revision: https://phab.enlightenment.org/D9781
2019-08-29efl_ui_tab_pager: remove the setter for tab_barMarcel Hollerbach
the setter of the tab_bar here is quite useless. If you set it after something else was set, the item situation is not clear anymore, there is more in the spotlight than in the bar. You cannot use the widget without tab bar. So the logical consequence for me was that the pager create the tab bar by itself, and you can just access it via a getter. Reviewed-by: WooHyun Jung <woohyun0705@gmail.com> Differential Revision: https://phab.enlightenment.org/D9731
2019-08-29efl_ui_tab_bar: migrate to Efl.Pack_LinearMarcel Hollerbach
with pack linear it is a lot more convinient and error prover to add items to this widget, this also comes with the pack test suite, which verifies that this behaviour is not broken. Additionally we have fewer APIs that a user has to learn. Reviewed-by: WooHyun Jung <woohyun0705@gmail.com> Differential Revision: https://phab.enlightenment.org/D9730
2019-08-29tests: eldbus: fix heap use after free error detected by address sanitizerStefan Schmidt
Using the just unref'ed message in the call next line is not going to end well. ==26321==ERROR: AddressSanitizer: heap-use-after-free on address 0x603000001210 at pc 0x7fc456fd37f5 bp 0x7fff37a00a50 sp 0x7fff37a00a40 READ of size 4 at 0x603000001210 thread T0 #0 0x7fc456fd37f4 in eldbus_message_path_get ../src/lib/eldbus/eldbus_message.c:193 #1 0x42f6ab in utc_eldbus_message_ref_unref_p ../src/tests/eldbus/eldbus_test_eldbus_message.c:877 #2 0x7fc456a27744 in srunner_run_tagged (/lib64/libcheck.so.0+0x6744) #3 0x406a01 in _efl_suite_run_end ../src/tests/eldbus/../efl_check.h:282 #4 0x407357 in _efl_suite_build_and_run ../src/tests/eldbus/../efl_check.h:403 #5 0x407925 in main ../src/tests/eldbus/eldbus_suite.c:49 #6 0x7fc45685df32 in __libc_start_main (/lib64/libc.so.6+0x23f32) #7 0x405d8d in _start (/home/stefan/EFL/efl/build/src/tests/eldbus/eldbus_suite+0x405d8d) ref T8142 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9755
2019-08-29efl_ui_radio_group: migrate to Efl.Ui.Single_SelectableMarcel Hollerbach
with this the whole thing is migrated to single_selectable. The group is added to the spec test suite. The elm_test case of radio_group now also has a fallback option to demonstrate the usage of it. This also fixes a broken testcase, where a flag was forgotten to be checked. ref T8024 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9706
2019-08-28tests/ecore_wl2: Skip aux_hints_supported test if not run in EnlightenmentChristopher Michael
This test will fail when run in all situations (weston, command line, etc) except when run under Enlightenment, so add a small env check so that it can be skipped if we are not running E. ref T8016
2019-08-27efl_ui_position_manager: refactor data accessMarcel Hollerbach
before data access has been a property on Efl.Ui.Position_Manager.Entity. However, we are not sure how stable all this will be, and maybe we have the demand to change that in future, in order to allow more high-performance item passing here. Additionally, this patch addresses a few lectures learned from the past, that includes: - direct group header filling. - direct group sizing - difference between size for caching, and size for displaying - Have a end_id which is the maximum of id that is filled. ref T8179 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9754
2019-08-27efl_ui_slider: refactor for better data flow and code readabilityWooHyun Jung
1. efl_ui_range_value_set only sets value 2. remove internal eo functions (such as xxx_knob, val_fetch, and val_set) 3. make access_value_and_text works correctly @ref T7893 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9720
2019-08-27efl_pack_table: rename table_position to cell_column, cell_rowYeongjong Lee
Summary: Rename ambiguous `table_position` property. it is actually related to child column, row. ref T7900 Reviewers: segfaultxavi, zmike Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7900 Differential Revision: https://phab.enlightenment.org/D9611
2019-08-26efl_ui_single_selectable: add properties and eventsMarcel Hollerbach
this commit adds 2 new features, a new event and a new property The fallback property is usefull if you want to have a selection that always falls back to some preconfigured things. As a usecase, think about a list of languges where you can select the languages you want to have. When everything is deselected, the list will simply fallback to the preconfigured element (for example the language configured before) The event is annoncing that there was a change to the selection. The event is allowed to be defered, it will be emitted once for a range of selection elements that happened during one loop iteration. This is usefull if you are interested in a general selection where you want to know that we changed from a specific set of selected element to another set of elements, without monitoring every selectable in the widget. ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9662
2019-08-26suite_helpers: punsh some sanity into function namesMarcel Hollerbach
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9661
2019-08-26efl_ui_multi_selectable: add APIs for selectingMarcel Hollerbach
this can be used to select / unselect a range or all selectables in a container. The range selectable APIs do not have a strong ordering on a and b, b does not have to come after a. ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9660
2019-08-26eina/array: added eina_array_find() api to eina_array.sub.mohanty@samsung.com
Summary: updated test suite for testing the api. Reviewers: zmike, Hermet, cedric, segfaultxavi Reviewed By: zmike, segfaultxavi Subscribers: segfaultxavi, ProhtMeyhet, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9734
2019-08-23tests/edje: disable efreetd and ecore system modules in unit testsMike Blumenkrantz
Summary: these cause tests to take up to 100x longer Reviewers: bu5hm4n, cedric Reviewed By: bu5hm4n, cedric Subscribers: cedric, #reviewers, #committers Tags: #efl_tests Differential Revision: https://phab.enlightenment.org/D9702
2019-08-23tests/eio: unlink tmpfiles after testsMike Blumenkrantz
Summary: my tmpdir is full of thousands of these things Depends on D9710 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9711
2019-08-23tests/eio: verify that the model monitor test's file is successfully createdMike Blumenkrantz
Summary: if this fails then the test will hang until timeout, so catch it earlier Depends on D9709 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9710
2019-08-23csharp: Add bindable factory parts supportLauro Moura
Summary: This commit makes parts that implement `Efl.IContent` use BindFactory instead of property binding. ``` var factory = new Efl.Ui.ItemFactory<Efl.Ui.ListDefaultItem>(); var iconFactory = new Efl.Ui.ImageFactory(null); iconFactory.PropertyBind("filename", "modelProperty"); factory.IconPart().BindFactory(iconFactory); ``` Fixes T7628 Reviewers: cedric, felipealmeida, SanghyeonLee Reviewed By: felipealmeida Tags: #efl Maniphest Tasks: T7628 Differential Revision: https://phab.enlightenment.org/D9653
2019-08-23eolian-mono: Add support for multi-value properties with tuplesFelipe Magno de Almeida
Summary: T8133 Reviewers: woohyun, segfaultxavi, felipealmeida Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9577
2019-08-23efl_ui/popup: remove text_alert classMike Blumenkrantz
this can now be done by simply calling efl_ui_widget_scrollable_content_scrollable_text_set on an alert popup tests have been adjusted for this Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9677
2019-08-23efl_ui/popup: remove scroll_alert classMike Blumenkrantz
this can now be done by simply calling efl_ui_widget_scrollable_content_set on an alert popup tests have been adjusted for this Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9675
2019-08-21efl_ui_spec_suite: that fixture is unneededMarcel Hollerbach
items are already getting added from the fixture added for the single selectable interface Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9659
2019-08-21efl_ui/popup: remove anchor_popup classMike Blumenkrantz
Summary: all functionality is now merged into the base popup class. this greatly simplifies the codebase and deduplicates a lot of code ref T7902 Depends on D9651 Reviewers: cedric Reviewed By: cedric Subscribers: herb, cedric, #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T7902 Differential Revision: https://phab.enlightenment.org/D9652
2019-08-21efl_ui_animation_view: introduce a new widget for controlling vector animation.Hermet Park
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-21efl_ui_position_manager: pass on information about group idsMarcel Hollerbach
every batched call will now contain the id of the first item, if the conditions in the documentation are met. ref T8115 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9586
2019-08-21introduce group itemMarcel Hollerbach
this brings a group item in the style of genlist / gengrid group items. The group item theme does currently not provide the signals in the theme that would be needed for selecting it. This is kind of intended, but we might need API to express that. ref T8115 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9583
2019-08-20tests/popup: make text alert sizing test even more strictMike Blumenkrantz
Summary: ensure that the internal label size is not wider than the scroller text alerts should never need to scroll horizontally, so ensure that this does not break Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9589
2019-08-20elm_slider: remove dependency with efl_ui_sliderWooHyun Jung
Summary: This commit includes follwoing works. 1. change parent class from EFL_UI_SLIDER_INTERVAL to EFL_UI_LAYOUT_BASE 2. get all necessary codes from efl_ui_slider and efl_ui_slider_interval to elm_slider 3. add callbacks to slider test code ref T7893 Test Plan: 1. elementary_test 2. slider 3. operate sliders on the window Reviewers: bu5hm4n, segfaultxavi, eagleeye, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7893 Differential Revision: https://phab.enlightenment.org/D9623
2019-08-19csharp: MVVM parts supportLauro Moura
Summary: Parts binding will follow a similar approach to regular property binding: `var error = factory.PartName().PropertyName().Bind(modelProperty);` * Changed both `Bind()` overloads to return the error code from `efl_ui_property_bind` * Also properties from interfaces implemented didn't have their `Bindable` wrapper methds available. Depends on D9563 Reviewers: felipealmeida, cedric, SanghyeonLee, woohyun Reviewed By: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D9564
2019-08-19tests/scroller: start unit tests for efl.ui.scrollerMike Blumenkrantz
same layout as elm_test case, start by checking scroll events after wheel Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9634
2019-08-19tests/elm: add util functions for triggering wheel eventsMike Blumenkrantz
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9633
2019-08-19evas_textblock: markup text: improve handling invalide escape charactersali
Improve handling invalid escape characters. (*) When '&' character founded in Markup text. Old Behavior : Any text after '&' (if it is not escape), all text will be discarded New Behavior : Any text after '&' (if it is not escape), will be processes as normal plain text. Example: Markup Text : Hello X & Y & Z 1 2 3 Old output : Hello New output : Hello X & Y & Z 1 2 3 This is related to T8077 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9489
2019-08-19make mman.h privateVincent Torri
Summary: integrate mman.h to make Evil private to the EFL, as mman.h does not exist on Windows. After a discussion with raster, i include sys/mman.h only on non Windows platform. One issue, though, is that src/modules/emotion/generic/Emotion_Generic_Plugin.h has inlined functions using mmap() Test Plan: compilation on Windows Reviewers: cedric, raster, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9542
2019-08-19eo-cxx: Add second NULL sentinel to avoid buffer overrun by efl_check.hFelipe Magno de Almeida
efl_check.h assumes at least one element exists when checking parallelization and accesses the second element of the array without checking its size first. Adding a second NULL sentinel fixes the problem. T8141 Differential Revision: https://phab.enlightenment.org/D9588
2019-08-16eolian: rename is_class api for functions to is_staticDaniel Kolesa
Still needs restriction to classes only etc to be done later. Ref https://phab.enlightenment.org/T8118 Ref https://phab.enlightenment.org/T7675