浏览代码

testautomation: create no window, so that testautomation_mouse.c::mouse_getMouseFocus() pass
(more precisely, the last test, when the window is destroyed, focus window should report null)

Sylvain 2 年之前
父节点
当前提交
5976b79c1c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/testautomation.c

+ 3 - 0
test/testautomation.c

@@ -72,6 +72,9 @@ int main(int argc, char *argv[])
         return 1;
     }
 
+    /* No need of windows (or update testautomation_mouse.c:mouse_getMouseFocus() */
+    state->num_windows = 0;
+
     /* Parse commandline */
     for (i = 1; i < argc;) {
         int consumed;