Daniel Juyung Seo
106960af59
emotion emotion_test: free allocated data when the dependent object is
...
deleted.
This fixes coverity CID 1099709.
2013-11-27 01:48:37 +09:00
Tom Hacohen
1b51bc256b
Evas tests: Add canvas free with ref tests.
...
This should check test for the issue fixed in:
bb4a19b5ad
8bba92fbca
2013-11-26 12:27:31 +00:00
Tom Hacohen
d6ac2464bb
Eo: Make eo_manual_free() return a success flag.
...
eo_manual_free() can fail in some cases, and it is useful for users of
this API to know about it in order to decide what to do.
2013-11-26 12:10:53 +00:00
Tom Hacohen
99c8652dec
Ecore con dns test: Fix test hangs.
...
This should fix the test hangs on Jenkins. Fixed them for me.
The problem was, that the timeout was not handled correctly.
The server object was deleted, but the mainloop was not stopped.
2013-11-25 15:45:01 +00:00
Tom Hacohen
ada27a49d7
Evas textblock: Added a test for wraps ending with whites.
...
This tests for word wraps of lines ending with whites.
Those whites should not be cut, they should be wrapped as well.
2013-11-25 14:41:24 +00:00
maxerba
26df676e06
Adding galician and spanish translations in desktop files
2013-11-22 21:28:37 +01:00
Tom Hacohen
46a3f01465
Eo tests: Added a parent_set parameter validity test.
2013-11-20 12:23:18 +00:00
Jérémy Zurcher
58b578c9b0
eina: fix a possible race condition during eina_file_close.
...
replay 7e8fb93
without the breakage
2013-11-20 10:22:00 +01:00
Jérémy Zurcher
8a3e021298
Revert "eina: fix a possible race condition during eina_file_close."
...
it breaks everything
This reverts commit 7e8fb93206
.
2013-11-20 10:22:00 +01:00
Cedric Bail
7e8fb93206
eina: fix a possible race condition during eina_file_close.
...
The lock on the main hash was taken to late (after we took the decision
to remove the targeted Eina_File from the cache), this means it was possible
to get an Eina_File from the cache that was going to be removed. This patch
attempt to fix that potential race condition.
Hopefully should fix T461.
2013-11-20 13:02:37 +09:00
Tom Hacohen
0e363f54b4
Evas textblock tests: Added tests for correct tag ordering.
...
Check that tags entered are correctly ordered.
2013-11-19 15:56:49 +00:00
Tom Hacohen
61264aebe3
Evas textblock tests: Added a complex markup set/get test.
...
This should make things more robust as thing tests a lot.
2013-11-19 15:56:49 +00:00
Cedric Bail
2dc092d36e
eina: adjust precision for all our targeted convertion.
2013-11-12 20:12:54 +09:00
Cedric Bail
1281a8369f
eina: fix uninitialized data use.
2013-11-12 19:01:10 +09:00
Cedric BAIL
da559ee5d0
eina: use portable infrastructure to detect page size.
2013-11-10 09:26:12 +01:00
Cedric Bail
65c33f6369
eina: eina_lock_debug is only on Eina_Lock.
2013-11-09 20:06:59 +09:00
Cedric Bail
91025a1e04
eina: fix warning of unsigned int being compared to an int.
2013-11-09 20:06:36 +09:00
Guillaume Friloux
329c646218
This adds the test case for the DNS error patch.
...
Do not set the timeout value to something too low or you walk over
another bug i discovered and that needs a lil talk.
2013-11-06 14:32:11 +01:00
Cedric Bail
e570ea7805
ecore: remove coroutine for now. Can easily be reverted for 1.9.
2013-11-05 11:12:20 +09:00
Cedric Bail
be3afd8f4b
eina: update Eina_Cow test to latest API change.
2013-11-04 12:47:12 +09:00
Cedric Bail
fe5dd4bcda
eina: add test for old ABI supported function, but not exposed anymore.
2013-10-25 20:16:10 +09:00
Cedric Bail
7f8665a266
eina: improve test coverage of Eina_File API.
2013-10-25 19:57:57 +09:00
Cedric Bail
cae6b0b0e4
eina: improve test coverage of virtual file.
2013-10-25 19:50:14 +09:00
Cedric Bail
39931d295b
eina: use Eina_Barrier to improve coverage and reduce race condition during testing.
...
This should hopefully solve the failing test on Jenkins. As I can't reproduce them
here, it is just an educated guess... We will see !
2013-10-25 15:12:28 +09:00
Cedric Bail
577ae1debc
eina: let's add some straight forward test.
2013-10-16 16:51:41 +09:00
Sebastian Dransfeld
c7c08b0e3e
efreet: No need to set pointer value
...
CID 1039919
2013-10-14 13:22:34 +02:00
Sebastian Dransfeld
6b18d7b80a
efreet: Check if count != 0
...
CID 1039434
2013-10-14 13:14:55 +02:00
Jérémy Zurcher
9e246eadd0
eo: cover eo_class_get new behaviour
2013-10-13 00:00:13 +02:00
Carsten Haitzler
69e27abdc3
eina - and e3fl in general - stop using eina_error_get/set - useless really
2013-10-11 16:50:40 +09:00
maxerba
8de703279c
Adding italian entries in desktop files
2013-10-05 11:17:58 +02:00
Daniel Zaoui
203b6295e9
Reduce the number of deleted objects to reduce the number of expected error prints
2013-09-29 09:34:03 +03:00
Tom Hacohen
e6886e05b1
Eo: get rid of eo_class_do(_super) which we don't need anymore.
...
We now completely use eo_do(_super), so those are not needed.
2013-09-27 17:01:51 +01:00
Tom Hacohen
c1e5fb7cf8
Eo tests: Fixed wrong prototype in one of the tests in the suite.
2013-09-27 16:44:00 +01:00
Tom Hacohen
682c69764d
Revert "eo: libs,test,benchmarks Eo_Class -> Eo"
...
This reverts commit 1714fe93f4
.
We actually want this type, it makes things clearer.
Conflicts:
src/tests/eo/function_overrides/function_overrides_inherit2.c
src/tests/eo/function_overrides/function_overrides_simple.c
src/tests/eo/suite/eo_test_class_simple.c
2013-09-27 16:40:32 +01:00
Tom Hacohen
2a82ff95e4
Eo: unify the class func and normal func prototypes.
...
Conflicts:
src/lib/eo/eo.c
2013-09-27 14:01:47 +01:00
Jérémy Zurcher
1714fe93f4
eo: libs,test,benchmarks Eo_Class -> Eo
...
Conflicts:
src/tests/eo/suite/eo_test_general.c
2013-09-27 14:01:46 +01:00
Cedric Bail
5b7063b62a
eo: fix those anoying check.
2013-09-25 15:29:19 +09:00
Tom Hacohen
4850c4660f
Evas textblock: Fixed broken test.
...
Item is not meant to take the size of the max ascent, just the ascent.
2013-09-23 14:37:19 +01:00
Tom Hacohen
bda3ceb632
Evas textblock: fixed *_markup_get issue with escaped chars.
...
Markup_get was misbehaving and returning wrong results with some escaped
chars. markup_to_utf8 was working correctly. Merged the code together
and now both are consistent and correct.
Thanks to WooHyun for reporting.
2013-09-03 11:50:34 +01:00
Tom Hacohen
6ca84f0486
Evas textblock tests: Make the tests more lax.
...
The tests were failing on jenkins (gentoo), and on arch, but passing on an
old ubuntu. Ubuntu patches freetype, and that's probably the reason for that
with the tests more lax, both work.
2013-08-20 13:32:03 +01:00
Tom Hacohen
1e9f121f42
Evas textblock tests: Adjust tests according to descent fix.
2013-08-20 11:13:06 +01:00
Tom Hacohen
92a6d2e2d2
Evas textblock tests: Fix a broken test and add another test.
...
The test was running without a text being set.
The added test runs with an empty textblock.
2013-08-20 11:13:06 +01:00
Tom Hacohen
ec573948b0
Evas textblock tests: use the libcheck assert macros.
2013-08-20 11:13:06 +01:00
Oleksander Sirook
337b3d4daf
eina: add test for 'eina_file_map_new' function.
2013-08-13 17:31:41 +09:00
Cedric Bail
93b0fbfe65
edje: add warning when not finding the exact match.
...
This will close T223.
2013-08-07 16:01:57 +09:00
Tom Hacohen
6583b83c73
Evas textblock: Use max ascent/descent at the edges of the textblock.
...
Thanks to Youngbok Shin for reporting the difference in behaviour between
textblock and text object.
2013-08-06 09:29:03 +01:00
Chris Michael
d384574095
If efreet_menu_parse returns an actual menu, let's free the memory
...
allocated to it before we return.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 14:24:46 +01:00
Cedric Bail
ee72c809f0
efl: fix headers order.
2013-07-23 11:27:29 +09:00
Cedric Bail
b343874300
edje: fix typo and deep apology to asdfuser.
2013-07-18 20:19:09 +09:00
Cedric Bail
9d54653a31
edje: update position after avoiding rounding error.
2013-07-18 16:52:57 +09:00
Vladislav Brovko
56adc51e83
eina: add Eina_Value tests convert from short, int.
2013-07-18 16:19:26 +09:00
Cedric Bail
592b1362bb
emotion: let's work out of tree.
...
NOTE: I have no idea why we did require emotion_test to only work
in tree. If you have an explanation, I would be glad to ear it. In the
mean time, this patch restore the use of emotion_test when your build
tree is not around.
2013-07-16 09:49:01 +09:00
Cedric Bail
d9aa0fccd9
eet: add support for EET_T_VALUE.
...
Add the moment, it only support simple type. Need iterator for more
complex type. It also expect a pointer to an Eina_Value and not directly
an Eina_Value, let me know if you prefer the opposite and maybe I
should rename it EET_T_PVALUE.
2013-07-15 17:04:34 +09:00
Cedric Bail
4a183ac1a8
eet: fix test suite to always use the proper data descriptor type.
2013-07-15 17:04:34 +09:00
Sergii Kanaev
f21bcaccbb
eina: improve test coverage for Eina_Clist.
...
Add tests for eina_clist_add_after, eina_clist_add_head, eina_clist_next
and eina_clist_add_tail.
2013-07-09 10:23:00 +09:00
maxerba
a64e0c0573
Fixed sorting in desktop files
2013-07-05 19:00:52 +02:00
Cedric Bail
2fdc05863d
eet: force thread to always run during eet_cache_concurrency test.
2013-07-02 13:45:30 +09:00
Daniel Willmann
7927c0f9fa
edje_test: Test geometry of a more complex layout
...
It seems someone thought it was fun to have rel2.offset behave
differently than rel1.offset...
A rel2.offset of 0 actually means the size is increased by one pixel.
Acocunt for that in the tests.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-28 14:25:30 +01:00
Daniel Willmann
db29fbb286
edje_test: Make the variable returned in test_layout_get static
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-28 14:25:30 +01:00
Daniel Willmann
5763195418
edje_test: Test geometry and color of edje part
...
Just a simple test that uses the existing test_layout
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-27 17:51:30 +01:00
Daniel Willmann
a23ff7b5ab
edje_test: Make test_layout_get() configurable
...
This will help when we want to test different edj files
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-27 17:50:23 +01:00
Daniel Willmann
3e5ff22ab9
eina_test_fp: Improve speed of eina_fp test
...
Test less values in between, but still have a decent combination of
large/small values to test.
Fixes -WTasn
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-27 14:34:02 +01:00
Tom Hacohen
fdbc477f79
Evas textblock: Fixed issue with textblocks without fonts segfaulting.
...
Fixes T184 (which is a regression).
2013-06-25 16:37:48 +01:00
Sebastian Dransfeld
068f1ddc62
efl: formatting
2013-06-20 13:08:36 +02:00
Jérémy Zurcher
4eb2fb0bb6
eo_class_new: pack mro at the end of _Eo_Class
2013-06-17 23:41:02 +02:00
Daniel Willmann
0e51bff61a
eina_test_str: Make sure we have an empty string before using strcat
...
Caused issues with address sanitizer. Just calling allocating memory for
a string does not mean that it's empty/NULL-terminated.
2013-06-12 23:57:42 +01:00
Jérémy Zurcher
22220ca70a
improve eina_str coverage
...
my time killer, what a sad life ;))
2013-06-12 23:34:40 +02:00
Jérémy Zurcher
d0d1b705fb
indent eina_list tests
2013-06-12 23:34:40 +02:00
Eduardo Lima (Etrunko)
d3292a7ae9
Split .gitignore into multiple files
...
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-11 18:18:50 -03:00
Daniel Zaoui
3bfc9ae76f
Ecore: fix warnings
2013-05-27 10:49:27 +03:00
Daniel Willmann
4cd116db19
tests/ecore_con: Sadly IPv4 is still more prevalent than IPv6
...
Switch to IPv4 loopback - especially since our build slaves don't have
IPv6 support...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-24 14:43:32 +01:00
Daniel Willmann
7d654ec027
ecore_con: Reenable ecore_con tests - they seem fine (but don't use port 8080)
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-24 11:47:47 +01:00
Cedric Bail
d66517debf
ecore: animator can get called with the same value due to rounding and range limit.
2013-05-20 18:59:43 +09:00
Daniel Willmann
d1e38b8535
tests/ecore_animators: Don't rely on consistent timing
...
This may break under heavy load so we shouldn't rely on it. Instead make
sure that time only moves forward.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 18:16:09 +01:00
Daniel Willmann
62325dd693
tests/ecore: Add test for ecore_animator
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 17:15:27 +01:00
Daniel Willmann
7c20a90c3d
eina_test_fp: Test multiplication and division as well
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 17:10:55 +01:00
Tom Hacohen
e7cd15b04b
Fixed text/block tests: Added Korean UnDotum font and fixed some issues.
2013-05-13 15:13:25 +01:00
Tom Hacohen
211ebc9e88
Fix broken test from previous commit.
2013-05-13 13:51:14 +01:00
Tom Hacohen
a7d7cc1df1
Evas bidi test: Improved error output.
2013-05-13 13:49:51 +01:00
Jérémy Zurcher
52b20f0334
eina_stringshare: improve coverage
2013-05-08 12:14:57 +02:00
Jérémy Zurcher
f71b40db2f
eo ptr ind tests: guard numerous fail_if, lesson learned from eina_list_shuffle
2013-05-07 23:40:53 +02:00
Jérémy Zurcher
fc34b73c28
eo ptr ind: eo_test_general, increase NB_OBJS to cover more
2013-05-07 00:35:07 +02:00
Jérémy Zurcher
94845627b5
Revert "eo suite: add ptr indirection coverage test"
...
This reverts commit 88cf0cf460
.
already covered in eo_test_general.c
2013-05-07 00:03:59 +02:00
Jérémy Zurcher
88cf0cf460
eo suite: add ptr indirection coverage test
2013-05-03 21:13:03 +02:00
Daniel Zaoui
f6a37f88d2
Eo: Add reference functions for objects data
...
We want to introduce a new mechanism concerning the data of the Eo
objects.
The goal is to improve the memory management by defragmenting the memory
banks used by the Eo objects. The first phase has been done by raster
and consists in allocating the objects into a separate memory region
that the one used by malloc. So now, we know where our objects are
located.
Now, moving objects means moving data of objects. The issue we have here
is that a lot of data pointers are stored into data of other objects,
e.g Evas Object data into lists for rendering...
We need a way to reference the data and eo_data_get doesn't provide us
that. So we need to improve the API for data extraction by requesting
from the developer if the data will be stored or not. Five functions are
supplied:
- eo_data_scope_get: no referencing, the data pointer is no more used after
exiting the function.
- eo_data_ref: reference the data of the object. It means that while the
data is referenced, the object cannot be moved.
- eo_data_xref: reference the data of the object but for debug purpose,
we associate the objects that references. Same behavior as eo_data_ref
for non-debug.
- eo_data_unref: unreference the data of an object.
- eo_data_xunref: unreference the data of an object previously
referenced by another object.
I deprecated the eo_data_get function. Most of the time,
eo_data_scope_get needs to be used.
In the next patches, I changed the eo_data_get to the corresponding
functions, according to the usage of the data pointer.
The next step is to find all the places in the code where the data is
stored but not yet referenced. This will be done by:
- requesting from every object to unreference all data to other objects.
- moving all the objects from one region to another
- requesting from every object to rerefenrence the data.
- debugging by hunting the segmentation faults and other weird
creatures.
2013-05-01 10:37:08 +03:00
Daniel Willmann
0c0ff01930
ecore_audio test: Change the volume of the output instead of the input
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann
72e65872d5
ecore_audio: Add test to check correct cleanup when removing input
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann
014c6176b3
ecore_audio: Test sndfile/tone format and source methods better
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann
ed011b10cc
ecore_audio: Test pulseaudio output if it is enabled
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann
bafa8f0ae6
ecore_audio: Test VIO unsetting and freeing
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann
b9ad2190ab
ecore_audio: Test read-while-paused code path as well
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:25 +01:00
Daniel Willmann
fdb73b8a49
ecore_audio: Test VIO input/output of base in/out class
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:25 +01:00
Daniel Willmann
1a8fcf81a0
ecore_audio: Test the looped signal/code path as well
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:24 +01:00
Tom Hacohen
fc05066a50
Eo: fixed an issue with the test_value test.
2013-04-24 17:42:24 +01:00
Tom Hacohen
a26ed054a9
Eo: Added test to the special eina value type.
2013-04-24 16:45:41 +01:00
Daniel Willmann
97d4b50c91
ecore_audio: Add more return values for methods, catch up with API
...
input_attach, input_detach, format_set, and source_set now return an
Eina_Bool
Tests, examples and edje_multisense adapted
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-23 17:13:39 +01:00
Lucas De Marchi
4e3804041f
Rename edbus->eldbus
...
git grep -l edbus2 | while read f; do sed -i 's/edbus2/eldbus/g' "$f"; done
find . -name '*edbus2*' -exec rename edbus2 eldbus {} \;
git grep -l "EDBUS" | while read f; do sed -i 's/EDBUS/ELDBUS/g' "$f"; done
git grep -l "EDBus" | while read f; do sed -i 's/EDBus/Eldbus/g' "$f"; done
git grep -l "edbus (v2)" | while read f; do sed -i 's/edbus (v2)/eldbus/g' "$f"; done
git grep -l "Edbus" | while read f; do sed -i 's/Edbus/Eldbus/g' "$f"; done
git grep -l "edbus" | while read f; do sed -i 's/edbus/eldbus/g' "$f"; done
find . -name '*edbus*' -exec rename edbus eldbus {} \;
find . -name '*EDBus*' -exec rename EDBus Eldbus {} \;
2013-04-23 12:36:29 -03:00
Daniel Zaoui
d29fc36e1b
Eo: tests to check eo ptrs indirection feature.
...
The test doesn't fail if the feature is disabled.
2013-04-23 09:50:40 +03:00
Daniel Willmann
6781342d3c
ecore_audio: Guard against attaching an input twice
...
Add check in input_attach and change test case accordingly
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-19 18:34:16 +01:00
Daniel Willmann
af8fed32c6
ecore_audio test: Better test coverage for inputs
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-19 15:43:20 +01:00
Valerii Kanunik
d601c15302
ecore: update ecore_test_ecore_main_loop_event test for more coverage code.
...
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-19 15:43:42 +09:00
Daniel Willmann
986244339b
tests/ecore_audio: Create temporary test files in build dir
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:47:35 +01:00
Daniel Willmann
e99ab4623a
ecore_audio: Add return value to input_attach method
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:32:46 +01:00
Daniel Willmann
8b8dc1fd6d
ecore_audio: Enable tone test case
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:14:32 +01:00
Daniel Willmann
542b8743bb
ecore_audio: Enable soundfile test for eo
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:14:32 +01:00
Daniel Willmann
48b78234a8
ecore_audio: Build Eo-based Ecore_Audio and tests now
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:12:17 +01:00
Yakov Goldberg
0389d46014
Evas textblock: fix split cursor tests; FIXME ligatures tests
...
- re-enabling split BiDi cursor tests, disabled in 0d68ffbe;
ligatures tests are still disabled;
- change "fail_if" to "ck_assert_int_*",
because it prints error message with values;
- fixing usage of embedding LTR/RTL codes in tests;
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-17 10:07:29 +03:00
Tom Hacohen
14f7c774ff
Eina tests: Use TESTS_BUILD_DIR instead of PACKAGE_BUILD_DIR.
2013-04-16 13:57:00 +01:00
Stefan Schmidt
763bdd1618
eeze/sensor: Switch timestamp to relative values coming.
...
Switch from absolut microseconds since epoch to a monotonic clock with
realtive values. Switch from unsigned long long to double.
This aligns it with how we present time in efl. ecore_time_get is used
when possible. For the tizen modules we convert the the epoch timestamp
we get into a double. This is still a working monotone clock source.
As this will be released the first time with 1.8 we don't have any API
break here.
2013-04-16 13:21:28 +01:00
Tom Hacohen
3f3ad67616
Evas textblock: Fixed a bug with deletion of ranges.
...
Fixed a bug with deletion of ranges that end just before a visual format.
Thanks to WooHyun Jung for reporting.
2013-04-15 17:15:22 +01:00
Stefan Schmidt
6b70dd57d3
eeze/sensor: Move eeze_Sernsor_obj_get into private header.
...
Together with eeze_sensor_module_register/unregister these are the functions
that are irrelevant for developer when they just want to use the eeze_sensor
API.
Still all three need to be marked with EAPI as they are used in the backend
modules and due to our visibility hidden usage the module loading would fail
if we remove EAPI from them.
Moving them into the private header should give an indication that these are
not meant for pure API users.
2013-04-12 15:35:08 +01:00
Tom Hacohen
0ed15b04f8
Eo array: Add more testing.
2013-04-12 13:49:26 +01:00
Tom Hacohen
3e11c380c9
Eo: Added eo_event_callback_array_* functions.
...
These functions let you pass an array of callbacks instead of just one.
It's more memory efficient to use this if you just add a bulk of events
on the same object.
This commits breaks ABI, and breaks API of the EO_EV_CALLBACK_ADD/DEL
signals (the event info passed).
2013-04-12 12:02:49 +01:00
Daniel Willmann
53e7fb6edc
ecore_timer test: Pre-increment variable to prevent buffer overflow
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-12 10:10:25 +01:00
Cedric Bail
38543ae53b
ecore: reduce risk of rounding error.
2013-04-12 11:19:39 +09:00
Valerii Kanunik
89f108312e
ecore: add tests for ecore_poll module.
...
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 11:07:11 +09:00
Dmytro Kaidalov
fc0d46411c
ecore: add tests for Ecore_Evas.
...
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Vitaliy Venzak
b3159a889c
ecore: add ecore timer test.
...
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Valerii Kanunik
4c992a4f85
ecore: Added tests for ecore_app_args procedures.
...
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Yakov Goldberg
0d68ffbe86
Evas textblock: Revert commit 3832ec5
...
with additional disabling of unused function
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-11 18:19:46 +03:00
Yakov Goldberg
3832ec5500
Evas textblock: fixing tests
...
Re-enabling tests, disabled in commit:
84fa062d6e
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-11 17:15:46 +03:00
Yakov Goldberg
ff1230f77a
Evas text: fixing test
...
Adding conditional dependence on freebidi
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-11 17:15:45 +03:00
Yakov Goldberg
84fa062d6e
Evas textblock: disable some tests. FIXME
...
Some of tests fail on e5-jenkins-slave-x86_64-1.
Tests seem right and pass locally,
but not on the server.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-10 17:05:44 +03:00
Yakov Goldberg
7016872619
Efl textblock/entry: additions to split BiDi cursor
...
- handling multiple runs, multiple lines, last char of line/par
- tests added
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-10 14:59:48 +03:00
Yakov Goldberg
afddaf94a0
Evas textblock: fixing tests to work w/ or w/o harfbuzz
...
In this test harfbuzz creates ligatures,
so need to handle cases w/ or w/o harfbuzz
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-10 14:43:35 +03:00
Daniel Willmann
fe8db5a2d1
eo: Update tests to check for the correct error strings
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-09 14:13:47 +01:00
Jérémy Zurcher
2036f7d344
eina: add eina_inlist_first and eina_inlist_last
...
- both as static inline functions
- test added in eina_inlist_simple
2013-04-09 12:03:05 +02:00
Tom Hacohen
920c1b2af8
Evas font: Fixed a bug with cluster sizes and ligatures.
...
This casused cursor position (among other things) to look wrong with texts
ending with ligatures.
Thanks to Yakov Goldberg for reporting.
2013-04-08 13:31:09 +01:00
Yakov Goldberg
fb7994e0d9
evas/font: fixing tests
...
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-04 14:35:30 +03:00
Yakov Goldberg
d55c3f2bb7
evas/font: fix handling querying char at coords (click on gap)
...
If query at x coord, which points to rigth half of LTR char,
next position will be returned. The same for left half of RTL char.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-04-04 13:10:22 +03:00
Cedric BAIL
be2cebab17
eina: fix test logic after change in Eina_Cow GC.
2013-04-03 19:21:51 +09:00
Daniel Willmann
75aa9118d0
ecore_audio: Rename ecore_audio_*_userdata_{get,set} userdata -> data
...
As mentioned by Cedric *_data_set is used in other places of EFL
already.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-02 16:21:44 +01:00
Daniel Willmann
35d203d9e7
eina_cow: Fix compilation for tests again
...
eina_cow_add now requires a gc parameter
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-02 15:07:25 +01:00
Carsten Haitzler
332e215b41
matching fix to evas test suite to account for changes in word
...
start/end changes as per log message/changelog
2013-03-29 09:21:20 +09:00
Stefan Schmidt
5706c6027b
eeze/sensor/tests: Catch all callbacks from async read.
...
Originally we quit mainloop on the first event we got. As we expect a bit
more we are now counting them and only leave when all arrived.
2013-03-28 14:38:12 +00:00
Stefan Schmidt
f7c055b0ce
eeze/sensor: Setup all ecore event types in init.
...
We had some set up but not all. Do that and avoid the redo'ing in
eeze_sensor test.
2013-03-27 17:15:27 +00:00
Stefan Schmidt
fdb479d060
eeze/sensor/test: Remove useless check.
...
Thsi would only test ecore_event_add and nothing wrt to eeze sensor.
2013-03-27 17:14:31 +00:00
Vladislav Brovko
7584a7e84d
eina: add eina_file_mkdtemp and tests for Eina_File.
...
Test added for :
eina_file_direct_ls_simple
eina_file_ls_simple
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-27 22:45:34 +09:00
Valerii Kanunik
940543d972
eina: improve Eina_Value coverage.
...
Added test 1: eina_value_test_convert_long.
Added test 2: eina_value_test_convert_ulong.
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-25 13:00:00 +09:00
Daniel Willmann
c2bdfae63e
eeze_sensor: Don't free the data passed in the callback ourself
...
The way ecore_event_add() is used in the sensor modules takes care of
that already (not providing a free cb).
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-22 18:32:38 +00:00
Tom Hacohen
8fb14b29c0
Eina tests: Fixed warnings with clang.
...
Clang doesn't appreciate passing 'char' to %hdd, although they are the right
size. So change to %d and cast to 'int' before passing it.
2013-03-21 13:21:10 +00:00
Daniel Willmann
07b5c33f90
eina_test_list: Move fail_if out of the hot path
...
fail_if() from libcheck always writes to a file created with tmpfile(),
so it is not a good idea to call it millions of times. This wastes
memory and time, let's use both for something better. :-)
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-20 18:42:54 +00:00
Jérémy Zurcher
d0f3357f77
TES
...
Conflicts:
src/lib/eina/eina_list.c
src/lib/eina/eina_types.h
2013-03-20 11:48:44 +01:00
Cedric BAIL
e02bb36e3a
eina: improve speed of Eina_Cow.
...
* Use an Eina_Hash for the garbage collector list.
* Turn off garbage collection on object that are unlikely to match.
This patch make 1.8 as fast as 1.7 again.
2013-03-20 10:59:56 +09:00
Tom Hacohen
fab36d8869
Eina cow: Don't tests things that depend on magic when it's off.
2013-03-19 15:48:59 +00:00
Tom Hacohen
a170683334
Change usage of eo_do_super to the new prototype.
2013-03-18 16:14:18 +00:00
Tom Hacohen
83180acf26
Eo: Added cur_klass as a parameter to eo_*_do_super.
...
We now need to pass the current class to eo_do_super. This is faster and
more memory efficient and generally lets us do things better.
Using the eo_benchmarks we get ~20% speed-up.
2013-03-18 16:14:18 +00:00
Stefan Schmidt
9f8744a50a
eina/tests: Adding return to non void function.
...
This fixes the test case for me. Also fixes two small wanring while being there.
2013-03-13 13:19:54 +00:00
Vladislav Brovko
8ca2871f82
eina: add tests.
...
Added tests:
- eina_simple_xml_parser_null_node_dump,
- eina_simple_xml_parser_childs_count,
- eina_simple_xml_parser_parse_with_custom_callback.
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-13 18:02:44 +09:00
Nikolay Lopatka
3e07236148
Edje: Add test for edje_object_file_set.
...
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-13 16:47:53 +09:00
Tom Hacohen
3ba9311c0f
Tests: Output XML to build dir, not source dir.
2013-03-12 12:46:06 +00:00
Tom Hacohen
b13fe184bf
Ecore tests: Define TESTS_SRC_DIR in the same way as the other tests.
...
Deprecate CHECK_SRC_DIR which is not needed anymore because of that.
2013-03-12 11:43:31 +00:00
Stefan Schmidt
85810dac8c
tests: Add xml output file for check runs for the use with jenkins.
...
We can do pretty graphs with jenkins about our unit tests. But we
need the check xml output for that. Enabling it in all suites.
2013-03-12 09:59:06 +00:00
Tom Hacohen
23264ae09c
Evas textblock: Fixed coord (int) overflow.
...
X advance coords can be bigger than the limits of short.
2013-03-11 15:33:28 +00:00
Tom Hacohen
973d0b475b
Eina test strbuf: Fixed compilation warnings.
2013-03-11 10:39:20 +00:00
Nikolay Lopatka
779356b45f
eina: add test for strbuf trim function.
...
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-11 10:53:19 +09:00
Vladislav Brovko
21505d1edf
eina: Eina_Tmpstr test for eina_tmpstr_add, eina_tmpstr_del.
...
Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
2013-03-11 10:45:41 +09:00
Tom Hacohen
4a1c3d0f57
Ecore coroutine test: Fixed compilation warnings.
2013-03-08 17:32:23 +00:00
Tom Hacohen
7ccdb921ad
Eo tests: when comparing logs, ignore anything below warnings.
...
Comparing all the debug messages is kinda crazy, so we just don't bother.
2013-03-01 12:08:19 +00:00
Davide Andreoli
23cbcb5fa4
emotion_test is now able to play streams from webcams (and other sources maybe)
...
just run:
emotion_test -w
2013-02-27 22:49:34 +01:00
Tom Hacohen
1425b0d2dc
Evas text: Fixed a bug with the (kinda) newly added text object ellipsis.
...
There was a problem with bidi texts and ellipsis. The text would be trimmed
according to the visual position instead of the logical.
2013-02-25 15:39:32 +00:00
Tom Hacohen
039b3da078
Evas text: Added a test that shows how broken ellipsis is.
2013-02-25 15:22:04 +00:00
Tom Hacohen
9696f44a67
Evas text tests: Start shipping DejaVuSans with the test suite.
...
We can finally rely on having fonts in all cases (even when there's no
fontconfig) and we can also rely on specific sizing.
2013-02-25 14:59:03 +00:00
Tom Hacohen
d6dababe78
Evas text: Fixed bug with the text object direction detection.
2013-02-21 13:39:37 +00:00
Cedric BAIL
8a818ad79d
edje: let's fix the edje test to init/shutdown edje correctly.
...
We have so much wonderfull tool, like git and make lcov-check. Sadly
we are lacking a tool to check their usage ! PEBKAC is still an issue.
2013-02-21 18:45:45 +09:00
Tom Hacohen
a77cb9ee41
Revert "tests/edje: Disable edje mising file test until the needed header is commited."
...
I added the file in the previous commit.
This reverts commit 251eac7d7a
.
2013-02-21 08:41:09 +00:00
Tom Hacohen
ac16677405
Edje tests: Added missing file.
2013-02-21 08:41:09 +00:00
Stefan Schmidt
251eac7d7a
tests/edje: Disable edje mising file test until the needed header is commited.
...
I tried to get it from Tom's machine but I can't log in there. :)
2013-02-20 09:11:07 +00:00
Cedric BAIL
1637e99931
eina: make that test not depend on efl configuration.
2013-02-20 17:50:19 +09:00
Tom Hacohen
9654db3b16
Edje tests: Added a failing test for the file doesn't exist issue.
2013-02-19 16:00:45 +00:00
Cedric BAIL
91711d8a69
ecore: add Ecore_Coroutine.
...
That work clearly was possible thanks to Leandro. If you want more information
go to his blog : http://tia.mat.br/posts/async_io_with_coroutines/ .
The main difference with his implementation is more portable and not thread safe.
It does not have a custom swapcontext (would make sense as we don't need to save
the sigcontext) so it will be less fast. If people are ready to contribute asm
patch for that purpose I will be happy to apply them.
As for portability this code should work on all architecture we already support
thanks to a nice hack with setjmp/longjmp borowed from libcoroutine. We do use
Fiber for Windows support, but as 1.8 is completely borken in that regard, this
is theorical work only.
Thinks left to do :
- Eoify the API
- Documentation
- More tests
- Add support for coroutine in fd handler
- Add coroutine support to ecore_thread api
- Write some example
2013-02-18 14:38:33 +01:00
Tom Hacohen
3974cb3dc1
Evas textblock: Fixed a selection bug introduced in my previous commit.
...
I matched against the wrong values so it never included items in the middle
even when needed.
SVN revision: 83869
2013-02-13 12:42:44 +00:00
Tom Hacohen
548e548632
Evas textblock: Fixed a selection issue.
...
The issue happens when selecting in strings that have both bidi and different
scripts in the same bidi run. E.g: "עבריתenglishрусскийעברית".
SVN revision: 83786
2013-02-08 15:31:25 +00:00
Cedric BAIL
e684f5a823
efl/eina: Eina_Tiler take tile size into account.
...
SVN revision: 83708
2013-02-07 07:32:45 +00:00
Cedric BAIL
57badb0587
efl/eina: check that we always put some random value in hash.
...
SVN revision: 83655
2013-02-06 07:03:38 +00:00
Tom Hacohen
f9cf5bb374
Eo tests: Beginning of test output cleanup.
...
SVN revision: 83635
2013-02-05 14:37:28 +00:00
Stefan Schmidt
eae46ba95d
efl/eina: Fix strings to compare correctly and pass test suite.
...
This one is for Cedric.
SVN revision: 83332
2013-01-25 16:03:47 +00:00
Cedric BAIL
93d1705f77
efl/eina: what the ?? Update text for magic test...
...
SVN revision: 83319
2013-01-25 06:16:33 +00:00
Stefan Schmidt
b9d18d770b
efl: Switch from deprecated eina_unicode_utf8_get_next to eina_unicode_utf8_next_get
...
SVN revision: 83130
2013-01-23 09:09:57 +00:00
José Roberto de Souza
ba63fa7ed2
efl/edbus: Fix edbus_name_owner_changed() when bus name is not on bus
...
If we pass the last argument as TRUE, that means user want to know the actual
bus id of the bus name and if the bus name is not registered it never notify
the user.
This bug was insert when fixing another one, because of that there more code
here to fix the previous bug too.
Patch by: José Roberto de Souza <zezsouza@gmail.com>
SVN revision: 83082
2013-01-22 13:34:34 +00:00
José Roberto de Souza
623a73d1ed
efl/edbus: Init ecore on test suites
...
Patch by: José Roberto de Souza <zezsouza@gmail.com>
SVN revision: 83081
2013-01-22 13:34:25 +00:00
Tom Hacohen
21a6a84667
Eo: Changed NDEBUG to EO_DEBUG.
...
This was stupid from the start, but now it casuse even more issues.
We'll have to just add a configure option to it when the time comes.
SVN revision: 82989
2013-01-18 16:57:57 +00:00
Tom Hacohen
37efa5efd7
Eo tests: Fix function overrides test to not test some things when NDEBUG is used.
...
SVN revision: 82987
2013-01-18 16:13:30 +00:00
Stefan Schmidt
506a7bc1fe
efl/imf test: Remove unused modules varibale.
...
If you copy and paste functions make sure you adjust for all variables you use. :)
SVN revision: 82984
2013-01-18 15:45:49 +00:00
Stefan Schmidt
4d7909ae3a
efl/eina tests: Allow libcheck 0.9.8 usage.
...
This commit is for all the poor souls that see no need to update their system
each day with everything the world may offer just to be sure they have the
latest. This commit is for people that like the idea of having something
working when it did so the day before. Kudos fot Tom for pointing out the
function.
SVN revision: 82980
2013-01-18 14:32:08 +00:00
Gustavo Sverzut Barbieri
b830048a64
god... it was using localtime, so should we when we test.
...
SVN revision: 82950
2013-01-17 20:36:52 +00:00
Gustavo Sverzut Barbieri
69650dd84c
eeze: remove warning and add a bit more test.
...
it's basically not testing anything, just calling the API :-( Added
some tests that check if the listed type is of that type (mouse,
touchpad, joystick).
SVN revision: 82949
2013-01-17 20:31:06 +00:00
Gustavo Sverzut Barbieri
09e5bc40ef
remove unused result warning
...
SVN revision: 82948
2013-01-17 20:22:23 +00:00
Gustavo Sverzut Barbieri
14ff8920a6
eina/tests: fix and improve eina value tests.
...
improve: use ck_assert_str_eq() instead of fail_unless(strcmp() == 0),
it's shorter and will print a proper error message on failure.
fix: timeval changed from seconds to asctime(), cope with that.
fix: hash tests now search for substrings and thus are not prone to
algorithm changes. the format is pretty simple to avoid false results.
SVN revision: 82945
2013-01-17 19:44:13 +00:00
Gustavo Sverzut Barbieri
9768d40f85
fix magic check tests
...
SVN revision: 82944
2013-01-17 19:30:54 +00:00
Gustavo Sverzut Barbieri
94f2f63228
eina/tests: fix some warnings and use better ck macros.
...
SVN revision: 82943
2013-01-17 19:13:24 +00:00
Gustavo Sverzut Barbieri
c757cba26f
disable edbus tests that requires a daemon.
...
demarchi should fix this after his honeymoon :-P
SVN revision: 82941
2013-01-17 17:00:18 +00:00
Tom Hacohen
6aa4eb7d86
Evas text test: Fixed the test to work with Clang.
...
Apparently L'' doesn't work there.
SVN revision: 82940
2013-01-17 16:58:23 +00:00
Daniel Willmann
4010d3cefe
ecore_audio tests: Use the correct libcheck functions
...
Undefined symbols are not nice to have
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
SVN revision: 82929
2013-01-17 10:29:19 +00:00
Cedric BAIL
515282006f
efl: Add Eina_Cow_Data...
...
SVN revision: 82923
2013-01-17 06:51:35 +00:00
Gustavo Sverzut Barbieri
22a48925b1
ecore_suite: disable ecore_con tests that are bogus for an unit test.
...
these are more like examples or test applications than an unit
test. Needs to re-do.
SVN revision: 82893
2013-01-16 18:16:14 +00:00
Gustavo Sverzut Barbieri
0f21b187b0
ecore_suite: disable audio tests that will be fixed by asdfuser
...
SVN revision: 82892
2013-01-16 18:15:07 +00:00
Lucas De Marchi
9d8774403d
efl/edbus: Add test for creating/destroy obj without mainloop
...
The second test was crashing before r82784, which is also the fix for
terminology's issue with efreet_init()/efreet_shutown().
SVN revision: 82843
2013-01-15 21:52:51 +00:00
Lucas De Marchi
48e207859a
efl/edbus: Add initial testsuite
...
Right now this contains only 2 tests, for checking if
init/shutdown works correctly.
SVN revision: 82842
2013-01-15 21:50:57 +00:00
Tom Hacohen
f5af9566d0
Eo tests: fix warnings.
...
SVN revision: 82828
2013-01-15 17:17:39 +00:00