Commit Graph

57 Commits

Author SHA1 Message Date
Tom Hacohen e6031a23e8 Revert "Automatic migration to the new eo_add syntax."
This reverts commit d1a1819813d74361b25fd5c1123f7ac76be9b84f.
2016-03-11 12:36:19 +00:00
Tom Hacohen 47fbd09ab2 Image test: Migrate to the new event cb signature. 2016-03-09 16:27:01 +00:00
Tom Hacohen c788486398 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:17 +00:00
Tom Hacohen ca6cf069a3 Genlist test: Adjust according to the recent eo event changes.
Thanks to zmike for letting me know.
2016-03-03 13:44:07 +00:00
Tom Hacohen d16aa5956b Automatic migration to Eo4.
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-03 10:08:27 +00:00
Lukasz Stanislawski 2f5bed1886 index: accessibilitize index items
Expose elm_index items as accessiblie buttons. Provide name
and "activate" action.
2016-01-04 12:00:40 +01:00
Lukasz Stanislawski 9a47568685 tests: adjust atspi roles. 2015-12-17 11:44:25 +01:00
Lukasz Stanislawski d1baa35b1a atspi: always use widget's subobj as accessible children
Patch fixes issue when widgets could be orphaned in accessibility tree
due to overloaded accessible_children_get methods in widgets returning
Elm_Object_Items. Widgets like genlist, gengrid, list and toolbar returned
only items as its accessibility children so if some widget was attached
directly to those widgets (like ctxpopup/popup) it become orphaned
in accessibility tree.
2015-12-02 11:43:58 +01:00
Lukasz Stanislawski 0b1cfd791c bg: do not make background accessibility object. 2015-12-01 16:12:18 +01:00
Daniel Juyung Seo 24797adcf5 elm: Fix typos fun! 2015-10-29 02:08:16 +09:00
Lukasz Stanislawski 16ec6120be tests: add new tests for AT-SPI beta API. 2015-10-06 17:18:44 +02:00
Lukasz Stanislawski 6b49c30cd0 list: set atspi parent despite atspi mode.
Path fixes failing test case when atspi mode was off.
2015-10-06 11:27:15 +02:00
Stefan Schmidt fd063a336b tests: disable new atspi parent test for me as it breaks
Breaking distcheck for me and delaying the alpha1 tarballs. The API is still
marked as unstable but we might want to look into it during the beta's.
2015-10-05 15:46:24 +02:00
Lukasz Stanislawski 61845ef600 atspi: properly set parent.
Set proper atspi parents in cases when AT-SPI object tree structure
should be different then elementary tree (mostly in cases of elm_widget_items)

Add regression tests for those cases.
2015-10-02 16:49:15 +02:00
Lukasz Stanislawski f15796036e atspi: add global event emitter
Introduce global event emitter for accessibility events. With such emitter
there is no need to register array of callbacks on every accessibility object.
2015-10-01 16:00:28 +02:00
Luciana Magno de Almeida 4517e70a5e cxx: Added examples and tutorial for C++ binding
Summary:
Added the following examples:
* bg_cxx_example_01
* bg_cxx_example_02
* bubble_cxx_example_01
* button_cxx_example_00
* button_cxx_example_01
* calendar_cxx_example_01
* calendar_cxx_example_02
* calendar_cxx_example_03
* calendar_cxx_example_04
* calendar_cxx_example_05
* clock_cxx_example
* datetime_cxx_example
* glview_cxx_example_01
* hoversel_cxx_example_01
* icon_cxx_example_01
* location_cxx_example_01
* menu_cxx_example_01
* popup_cxx_example_01
* radio_cxx_example_01
* separator_cxx_example_01
* slider_cxx_example
* spinner_cxx_example
* table_cxx_example_01
* table_cxx_example_02
* thumb_cxx_example_01

Added documentation for the above examples, as well as how using lambdas
with C++ elm binding. How to use autohide feature and how to use the C++
wrappers to create windows, widgets and call Eo functions from them with
automatic C++ type conversion and how to use signals from C++.
2015-08-25 03:42:34 -03:00
Stefan Schmidt a1543bcf4e tests: Correct ATSPI role check for popup.
ctxpopup is using ELM_ATSPI_ROLE_POPUP_MENU while the normal popup uses
ELM_ATSPI_ROLE_NOTIFICATION.

