summaryrefslogtreecommitdiff
path: root/src/tests/edje (follow)
AgeCommit message (Collapse)Author
2019-09-30edje: add Efl_Layout.h for eo-based layout headersMike Blumenkrantz
this includes all related headers ref T8274 Additional Authors: Lauro Moura <lauromoura@expertisesolutions.com.br> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10228
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-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-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-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-06-20tests: fix warnings and undef ref on Windows (using meson :-) )Vincent Torri
Summary: we need to include evil_private.h so that some symbols are declared Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9129
2019-05-13edje src - mark with efl version so we don't get warningsCarsten Haitzler (Rasterman)
2019-04-05meson: correctly use the correct dependencyMarcel Hollerbach
Summary: edje_cc calls epp, so we should not only add edje_cc to the depends on target, but rather also ensure that epp is availble. Additionally, this removes unneccessary depends on declarations when we do cross compile. Depends on D8561 Reviewers: zmike, segfaultxavi, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8562
2019-02-27efl_container: remove content_removeYeongjong Lee
Most of classes implements Efl.Container.content_remove are just calling "unpack" except of "Efl.Canvas.Layout" and "Efl.Ui.Layout". This patch remove the asymmetrical API and add content_remove API of "Efl.Canvas.Layout" and "Efl.Ui.Layout" that child can be remove without efl_part APIs. ref T7576 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7913
2019-02-27efl.canvas.object: clip -> clipper && clipees -> clipped_objectsMike Blumenkrantz
Summary: also clipees_has -> clipped_objects_count ref T7555 Depends on D8039 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7555 Differential Revision: https://phab.enlightenment.org/D8040
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: https://phab.enlightenment.org/D8018
2019-02-21api: efl.gfx.size_hints -> efl.gfx.hintsMike Blumenkrantz
Summary: these hints are not strictly size-related, so renaming them is more consistent with their actual function ref T7563 Depends on D7968 Reviewers: segfaultxavi, cedric, bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7977
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-24meson - edje_cc use -fastcomp for fast builds in mesaCarsten Haitzler (Rasterman)
2018-12-06meson: abstract edje_cc exec linesMarcel Hollerbach
the array is calling the shell etc. this makes cross building easier. Differential Revision: https://phab.enlightenment.org/D7413
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-11-08Canvas layout: fix test for meson buildsDaniel Hirt
Fixes T7456
2018-11-06Canvas layout: support more Efl.Text.* with efl_partDaniel Hirt
This adds many Efl.Text.* that are useful for manipulating the underlying TEXTBLOCK object's propeties using efl_part. This has been implemented as part of the "user-defined" properties of the layout part, so that the changes on the part persist across load of different groups. Note that text styles have precedence over the TEXTBLOCK (Canvas.Text) object's properties. if an edc provides a style, the properties it manipulates as part of the "base:" string would not be affected by this API. In general, this helps reducing the amount of styles for objects (or modes of the same objects) that share the same setup, but are different in some properties (e.g. ellipsis, wrap etc). @feature Canvas layout: add text part "expand" property This adds "expansion modes", which are essentially the same as min/max hints in the edje part's 'description.text' fields. The user can then customize his widget to different modes without being forced to create a new edje group in the theme. Note that there is an added check in case one of the min/max text flags are provided from the theme. In such case, all flags from this new API will be ignored. This fortifies misuse where the flags are set both in theme and the API. @feature
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-09-28edje: call recalc in part_text_get if there is no available text dataYeongjong Lee
Summary: If edje_text_get is called before any edje_text_set function call, it return null, because rp->typedata.text->text is only set by edje_text_set function. If there is no available text data, find it from rp(edc). ref 7bbf18a950c027a365fea1b88e8dc3f16bb81abe Test Plan: make check Reviewers: zmike, id213sin, herdsman Reviewed By: id213sin Subscribers: Hermet, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6961
2018-08-16tests/edje: fix object parenting for swallow testsMike Blumenkrantz
Summary: recent safety check patches exposed issues here where tests were incorrectly written to pass evas objects as edje object parents, resulting in new test failures after this began to be detected and treated as an error Reviewers: netstar Reviewed By: netstar Subscribers: netstar, cedric, #reviewers, #committers Tags: #efl_tests Differential Revision: https://phab.enlightenment.org/D6851
2018-07-12tests/edje: add test to verify that swallow objects exist during DEL callbackMike Blumenkrantz
Summary: this mimics expected behavior by enlightenment for 2.0, this behavior should likely be changed since the INVALIDATE event should be the last expected point at which a parent<->child relationship continues to exist in any form ref D6540 Depends on D6554 Reviewers: devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6555
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: https://phab.enlightenment.org/D6554
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: https://phab.enlightenment.org/D6404
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: https://phab.enlightenment.org/D6364
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: https://phab.enlightenment.org/D6254
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: https://phab.enlightenment.org/D6224 Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
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: https://phab.enlightenment.org/D5972
2018-04-24Efl.Gfx.Entity (from Efl.Gfx)Xavi Artigas
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
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 <stefan@osg.samsung.com>
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 https://phab.enlightenment.org/w/improve_tests/ Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
2018-01-05fix evas test suite to now init both ecore and evas.... correctly.Carsten Haitzler (Rasterman)
see c8dcc4327b803e9b8ad2a0985e756c924946c442 - basicall evas depends on ecore these days... thus requires ecore be initted THEN evas. ... which in theory is an abi break for those using evas and ONLY evas long ago from when efl was separate... but it''s how we're building these days. @fix
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: https://phab.enlightenment.org/D5668
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: https://phab.enlightenment.org/D5422
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: https://phab.enlightenment.org/D4985
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
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