path: root/src/tests/edje/edje_test_edje.c (follow)
AgeCommit message (Collapse)Author
2019-02-27efl.file: improve api a bitMike Blumenkrantz
Summary: the previous implementation/api had a number of issues: * "file" property contained both "file" and "key" values - also performed file loading operation * "load_error" property which was specific to image objects * no methods for controlling file loading/unloading this patch attempts the following changes: * split "file" property into "file" and "key" properties - also remove "key" from existing "mmap" property * remove "load_error" * directly return error codes from operations * add "load" and "unload" methods for directly controlling load state * add implicit file loading if file/mmap is set during construction * rewrite all efl.file implementations to move file loading into load() method * rewrite all usage of efl.file api based on these changes * add C extension functions to mimic previous behavior ref T7577 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: vitor.sousa, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7577 Differential Revision:
2018-11-10edje test - part content should be null as nothing is swallowed yetCarsten Haitzler (Rasterman)
fix test
2018-11-09edje test - fix unused return val and actually check its valueCarsten Haitzler (Rasterman)
2018-07-12tests/edje: split edje tests into separate filesMike Blumenkrantz
Summary: this will speed up tests and make it slightly less intimidating to add new tests Reviewers: devilhorns Subscribers: cedric, #committers Tags: #efl Differential Revision:
2018-06-25tests: Update edje test to wrap edje_object_part_object_get withChris Michael
Summary: freeze/thaw @ref T6884 Depends on D6403 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision:
2018-06-22edje: fix text set/get issue without edje calculationYoungbok Shin
Summary: Some changes broke really basical function behavior of text. I couldn't get text from an edje object which I just set to the given edje object. In the past code, edje called recalc function before trying to get text. So, this patch bring that code to fix this issue. @fix Test Plan: Included. Run "make check" Reviewers: herdsman, raster, cedric, woohyun, devilhorns Subscribers: #committers, zmike Tags: #efl Differential Revision:
2018-06-10edje: fix edje_part_helpers refcountingMarcel Hollerbach
Summary: the reference from efl_reuse was forgotten & the parent relation was not correctlty setted, which led to the fact that NOREF was never emitted. This caused that thte object never really was destructed probebly, and thus the del_interceptor_cb was not executed, and the object simply leaked. The test checks that those properties are correctly set, additionally a error is printed in the efl code when a part has not the expected reference properties. This also enforces errors when users are doing wrong things with objects returned by efl_part. Reviewers: ManMower, zmike Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Differential Revision:
2018-05-28edje: a new testcase for what was happening beforeMarcel Hollerbach
Summary: this checks explicitly that the lifecycle is alive. Depends on D6223 Reviewers: cedric, zmike, JackDanielZ Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: Reviewed-by: Cedric BAIL <>
2018-05-02edje: fix backward compatibility issue caused by legacy cursor funcsYoungbok Shin
Summary: edje_object_part_text_cursor_prev/next/up/down has return value. It has to return EINA_TRUE when only it successed. But, when these funcs moved to legacy, it changed to return EINA_TRUE whenever it fails or success. It must return EINA_FALSE when it fails. @fix Test Plan: - Run test suite make check Reviewers: herdsman, raster, cedric, woohyun Subscribers: zmike Differential Revision:
2018-04-24Efl.Gfx.Entity (from Efl.Gfx)Xavi Artigas
Ref Reviewed-by: Cedric Bail <>
2018-04-05tests: move to using checked fixtures for all test suitesMike Blumenkrantz
individual tests should not need to explicitly call init/shutdown functions in most cases, and many did not properly do this anyway see followup commit which resolves some issues with eina tests ref T6813 ref T6811 Reviewed-by: Stefan Schmidt <>
2018-04-05tests: add instrumentation to existing tests to find slow testsMike Blumenkrantz
efl_check.h must be included and the EFL_START/END_TEST macros must be used in place of normal START/END_TEST macros timing is enabled when TIMING_ENABLED is set Reviewed-by: Stefan Schmidt <>
2017-12-19interface : change efl_pack_grid and efl_ui_grid to efl_pack_table and ↵SangHyeon Lee
efl_ui_table Summary: Change name of 'grid' to 'table' for matching on common ui naming and avoiding confusion with 'gengrid' and 'grid view'. grid will be introduced as grid image view after. Test Plan: checked make & make install checked make check - there are errors but not related with these changes. checked make examples - there are errors in cxx but not related with these changes. checked make discheck - failed test in elementary_test with Efl.Ui.Table and Table_static. Reviewers: raster, cedric, jpeg, felipealmeida Differential Revision:
2017-12-06edje: rename Edje.Object to Efl.Canvas.LayoutAmitesh Singh
2017-12-05edje: rename intf Efl.Canvas.Layout_Calc to Efl.Layout.CalcAmitesh Singh
2017-12-05edje: rename intf Efl.Canvas.Layout.Signal to Efl.Layout.SignalAmitesh Singh
2017-11-06edje: don't return negative width and height from _parts_extendsYoungbok Shin
Summary: It should return width and height with positive values or zero. @fix Test Plan: make check Reviewers: raster, jpeg, cedric Reviewed By: raster Subscribers: jiin.moon Differential Revision:
2017-10-13edje: Fix make checkJean-Philippe Andre
Oops. The API was tested. See 19dff855194f2c4b411fc5d27b33d212ff26bcb0
2017-09-18edje: Fix make check :(Jean-Philippe Andre
No idea how I missed that one... (except that make check is now broken for C++, again)
2017-08-04edje: Move signal APIs to an interfaceJean-Philippe Andre
This interface will be used by elm_layout as well. Ref T5315
2017-07-17edje_signal: reduce member count when deleted edje_signal_callback is foundSungtaek Hong
Summary: - when deleted callback is found _edje_signal_callback_move_last() is called in order to pack match array. - during _edje_signal_callback_move_last() index skips when another deleted callback is found, but does not reduce members_count. - this duplicates a remaining callback and calls the callback twice. Test Plan: 1. add multiple edje_signal_callback by edje_object_signal_callback_add() which have the same source, signal, func but different data. 2. delete first and last callback by edje_object_signal_callback_del/edje_object_signal_callback_del_full. 3. emit edje_signal. 4. observe one callback is called twice. Reviewers: SanghyeonLee, conr2d, jpeg Subscribers: cedric, jpeg Differential Revision:
2017-05-30edje: Add test case for signal_recursive_processJean-Philippe Andre
2017-05-30check: Bump version to 0.9.10 and change macroJean-Philippe Andre
Changing ck_assert_ptr_nonnull() to ck_assert_ptr_ne() in order to require "only" check >= 0.9.10. ck_assert_ptr_nonnull() was introduced in 0.11.0. ck_assert_ptr_ne() is already used a lot in the test suite so a recent version of check is required.
2017-05-24edje: Implement EO API for message_sendJean-Philippe Andre
Since this uses generic_value (aka Eina_Value), there is an implicit type detection and conversion. I did not attempt to cover all types (namely string+int and string+float and even less sets of those) as I believe they aren't really used. Or they most likely could be replaced by multiple messages rather than a single message. Note: should we pass ptr(generic_value) instead of generic_value? The API looks a little odd in C when passing by value. @feature
2016-09-23edje_cc: allow combine lazEDC keywordsJee-Yong Um
Summary: Fix parsing error which occurs when lazEDC keyword is combined with other keyword by period. (like parts.rect) @fix Test Plan: Download attached file and run "make" Reviewers: Hermet, cedric, jpeg Subscribers: taxi2se Differential Revision:
2016-08-15Eo: Finish the renaming of Eo to the EFL.Tom Hacohen
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
2016-08-11Change the EFL to follow the new Eo rename.Tom Hacohen
2016-06-21evas: Remove common interface and use provider_findJean-Philippe Andre
Evas.Common_Interface not only had a bad name, it also wasn't in line with how we can get a loop object, for instance. Use eo_provider_find in each implementing class.
2016-06-21evas: Rename Evas.Object to Efl.Canvas.ObjectJean-Philippe Andre
One step closer to make the EO inheritance tree look like it's all Efl.
2016-06-02Evas: Rename Evas.Rectangle as Efl.Canvas.RectangleJean-Philippe Andre
2016-06-01Revert "Eo: Remove eo_del() and make eo_unref() the replacement."Tom Hacohen
This reverts commit 546ff7bbba788ec834c5608361c0834853f2d5d7. It seems that eo_del() is useful and removing it was creating bugs. The issue is that the way we defined parents in eo, both the parent and the programmer share a reference to the object. When we eo_unref() that reference as the programmer, eo has no way to know it's this specific reference we are freeing, and not a general one, so in some circumstances, for example: eo_ref(child); eo_unref(child); // trying to delete here eo_unref(container); // container is deleted here eo_unref(child); // child already has 0 refs before this point. We would have an issue with references and objects being freed too soon and in general, issue with the references. Having eo_del() solves that, because this one explicitly unparents if there is a parent, meaning the reference ownership is explicitly taken by the programmer. eo_del() is essentially a convenience function around "check if has parent, and if so unparent, otherwise, unref". Which should be used when you want to delete an object although it has a parent, and is equivalent to eo_unref() when it doesn't have one.
2016-05-26Efl: Remove part name in Efl.Container (use Efl.Part)Jean-Philippe Andre
This touches Edje and also Elementary where part names are used. This commit blew up in size since now all content part APIs (get, set, unset) require to use Efl.Part instead. This is a big refactoring commit, but no logic should have been changed. Fingers crossed.
2016-05-24Edje: Test proxy objects moreJean-Philippe Andre
This tests that a cached object is not reused invalidly if it was ref'ed.
2016-05-24Edje: fix test case (switch to efl_part)Jean-Philippe Andre
2016-05-17Eo: Remove eo_del() and make eo_unref() the replacement.Tom Hacohen
We used to have eo_del() as the mirrored action to eo_add(). No longer, now you just always eo_unref() to delete an object. This change makes it so the reference of the parent is shared with the reference the programmer has. So eo_parent_set(obj, NULL) can free an object, and so does eo_unref() (even if there is a parent). This means Eo no longer complains if you have a parent during deletion.
2016-05-09Edje: Fix test case to show proper use of part APIsJean-Philippe Andre
The one and only valid use case is calling a function directly on the part handle, like: func(part_get(obj, "part"), args). This does not change the actual proxy object lifecycle or resolve any potential issues, but this should clear up things in terms of scope for proper (supported) use. efl_content_get may become efl_part() and return a temporary object, valid for a single function call. Those are "details" still to be refined.
2016-04-29Edje: Add test case showing lifecycle of proxy objectJean-Philippe Andre
This is for efl_content_get proxy objects (BOX & TABLE).
2016-04-26Efl: Rename some packing functions and return boolJean-Philippe Andre
This renames some APIs from Efl.Pack in order to try and make them more sensible. Feedback welcome. Also, most APIs now return bool, where false is quite unlikely to happen.
2016-04-26Edje: Add test case for edje tableJean-Philippe Andre
This tests the EO and Legacy APIs
2016-04-26Edje: Replace edje_box_part with a fake eo proxyJean-Philippe Andre
This is basically an implementation of eo_part() but only for Edje Box APIs. Legacy API is implemented on top of the EO API.
2016-04-26Edje tests: Add test case for access_part_listJean-Philippe Andre
This tests eo and legacy apis
2016-04-26Edje: Adapt to Efl.ContainerJean-Philippe Andre
This basically renames swallow into content.
2016-04-18edje: add test for edje_object_part_box_insert_after()Jee-Yong Um
Summary: This test checks the validity of edje_object_part_box_insert_after(). It depends on D3733. Reviewers: jpeg, cedric Differential Revision: Signed-off-by: Cedric BAIL <>
2016-04-18Edje tests: Add parent upadting tests to edje.Tom Hacohen
2016-04-15Edje tests: Fix tests when running out of source and remove hack.Tom Hacohen
There was a seriously horrible hack here to workaround this issue. This hacks goes all the way back to 3e07236. The essence of the hack was to try the system files for the tests (and I guess that's why we were shipping them although we really shouldn't). This change fixes the file lookup for out of source files. Hat-tip to zmike for pointing me to abs_top_buildir.
2016-03-15Edje: fix tests snapJean-Philippe Andre
2016-03-15Evas.Image: Complete implementation of proxy and snapshotJean-Philippe Andre
This moves the EO APIs away from Evas.Image and adds the required legacy bindings.
2016-03-03Fix migration script mistakes and compilation warnings.Tom Hacohen
Mostly unused vars following the removal of eo_do_ret(). However, there are some cases where the migration script got some things wrong, and I had to manually fix them.
2016-03-03Automatic migration to Eo4.Tom Hacohen
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
2016-03-02Efl.Gfx.Filter: Rework APIs and mark as stableJean-Philippe Andre
- Remove @beta flags, - Update @since to match stabilization, - Change methods to properties with keys, - Use eo_prefix and add filter_ prefix to all properties since they use very generic names, The filter API stays under Efl.Gfx since there are other kinds of filters, and this one is the particular "graphical filter" or "effect" API. The EO API mostly not change from an application point of view, except for "source_get" which now returns a string directly. Also, state and data can now be queried.