ref T2028
2015-08-06 19:38:59 +02:00
Stefan Schmidt 07aa742513 elm_module: Load not installed modules from build dir with ELM_RUN_IN_TREE
If we want to run from the local build dir without make install before
elm_module would fail to load the modules as it is expecting them in the
final install location.

We can now change this by setting ELM_RUN_IN_TREE to force it load the not
yet installed modules.

ref T2028
2015-08-06 19:38:58 +02:00
Stefan Schmidt 1bcc441f2f tests/build: Make sure tests are finding the theme file
Our tests require a theme file. So far they picked this just from the system
where it was installed to in a previous run. We have situations where this would
not work though. Running make check before install on a new system or during
distcheck comes to mind.

With AM_TESTS_ENVIRONMENT we make that the theme is also looked for in the not
yet installed builddir.

Thanks to Lukasz Stanislawski for pointing me to this.

ref T2028
2015-08-06 19:38:58 +02:00
Vitor Sousa 5a737f7187 win: Add autohide and ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN
Summary:
Add the "autohide" property to elm_win. This property, when set to
EINA_TRUE, automatically hides the window upon a "delete,request" signal.

Create ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN, a new quit policy that
automatically exit from the elm_run loop when all windows are hidden.
It is an alternative to autodel to conciliates the memory management
framework of Eo with any other memory management model the program may
be using (e.g. RAII principles of C++).

Create the auxiliary function "_elm_win_policy_quit_triggered" to check
triggering of quit policies.
The check in "smart_hide" is now necessary, since
ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN can be triggered when a window
is hidden.

Create the auxiliary function "_elm_win_flush_cache_and_exit" to avoid
code repetition for exiting the elm_run loop.

Make a small update on documentation in elm_win.h to mention the new
autohide property.

@feature

Reviewers: raster, felipealmeida, cedric, tasn

Reviewed By: felipealmeida

Differential Revision: https://phab.enlightenment.org/D2751
2015-07-01 15:40:57 +01:00
Stefan Schmidt 146a7b63e2 tests/elm_test_image: Give a proper path to test images
../../ does not always work. VPATH builds like distcheck have a different
dir layout.

ref T2028
2015-04-22 17:24:42 +02:00
Jean-Philippe Andre 43846e863d elm_suite: Add test for async file set 2015-04-10 16:46:56 +09:00
Lukasz Stanislawski 9e970814d5 atspi: changed del event broadcast. Fix genlist & gengrid tests 2015-04-06 10:25:02 +02:00
Lukasz Stanislawski 7a7cc2094c atspi: implement add/del callbacks. Add genlist item tests 2015-04-06 10:24:57 +02:00
Lukasz Stanislawski c7a65b181d atspi: overload children_get method for elm_genlist 2015-04-06 10:24:56 +02:00
Cedric BAIL f15d380f00 tests: actually run the main loop properly to be able to enter in idle state.
Note that the iterate function will never trigger the idler that are registered
in Ecore. That's by definition. I changed the code to actually use the full
main loop and trigger the change detection on idle enterer. That should be enough
for Elementary as all idler should logically affect the visual aspect of something
at some point and exit idle.

Thanks marcel-hollerbach@t-online.de for helping me debug this issue.
2015-01-16 14:31:57 +01:00
Lukasz Stanislawski 06d6557d53 Do not explicite include atspi headers.
Summary: fixes make check failures on atspi tests.

Reviewers: cedric

Subscribers: seoz

Maniphest Tasks: T2001

