summaryrefslogtreecommitdiff
path: root/src/tests/edje (unfollow)
AgeCommit message (Collapse)Author
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
2017-02-03ifdef RUN_IN_TREE logic.Gustavo Sverzut Barbieri
This logic is only needed for autotools, cmake will replicate the installation file structure and thus eina_prefix works out of box.
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: https://phab.enlightenment.org/D4309
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: Return text defined in EDC in part_text_getJean-Philippe Andre
This function was returning only the text defined by part_text_set. This is a behaviour change, as part_text_get() no longer returns NULL if there is a string defined in EDC. But this now means that the actual value displayed on screen can be retrieved by a simple API call. @feature
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: https://phab.enlightenment.org/D3833 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
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.
2016-02-16Test rework #5: EdjeVincent Torri
2016-02-05edje: add test for omitting "name" keyword in color_classes.color_class blockJee-Yong Um
Summary: This test checks whether omitting "name" keyword in color_classes.color_class block in EDC work normally. Depends on D3598 Test Plan: make check Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3615 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-16edje: add size_class test caseJee-Yong Um
Summary: add edje size_class APIs' test case Reviewers: jpeg Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3391
2015-12-01edje: add mising closing brace and adjust indents and spacing in test edcJee-Yong Um
Summary: A closing brace is missing, and indent is not aligned. Reviewers: cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3387 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04Edje test: remove unused variable.Tom Hacohen
2015-10-02Edje tests: Test inheritance of flag no_renderJean-Philippe Andre
2015-10-01Edje: Add test case for SNAPSHOTJean-Philippe Andre
This is mostly an edje_cc compilation test.
2015-10-01Edje tests: Add PROXY part to the filters test caseJean-Philippe Andre
Only compilation is tested here. Use edje_player to check the resulting edj if you wanna see what happens.
2015-07-29Evas filters: Fix make doc, check when EFL is not installedJean-Philippe Andre
Thanks @aerodynamik for even giving the proper environment variable to set :) Fixes T2614
2015-07-01Edje: Embed verbatim scripts for Efl.Gfx.FiltersJean-Philippe Andre
This is now like the other embedded scripts, where a verbatim string is parsed. The syntax is now: filters { filter { name: "filter0"; file: "filter.lua"; } filter { name: "filter1"; script { blend {} } } filter.file: "file.lua"; // name is "file.lua" } Thanks @raster for the quick review.
2015-06-30Edje: Fix test case (after syntax change)Jean-Philippe Andre
Filters now belong to one of the filters sections: - filters - collections.filters - collections.group.filters
2015-06-26Edje tests: Fix compilation warningJean-Philippe Andre
Thanks Stefan for the report. I don't really like putting all those -DBLA_BETA or #define BLA_BETA everywhere, though. Maybe the @beta flag is not required since the EO APIs are still beta? See: 04466193558ed23f4af3da4a5381aa75ea6e13e5
2015-06-25Edje tests: Add test case for embedded text filtersJean-Philippe Andre
2015-06-15Edje: Add test case for "no_render" and "clip_to" state flagJean-Philippe Andre
2015-06-01edje: remove left over copy&paste that triggered warning.Cedric BAIL
2015-05-29edje: edje_cc_parse should check pair of parens.Nak-Gyeong Kim
Summary: Fix parens bug. ((x + y)-z) is OK. ((x + y) - z) is NOT OK. This patch can cover this case. @fix Signed-off-by: Nak-Gyeong Kim <nakkyong.kim@samsung.com> Test Plan: Test in edc. ((x + y)-z) is OK. ((x + y) - z) is NOT OK. This patch can cover this case. If parens are not paired, it will notify. Reviewers: raster, Hermet, cedric Subscribers: kimcinoo, jaehwan Differential Revision: https://phab.enlightenment.org/D2554 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-30check: fix tests suites on Windowsmichelle legrand
Disable timeout because we cannot fork on Windows. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-03-06tests: remove warnings.Cedric BAIL
2013-08-07edje: add warning when not finding the exact match.Cedric Bail
This will close T223.
2013-07-18edje: fix typo and deep apology to asdfuser.Cedric Bail