summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:47:29 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:47:29 -0400
commit199f8cc631aef7fcd372b046ff53c456c05f7bf3 (patch)
treec84e55a28770ebdcf67d157c17b8282fb75ae722
parent195e0ac05fdf467cea85ce709886936c3053bba6 (diff)
wip
-rw-r--r--imgs/rotation.pngbin0 -> 401194 bytes
-rw-r--r--src/Makefile.mk1
-rw-r--r--src/e_mod_main.c1
-rw-r--r--src/e_mod_main.h1
-rw-r--r--src/rotation.c10
5 files changed, 12 insertions, 1 deletions
diff --git a/imgs/rotation.png b/imgs/rotation.png
new file mode 100644
index 0000000..e600744
--- /dev/null
+++ b/imgs/rotation.png
Binary files differ
diff --git a/src/Makefile.mk b/src/Makefile.mk
index b9abf22..133a84b 100644
--- a/src/Makefile.mk
+++ b/src/Makefile.mk
@@ -44,6 +44,7 @@ src/noshelf_maximize_fullscreen2.c \
44src/noshelf_maximize_fullscreen3.c \ 44src/noshelf_maximize_fullscreen3.c \
45src/noshelf_maximize_fullscreen4.c \ 45src/noshelf_maximize_fullscreen4.c \
46src/rotation.c \ 46src/rotation.c \
47src/rotation2.c \
47src/session_recovery.c \ 48src/session_recovery.c \
48src/session_recovery_fullscreen.c \ 49src/session_recovery_fullscreen.c \
49src/session_recovery_maximize.c \ 50src/session_recovery_maximize.c \
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index afeb730..577b234 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -496,6 +496,7 @@ tests_start()
496 RUN_TEST(noshelf_maximize_fullscreen3); 496 RUN_TEST(noshelf_maximize_fullscreen3);
497 RUN_TEST(noshelf_maximize_fullscreen4); 497 RUN_TEST(noshelf_maximize_fullscreen4);
498 RUN_TEST(rotation); 498 RUN_TEST(rotation);
499 RUN_TEST(rotation2);
499 RUN_TEST(session_recovery); 500 RUN_TEST(session_recovery);
500 RUN_TEST(session_recovery_fullscreen); 501 RUN_TEST(session_recovery_fullscreen);
501 RUN_TEST(session_recovery_maximize); 502 RUN_TEST(session_recovery_maximize);
diff --git a/src/e_mod_main.h b/src/e_mod_main.h
index 110329b..aef6e8c 100644
--- a/src/e_mod_main.h
+++ b/src/e_mod_main.h
@@ -64,6 +64,7 @@ TEST_FN(noshelf_maximize_fullscreen2);
64TEST_FN(noshelf_maximize_fullscreen3); 64TEST_FN(noshelf_maximize_fullscreen3);
65TEST_FN(noshelf_maximize_fullscreen4); 65TEST_FN(noshelf_maximize_fullscreen4);
66TEST_FN(rotation); 66TEST_FN(rotation);
67TEST_FN(rotation2);
67TEST_FN(session_recovery); 68TEST_FN(session_recovery);
68TEST_FN(session_recovery_fullscreen); 69TEST_FN(session_recovery_fullscreen);
69TEST_FN(session_recovery_maximize); 70TEST_FN(session_recovery_maximize);
diff --git a/src/rotation.c b/src/rotation.c
index c6c989c..de8077e 100644
--- a/src/rotation.c
+++ b/src/rotation.c
@@ -1,5 +1,12 @@
1#include "e_mod_main.h" 1#include "e_mod_main.h"
2 2
3static Eina_Bool
4next()
5{
6 TEST(weston_terminal)();
7 return EINA_FALSE;
8}
9
3TEST_FN(rotation) 10TEST_FN(rotation)
4{ 11{
5 E_Screen *scr; 12 E_Screen *scr;
@@ -7,5 +14,6 @@ TEST_FN(rotation)
7 14
8 EINA_LIST_FOREACH(e_xinerama_screens_get(), l, scr) 15 EINA_LIST_FOREACH(e_xinerama_screens_get(), l, scr)
9 scr->rotation = 90; 16 scr->rotation = 90;
10 TEST(weston_terminal)(); 17 ecore_event_add(E_EVENT_RANDR_CHANGE, NULL, NULL);
18 ecore_timer_add(0.5, next, NULL);
11} 19}