summaryrefslogtreecommitdiff
path: root/src/tests (follow)
AgeCommit message (Collapse)Author
2019-09-24efl_ui_win: default the window type to basicMarcel Hollerbach
normally when you create a window, you just want to have it beeing a basic window. If not you still can set the window type. ref T8229 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D10049
2019-09-23efl_ui_pack: allow NULL as existing parameter in after and beforeMarcel Hollerbach
Summary: with this commit all implementations of Efl.Pack_Linear to permit NULL as existing parameter, this is verified with a spec test unit. fixes T8210 Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: woohyun, Jaehyun_Cho, YOhoho, segfaultxavi, zmike, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8210 Differential Revision: https://phab.enlightenment.org/D10023
2019-09-23tests: Initialize variables and quiet warning.Lauro Moura
Summary: The switch does not cover all Align enum values. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10085
2019-09-23efl: improve test in checking the return value during Eina_Value get operation.Cedric Bail
Summary: Depends on D10061 Reviewers: zmike, bu5hm4n, SanghyeonLee, segfaultxavi, felipealmeida, lauromoura Reviewed By: bu5hm4n Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10062
2019-09-23test: Add a logic to check a size of CheckWonki Kim
If I pack a check without any api calls into a box, then it doesn't have the hint_min size which is defined on check edc. I guess there are problems on sizing logic currently, so this patch helps people to test the problem. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10038
2019-09-20csharp: Guard hash usage behind EFL_BETA.Lauro Moura
Summary: After 718f3cd49586, hashes are currently beta-only. Reviewers: zmike, brunobelo Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10060
2019-09-20eolian_mono: add more verbs to generate C# method beginning with verbJaehyun Cho
Summary: C# language binding generates C# method name beginning with verb by checking verb list in name_helpers.hh. Some verbs used in eo method are missing in the current verb list. So they are added into the verb list. In this scheme, there is a problem that some words can be used as a verb in some methods but they also can be used as a noun in other methods. (e.g. drag_start as a verb / cursor_word_start as a noun) So "start" and "scroll" are not added to verb list in this patch. To resolve the above problem, we may need a new eo syntax to rename or reverse the name in language bindings. Test Plan: Check C# method names in .eo.cs files if the name begins with verb. Reviewers: felipealmeida, SanghyeonLee, woohyun, Jaehyun_Cho, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10001
2019-09-20eolian: rename any_value_ptr -> any_value_ref for consistencyDaniel Kolesa
2019-09-20eolian: make hashes beta-only for nowDaniel Kolesa
They're not completely settled on and we don't even know if we want them at all. So let's make them beta only for now. Ref T8050.
2019-09-19efl: improve Efl.Boolean_Model test to enforce Eina_Value type too.Cedric Bail
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D10031
2019-09-19eina: add eina_mempool_iterator_new to slowly iterate every allocated ↵Cedric Bail
pointer in a mempool. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9941
2019-09-19efl_test_multi_selectable: test for the correct eventMarcel Hollerbach
EFL_UI_EVENT_ITEM_SELECTED / UNSELECTED is the wrong event here. We should check of the selection changed event. ITEM_SELECTED is the legacy event. this was not found based on the fact that we test for this event to NOT be executed. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10011
2019-09-19elm_test_widget_focus: cleanup callbacks correctlyMarcel Hollerbach
we need to delete the callback here, otherwise the objects are deleted later on, which: - changes focus, which leads to - callbacks executed with stacked addresses from a dead function this fixes a testsuite failure on the release build. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D10020
2019-09-19ecore/signal: increase maximum signal throughputMike Blumenkrantz
this adds 4 more signal handling fds and loops over them for reading/writing signal info in order to handle more signals when the buffer of one (or more) pipes is full also update the unit test to verify that we are receiving all the events without dropping any and bump the number of signals to 2000 since we should now be able to handle that many Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10027
2019-09-19tests/ecore: add stress test for main loop signal handlingMike Blumenkrantz
this explodes after about 500 signals, so make it 1000 for a good test Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10026
2019-09-19efl: replace composite with composites and dedup implementsDaniel Kolesa
Since using 'composites' now automatically implements what has not been implemented yet, remove the unnecessary duplicates.
2019-09-18tests/elm: add eventing test for normal check widget, verify api compatibilityMike Blumenkrantz
legacy check widgets should not emit a "changed" event when using the api to change the widget's state Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9852
2019-09-18tests/check: add unit test for elm_toggle (check) callbackMike Blumenkrantz
verify that the "changed" callback is triggered as expected Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9832
2019-09-18build: use legacy api in places where legacy should be usedMike Blumenkrantz
these seem to randomly have been changed when they shouldn't have also install elm_clock_eo.h since this is required but we didn't install it Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D9971
2019-09-18efl/image: rename "border" -> "border_insets"Mike Blumenkrantz
Summary: this is a clearer name which makes the intent of the API more obvious at a glance ref T7875 Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7875 Differential Revision: https://phab.enlightenment.org/D9996
2019-09-17eolian-mono: add compiler's complaint methods.Bruno da Silva Belo
Summary: New default checkers breaks mono's test. Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9999
2019-09-17ecore: remove unused variable after code migration. Fix warning.Cedric Bail
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9944
2019-09-17eina: turn on Eina_Mempool tests for OneBig too.Cedric Bail
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9940
2019-09-17tests/ecore_wl2: Fix resource leakChris Michael
Small patch to fix resource leak pointed out by Coverity Fixes Coverity CID1403883
2019-09-17efl_ui_multi_selectable: remove SINGLE_ALWAYSMarcel Hollerbach
this should get a better solution later on. There is also no real usage for that. ref T7922 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9985
2019-09-17eolian: enable unimplemented function errors for stable APIDaniel Kolesa
2019-09-17efl_ui_table: protect again negative testsMarcel Hollerbach
Summary: these tests are checking for errors, which is fine, we should expect a error here Depends on D9983 Reviewers: SanghyeonLee, cedric, zmike, segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9984
2019-09-17efl_ui_box: make this test expect the errors it is triggeringMarcel Hollerbach
Summary: there are checks for testing that something is not possible, which is fine. However, the errors should be expected Reviewers: SanghyeonLee, cedric, zmike, segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9983
2019-09-16eolian: drop @ctor_param and the associated APIsDaniel Kolesa
This has been unused for a while, and has been just lingering around the code, so drop it so it doesn't make it into a release.
2019-09-16efl.ui.scrollable: fix event name for scrollableHosang Kim
Summary: Event name is applied in the past tense. Meaning of 'stop' is 'stop it early', so I changed it to 'finish' Test Plan: elementary_test -> efl.ui.scroller Reviewers: segfaultxavi, woohyun Reviewed By: segfaultxavi Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9859
2019-09-13csharp: Fix Hash.DelByValueLauro Moura
Summary: The C function `eina_hash_del_by_data` requires the same value that was passed to the `add` function. As C# hashes store stuff through pointers due to marshalling, this makes it hard to pass the same pointer for it. So this functionality is implemented at C# level instead of relying on the native function directly. Fixes T8198 Thanks to @brunobelo and @singh.amitesh for the test case. Reviewers: singh.amitesh, felipealmeida, brunobelo Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers, singh.amitesh, brunobelo Tags: #efl Maniphest Tasks: T8198 Differential Revision: https://phab.enlightenment.org/D9853
2019-09-13tests/edje: handle file modifications properly on windowsMike Blumenkrantz
Summary: we don't have access to utimensat and I'm too busy to figure out why Reviewers: vtorri, bu5hm4n, devilhorns Reviewed By: vtorri Subscribers: cedric, #reviewers, #committers Tags: #efl_build Differential Revision: https://phab.enlightenment.org/D9914
2019-09-13efl_ui_slider: correct to a multiple of step when drag is finishedMarcel Hollerbach
Summary: this is needed in order to support the value to be a multiple of the step when drag has finished. The normal changed event is still emitted with non-multiple of step, but the steady event only contains the correct values now. ref T8187 Reviewers: zmike, segfaultxavi, woohyun Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8187 Differential Revision: https://phab.enlightenment.org/D9928
2019-09-12efl_app_test_promise: fix warning (no returned value)Vincent Torri
Test Plan: compilation Reviewers: cedric, zmike, raster Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9926
2019-09-11csharp: Minor change to D9692Bruno da Silva Belo
Summary: Changing Evt to Event from some files that it wasn't catch on D9692 Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9904
2019-09-11tests/edje: reduce chances of cascading test failures in non-forked modeMike Blumenkrantz
Summary: move evas_free() into the global shutdown fixture to ensure that edje_shutdown actually does call internal shutdown methods since evas_free() will not be reached if it is at the end of a failing test Depends on D9878 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9879
2019-09-11tests/edje: add comprehensive edje reloading testMike Blumenkrantz
Summary: this verifies: * successfully loading a file * emission of "load" signal when performing a file load * swallowing an object * no-op of file load operation on same file if mtime is unchanged * successfully reloading the same file if the mtime has changed * preserving user-defined data across file reloads Depends on D9877 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9878
2019-09-11introduce test file for Efl.Ui.Group_ItemMarcel Hollerbach
Summary: this tests that the tree structure which is defined by the group and child item hirachy is correctly transformed into a linear list. This also checks that the bug from the revision before is not happening. Depends on D9890 Reviewers: segfaultxavi, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9872
2019-09-11efl_ui_test_list_collection: add test for item placementMarcel Hollerbach
Summary: this test checks if the placement of the items is correct with and without scrolling, with and without groups. Depends on D9869 Reviewers: segfaultxavi, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9870
2019-09-10csharp: Add test for static interface membersLauro Moura
For the checks added in D9893
2019-09-10csharp: Skip non-public members from interfacesLauro Moura
Summary: Eolian allows non-public members in interfaces and mixins (usually @protected). As both kinds are converted to C# interfaces, this causes problem as non-public members are forbidden in C# interfaces. This commit changes eolian_mono by removing those members from the C# interfaces. If a generated class implements the interface, the method is generated as if it were a protected member of the class directly. For mixed properties like `Efl.Io.Reader.CanRead { get; set @protected; }`, the interface has only the public getter and the the implementing class has both the public getter and the protected setter. With this, C# devs won't be able to directly implement protected Eo methods from interfaces. (But this really does not make sense from the C# point of view). ref T7494 Reviewers: segfaultxavi, felipealmeida, YOhoho Reviewed By: YOhoho Subscribers: cedric, brunobelo, Jaehyun_Cho, #reviewers, woohyun, #committers Tags: #efl Maniphest Tasks: T7494 Differential Revision: https://phab.enlightenment.org/D9800
2019-09-10CSharp: Cleanup test that inserts idle event and do not remove itFelipe Magno de Almeida
Summary: Remove idle event after running test so it doesn't impact with other tests that run after it Reviewers: lauromoura Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9887
2019-09-10csharp: Adding ToString methods to Strbuf and custommarshaler.Bruno da Silva Belo
Summary: WIN32 should use a allocator and deallocator different from EFL, sometimes, when freeing a pointer, it should use win32_free. To stardardize, A custommarshaler is used to fix this problem. Fixes T8201 Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, brunobelo, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Maniphest Tasks: T8201 Differential Revision: https://phab.enlightenment.org/D9842
2019-09-10efl_ui_suite: resolve focus errorsMarcel Hollerbach
Summary: unregsiter shound never call unprotected eo API on the object, unregister can be called with a object that is dead. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9898
2019-09-09eolian: remove second parameter for eolian_type_c_type_getDaniel Kolesa
This has been replaced by newer APIs.
2019-09-06efl: change all occurences of @owned to @moveDaniel Kolesa
2019-09-06efl_ui_spec: add tests for the previous fixesMarcel Hollerbach
we should check that if existing is not added before, that we do not perform reparenting, and that we return false. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9863
2019-09-06efl_ui_spotlight: migrate from active_index to active_elementMarcel Hollerbach
after playing arround with the widget, we found out that it feels quite weird to have a index, where most of the time you work with widgets. We might want to add syntax suger in the future to make it easier to just jump to the next element, or to the previous, but that still is to be decided. The event and the communication to the spotlight manager are still left to be used with the index, reason for this is, that we might need to fill there an invalid pointer, if a deletion is triggering an animation, which seems quite weird. That needs further discussing. Docx have been updated, the sitemarks about the shifting of the active_index can be removed, as the element is not subject of change during content adds/deletes. ref T7991 Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com> Differential Revision: https://phab.enlightenment.org/D9813
2019-09-06eolian-mono: Removing I prefix from classes.Bruno da Silva Belo
Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, brunobelo, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Maniphest Tasks: T8166 Differential Revision: https://phab.enlightenment.org/D9816
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