summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-02 18:16:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-03 13:40:33 +0900
commit6f31f36aa81cd15c34b9e55f43231e521acd35e0 (patch)
tree87635f26632574c19cc53dca68c30e17b0540153 /src/tests/ecore/ecore_test_ecore.c
parent1bdd9e4dd15fc27da43b50fd29bfb1b0b30ef6bd (diff)
put efl app test back with mods to match app as superclass
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index 6fd95738f4..fd31285503 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -857,67 +857,6 @@ START_TEST(ecore_test_ecore_main_loop_poller_add_del)
857} 857}
858END_TEST 858END_TEST
859 859
860START_TEST(ecore_test_efl_loop_register)
861{
862 Efl_Object *t, *n;
863
864 ecore_init();
865
866 t = efl_provider_find(efl_main_loop_get(), EFL_LOOP_CLASS);
867 fail_if(!efl_isa(t, EFL_LOOP_CLASS));
868
869 t = efl_provider_find(efl_main_loop_get(), EFL_LOOP_TIMER_CLASS);
870 fail_if(t != NULL);
871
872 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_main_loop_get());
873 fail_if(n != NULL);
874
875 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_main_loop_get(),
876 efl_loop_timer_interval_set(efl_added, 1.0));
877 efl_loop_register(efl_main_loop_get(), EFL_LOOP_TIMER_CLASS, n);
878
879 t = efl_provider_find(efl_main_loop_get(), EFL_LOOP_TIMER_CLASS);
880 fail_if(!efl_isa(t, EFL_LOOP_TIMER_CLASS));
881 fail_if(t != n);
882
883 efl_loop_unregister(efl_main_loop_get(), EFL_LOOP_TIMER_CLASS, n);
884
885 t = efl_provider_find(efl_main_loop_get(), EFL_LOOP_TIMER_CLASS);
886 fail_if(t != NULL);
887
888 ecore_shutdown();
889}
890END_TEST
891
892START_TEST(ecore_test_efl_app_version)
893{
894 const Efl_Version *ver;
895 Eo *loop;
896
897 ecore_init();
898
899 loop = efl_app_loop_main_get(EFL_APP_CLASS);
900 fail_if(!efl_isa(loop, EFL_LOOP_CLASS));
901
902 efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID);
903 ver = efl_app_build_efl_version_get(loop);
904 fail_if(!ver);
905 fail_if(ver->major != EFL_VERSION_MAJOR);
906 fail_if(ver->minor != EFL_VERSION_MINOR);
907 fail_if(ver->micro != 0);
908 fail_if(ver->revision != 0);
909 fail_if(ver->flavor);
910 fail_if(!eina_streq(ver->build_id, EFL_BUILD_ID));
911
912 ver = efl_app_efl_version_get(loop);
913 fail_if(!ver);
914 fail_if(ver->major != EFL_VERSION_MAJOR);
915 fail_if(ver->minor != EFL_VERSION_MINOR);
916
917 ecore_shutdown();
918}
919END_TEST
920
921void ecore_test_ecore(TCase *tc) 860void ecore_test_ecore(TCase *tc)
922{ 861{
923 tcase_add_test(tc, ecore_test_ecore_init); 862 tcase_add_test(tc, ecore_test_ecore_init);
@@ -940,6 +879,4 @@ void ecore_test_ecore(TCase *tc)
940 tcase_add_test(tc, ecore_test_ecore_main_loop_poller_add_del); 879 tcase_add_test(tc, ecore_test_ecore_main_loop_poller_add_del);
941 tcase_add_test(tc, ecore_test_efl_loop_fd); 880 tcase_add_test(tc, ecore_test_efl_loop_fd);
942 tcase_add_test(tc, ecore_test_efl_loop_fd_lifecycle); 881 tcase_add_test(tc, ecore_test_efl_loop_fd_lifecycle);
943 tcase_add_test(tc, ecore_test_efl_loop_register);
944 tcase_add_test(tc, ecore_test_efl_app_version);
945} 882}