add test for fullscreen overrides
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Tue, 1 Oct 2013 09:34:20 +0000 (10:34 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Tue, 1 Oct 2013 09:34:20 +0000 (10:34 +0100)
current status: FAIL

src/tests/override_fullscreen.c [new file with mode: 0644]

diff --git a/src/tests/override_fullscreen.c b/src/tests/override_fullscreen.c
new file mode 100644 (file)
index 0000000..331119b
--- /dev/null
@@ -0,0 +1,31 @@
+#include <Ecore_X.h>
+
+static Ecore_X_Window a = 0;
+
+static Eina_Bool
+test_state(void *d EINA_UNUSED)
+{
+   int w, h;
+
+   ecore_x_window_geometry_get(a, NULL, NULL, &w, &h);
+   if ((w == 100) || (h == 100))
+     fprintf(stderr, "FAIL\n");
+   return EINA_FALSE;
+}
+
+int
+main(void)
+{
+   
+
+   ecore_x_init(NULL);
+
+   a = ecore_x_window_override_new(0, 0, 0, 100, 100);
+   ecore_x_window_show(a);
+   ecore_x_netwm_state_request_send(a, 0,
+                                      ECORE_X_WINDOW_STATE_FULLSCREEN, -1, 1);
+   ecore_x_icccm_name_class_set(a, "override_fullscreen", "test");
+   ecore_timer_add(1.0, test_state, NULL);
+   ecore_main_loop_begin();
+   return 0;
+}