Differential Revision: https://phab.enlightenment.org/D1870
2015-01-14 15:15:47 +01:00
Savio Sena d796baefba tests: Clean-up elementary-cxx test suite.
Removed unnecessary includes.
Added missing bindings.
Added extern "C" guards.
2014-09-17 20:28:05 -03:00
Vincent Torri ea6246a8ee autotools: simplify .pc.in.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-04 17:33:05 +02:00
Vincent Torri 8c705cac78 autotools: add m4 macro to check for options
This simplify autotools in elementary by recycling the same m4
and also compilation flags. Less code to read and maintain.
2014-09-04 17:33:05 +02:00
Vincent Torri 092f40579a configure.ac: Clean up and add macros for backend-checks.
Add an m4 macro and start using it (also fixes some issues).
2014-09-02 10:29:51 +01:00
Vincent Torri ea99904b1d Reorganise configure.ac layout (and simplify)
This includes:
Bumping versions of autoconf and automake.
Remove or replace deprecated macros.
Use correct paths.
2014-09-02 10:29:50 +01:00
Stefan Schmidt d18c89b77c tests: Ship elm_test_helper.h in dist tarball
This is a first step to run elm make check during distcheck.
2014-08-15 12:03:23 +02:00
Lukasz Stanislawski 5b0522c8af atspi: remove EAPI from elm_atspi_text_text_attribute_free
Issue reported by Stefan Schmidt. Above atspi function had EAPI attribute
defined in implementation file, however this symbol should not be public in
elementary 1.11.
2014-08-08 11:17:00 +02:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Jihoon Kim ad04665d21 tests: fix shadow variable build warning
elm_test_clock.c:15:23: warning: declaration of ‘clock’ shadows a global declaration [-Wshadow]
elm_test_index.c:15:23: warning: declaration of ‘index’ shadows a global declaration [-Wshadow]
2014-07-22 11:06:33 +09:00
Savio Sena 3542247e89 autotools: Fixed errors and warnings.
Removed portability warnings from Automake.
Removed *.eo.hh from BUILT_SOURCES.
Fixed some redeclaration of variables.
Added datarootdir and datadir to elementary.pc.in.
2014-07-21 21:00:31 -03:00
Savio Sena f83aad7bfa elementary++: Added missing includes.
This fixes 'make check'.
2014-07-21 20:58:28 -03:00
Savio Sena 561ae48822 autotools: Add eolian-cxx to elementary.
Conflicts:
	src/lib/Makefile.am
2014-07-21 20:53:12 -03:00
Zbigniew Kosinski 18ca7d8eb5 tests: check required interfaces implementation by widgets
Reviewers: stanluk, raster

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D944
2014-07-21 18:23:48 +02:00
Lukasz Stanislawski 7205de042a tests: refactor of atspi test suite
Summary:
elm_test_atspi adjusted to recent internal api changes. Tests regarding elm_win
moved from elm_test_atspi to elm_test_win. Entry tests fixed. Test to
Atspi_Selection interface temporary skipped.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Differential Revision: https://phab.enlightenment.org/D1199
2014-07-21 17:33:56 +02:00
Ryuan Choi 057d5456c6 tests: Pass the interval to elm_test_helper_wait_flag for the caller to change
Like JackDanielZ suggested.
2014-07-17 22:36:31 +09:00
Ryuan Choi 4938a7c246 tests: Add elm_test_helper_wait_flag to avoid infinite loop
Test of elm_fileselector_selected and future tests may have conditional loop
which some flag.
This patch adds elm_test_helper_wait_flag, simple wrapper of the loop with timer
in order to exit the loop when expected callbacks are not called.
2014-07-16 23:31:58 +09:00
Ryuan Choi 2e431dd299 Fix build break while building with --with-tests=regular
_elm_atspi_init and _elm_atspi_root_get was removed at 99a32ea4b
2014-07-16 07:19:25 +09:00
Tom Hacohen a4c9a3e20e Tests atspi: fix undefined reference.
Thanks to Ryuan Choi for reporting.
This was changed due to eolian changes.
2014-07-15 22:51:08 +01:00
Ryuan Choi 9f61c65296 fileselector: Make selected_set actually select the file
This patch comes from Kai Huuhko.

Added test case for selected_set/get.

@fix
2014-07-02 07:58:45 +09:00
Vincent Torri 0d6cacb743 backend: remove Windows CE support Windows CE is dead and buried and its gcc port is even more dead and I don't believe in zombies 2014-06-12 03:12:15 +02:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Zbigniew Kosinski ec02c881e8 atspi: selection interface tests for elm_list widget fixed
Reviewers: raster, m.jagiello, stanluk

Differential Revision: https://phab.enlightenment.org/D927
2014-06-10 19:13:35 +09:00
Lukasz Stanislawski 139c871a72 atspi: add AtspiText and AtspiEditableText interface support.
Summary:
Added reference interface implementation for elm_entry widget. Tests added.
Updated at-spi-constants.h header to version 2.12.0.

Reviewers: raster, seoz

CC: raster

Differential Revision: https://phab.enlightenment.org/D806
2014-06-10 16:18:17 +09:00