summaryrefslogtreecommitdiff
path: root/src/tests (unfollow)
AgeCommit message (Collapse)Author
2019-02-04tests: improve efl loop test (concentric)Mike Blumenkrantz
I forgot to spin the sub-loop, so this was previously just a test to verify that the IDLE callback was working. now this spins the sub-loop on the idle callback and tests the idle enter callback to verify that the main loop is being iterated Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Differential Revision: https://phab.enlightenment.org/D7874
2019-02-04eo: implement class overriding (+unit tests)Mike Blumenkrantz
this enables an app or a platform to add an override for a given class, then return a different object when that class is created. the benefit is that a class can be internally customized by the app without needing to modify upstream versions of that class @feature fix T7516 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7702
2019-02-01tests: add explicit test for concentric loop usageMike Blumenkrantz
having multiple loops which interact is a valid use case that should be tested to ensure functionality Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Differential Revision: https://phab.enlightenment.org/D7868
2019-02-01tests/elm: speed up all main loop timer executionMike Blumenkrantz
this spins a second loop which manages a timer to trigger the canvas tick and increase the loop timer by a fixed interval on every timer call by increasing the loop time manually, timers such as edje animation timers which would usually take a very long time (e.g., 0.5s) to run will instead complete almost instantly, making tests run much faster the second loop is necessary in this case in order to accurately provide ticks at a consistent interval without any modifications to timing Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Differential Revision: https://phab.enlightenment.org/D6791
2019-02-01eolian-mono: Provide constructor parameters based on the constructorsFelipe Magno de Almeida
section of the Eo files. Reviewers: woohyun, segfaultxavi, bu5hm4n, felipealmeida Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7789
2019-02-01replace hton and ntoh family functions with ones defined in einaVincent Torri
Summary: This fixes especially the execution of edje_cc on Windows Test Plan: execution of edje_cc Reviewers: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7834
2019-02-01eo: fix efl_isa to work propertly with interfacesMarcel Hollerbach
mro only contains special interfaces, not in general all, in order to have a working function, while NOT having a bad performance. In order to achive that we just copy the code that is done on efl_isa for a object. which is a linear walk of a list ref D7857 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7860
2019-01-31efl_ui_win: add 'exit_on_close' property and unit testMike Blumenkrantz
Summary: this property can enable the associated window to quit the main loop with the passed exit code when the window is destroyed @feature fix T5494 Depends on D7594 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T5494 Differential Revision: https://phab.enlightenment.org/D7595
2019-01-31efl_ui_win: add 'exit_on_all_windows_closed' class property and unit testMike Blumenkrantz
Summary: this property causes the main loop to exit with the passed exit code when the standby event is triggered @feature ref T5494 Reviewers: cedric, bu5hm4n, segfaultxavi Reviewed By: cedric, bu5hm4n, segfaultxavi Subscribers: segfaultxavi, bu5hm4n, #reviewers, #committers Tags: #efl Maniphest Tasks: T5494 Differential Revision: https://phab.enlightenment.org/D7594
2019-01-31efl_model : rename all efl_model based classes.SangHyeon Jade Lee
Summary: As the result of discussion in T7458, we need to rename all efl_model based classes with efl_XXX_Model sequence. I've run few vote for this, see V42, V43 few classes are totally renamed as our consideration of misnaming. | Efl.Model_Loop | Efl.Loop_Model | | Efl.Model_Item | Efl.Generic_Model | | Efl.Model_Container | Efl.Container_Model | | Efl.Model_Container_Item | Efl.Container_Model_Item | | Efl.Model_Composite | Efl.Composite_Model | | Efl.Model_Composite_Boolean | Efl.Boolean_Model | | Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item | | Efl.Model_Composite_Selection | Efl.Select_Model | | Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item | | Efl.Model_View | Efl.View_Model | | Eio.Model | Efl.Io.Model | | Efl.Ui.Model_State | Efl.Ui.State_Model | | Efl.Ui.Model_Size | Efl.Ui.Size_Model | | Efl.Ui.Model_Exact | Efl.Ui.Exact_Model | | Efl.Ui.Model_Average | Efl.Ui.Average_Model | | Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model | I worried about Efl.Io.Model changes, cause it is widely used, but as I tested, there is no issue found yet. Eldbus.Model also may can changed Efl.Dbus.Model, but I cannot found any class who using Efl.Dbus namespace, so I left it future work. Test Plan: Run the Make Test, it works well except Efl test about selection. there are class inheritance problem exist in select_model, I reported it and will fix it in another patch. Reviewers: cedric, felipealmeida, woohyun, Hermet Reviewed By: cedric Subscribers: lauromoura Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D7533
2019-01-31elementary: add test for Efl.Ui.Model_Average.Cedric BAIL
Summary: Depends on D7664 Reviewers: SanghyeonLee, felipealmeida, segfaultxavi, zmike Reviewed By: SanghyeonLee Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7382 Differential Revision: https://phab.enlightenment.org/D7665
2019-01-30elementary: add a test for Efl.Ui.Model_Exact.Cedric BAIL
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7664
2019-01-30elementary: add a test for Efl.Ui.Model_Homogeneous.Cedric BAIL
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7663
2019-01-30ecore: add an index property on Efl.Model_Composite and handle ↵Cedric BAIL
children_slice_get. This will enable inheriting class to not have to implement as much code. This patch fix also all class that use Efl.Model_Composite and its test. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7654
2019-01-30efl.text_markup: move cursor-related methods to efl.text_markup_interactiveMike Blumenkrantz
many users of the markup property are not interactive text cases, so splitting off the interactive methods resolves a number of unimplemented method issues ref T5719 Differential Revision: https://phab.enlightenment.org/D7787
2019-01-30tests: move efl_ui focus tests into efl_ui_suiteMike Blumenkrantz
ref T6815 Differential Revision: https://phab.enlightenment.org/D7827
2019-01-30tests: move efl_ui_image test -> efl_ui_suiteMike Blumenkrantz
ref T6815 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7825
2019-01-30tests: move efl_ui_layout tests into efl_ui_suiteMike Blumenkrantz
also use legacy api for elm_layout swallow test ref T6815 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7824
2019-01-30tests: move image_zoomable into efl_ui_suiteMike Blumenkrantz
ref T6815 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7807
2019-01-30tests: add atspi test for efl_ui_suiteMike Blumenkrantz
this is just a copy of the existing suite but with some small changes to use (mostly) eo apis Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7806
2019-01-30tests: formattingMike Blumenkrantz
make this consistent for possible sed later Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7805
2019-01-30tests: modify efl_ui_suite to use same test infrastructure as elm_suiteMike Blumenkrantz
this should enable us to begin moving efl_ui tests into the proper suite instead of sticking them all into elm_suite also move grid tests to efl_ui_suite Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7765
2019-01-29evas_test_textblock: Fix unused variable warningChris Michael
In evas_textblock_cursor test, the variable 'dir' is only used if HAVE_FRIBIDI is defined. If that is not defined, then we get an unused variable warning when compiling. This patch wraps the variable around an #ifdef so that it does not get declared without FRIBIDI support.
2019-01-29elementary: enable efl_ui_suite tests for meson build.Cedric BAIL
Summary: Depends on D7661 Reviewers: SanghyeonLee, felipealmeida, segfaultxavi, zmike Reviewed By: SanghyeonLee, zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7382 Differential Revision: https://phab.enlightenment.org/D7662
2019-01-28eolian-cxx: Add constructor_defLauro Moura
Summary: To be used generating argument-aware constructors in C#. Reviewers: felipealmeida, vitor.sousa Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7794
2019-01-26evas_canvas3d_mesh: implement get methods for efl.file file and mmap propsMike Blumenkrantz
also add unit tests for new methods ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7785
2019-01-26ecore: make ecore_audio_out abstractMarcel Hollerbach
ecore_audio does define format and source, those are then used in some leave classes, ecore_audio is only used in the tests, and should not be used externally. Therefore make it abstract. The other missing implementations are in the leave classes, They are resolved with providing empty implementations, since no format switching is supported. ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7782
2019-01-26elm_fileselector_button: support the whole interfaceMarcel Hollerbach
this adds full support of the full elm_fileselector interface to elm_fileselector_button. ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7753
2019-01-26edje: implement container apiMarcel Hollerbach
the container api returns the number of added swallows. the content iterator returns a iterator over all swallowed objects. The reason this is only for swallows is that the interface explicitly mentions UI elements at the count. Since i am believing the the result of the count operation should mirror to the amount of elements in the iterator, the iterator only returns swallowed objects. ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7748
2019-01-24eo: improve efl_isa to be able to know if a class is part of the hierarchy ↵Cedric BAIL
of another class. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7703
2019-01-24meson - edje_cc use -fastcomp for fast builds in mesaCarsten Haitzler (Rasterman)
2019-01-24efl_ui_layout: use the correct objectMarcel Hollerbach
the obejct used in D7740 have been false. Here comes the fix + a few tests. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7746
2019-01-23eina: add tests for the new Eina_Value convert functions.Cedric BAIL
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7651
2019-01-23eina: add tests for Eina_Value utility function eina_value_*_get.Cedric BAIL
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7649
2019-01-23tests/ecore: reenable ecore-audio play testMike Blumenkrantz
this seems to work now fix T4018 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7723
2019-01-23efl_mono: add a free function to every owned typeMarcel Hollerbach
this is another step towards enforcing free functions on every owned type. To equip every owned type with a free function the following is applied. Every owned ptr is assumed to be a heap pointer, with the free function "free". Every string that is owed is converted to a mstring. a pointer to a eo object is also assumed to be a heap pointer, and equiped with the free function "free". Differential Revision: https://phab.enlightenment.org/D7710
2019-01-23eolian_cxx: add free functions to the typesMarcel Hollerbach
later on @owned functions are enforced to have free functions attached, if not, eolian will bail out. This is ensuring this for the eolian-cxx functions Differential Revision: https://phab.enlightenment.org/D7641
2019-01-22efl: add free functions to owned typesMarcel Hollerbach
this commit is a first step in order to add free functions to all the types that are owned. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7627
2019-01-21eolian: add support for composite section into regular classesDaniel Kolesa
Each regular class can now have a section called 'composite', which can contain interfaces and interfaces only. This defines a list of interfaces that are allowed to be unimplemented on the class, as it is assumed the class will be composited with some other class implementing those interfaces. Only regular classes can have this, as only regular classes can be instantiated. It will also be necessary to check whether the classes in the section appear somewhere within the inheritance tree. For now, this testing is not being done. Example of usage: composite { Some.Magic.Interface; Another.Magic.Interface; } directly in the class body.
2019-01-18efl: convert all interfaces to the new eolian syntaxMarcel Hollerbach
ref T7459 Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7687
2019-01-18efl: convert all classes to the new eolian syntaxMarcel Hollerbach
ref T7459 Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7684
2019-01-17eolian: fix tests fallout from the latest changesDaniel Kolesa
2019-01-17eolian: disallow pure virtual on non-abstract/mixin classesDaniel Kolesa
2019-01-17Remove letftover includeXavi Artigas
This was breaking build...
2019-01-17eolian_cxx: make address_of test not use multiclass inheritanceDaniel Kolesa
2019-01-17efl-mono: Fix lots of warnings in testsFelipe Magno de Almeida
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7675
2019-01-17eolian: add api to access the requires fieldMarcel Hollerbach
Summary: This is needed in order to support checking the correct regular classes in efl#. ref T7240 Depends on D7673 Test Plan: run ninja test / make check Reviewers: q66, felipealmeida, segfaultxavi Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7240 Differential Revision: https://phab.enlightenment.org/D7674
2019-01-17eolian-mono: Add interface registration to inherited classesFelipe Magno de Almeida
Summary: Depends on D7635, D7634 Reviewers: woohyun, bu5hm4n, segfaultxavi, lauromoura Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7636
2019-01-17eolian_mono: fix inheriting from efl types not considering additional interfacesVitor Sousa
Reviewers: segfaultxavi, bu5hm4n, Jaehyun_Cho, lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7635
2019-01-17efl-mono: Add proper test for interface inheritanceFelipe Magno de Almeida
Reviewers: segfaultxavi, bu5hm4n, woohyun, Jaehyun_Cho, lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7634