app/tests: use gtk_test_widget_send_key instead of gdk_test_simulate_key
Two tests were consistently timing out before this change: save-and-export and ui. The gdk_test_simulate_key documentation mentions that gtk_test_widget_send_key is the right approach for most testing purposes. With this change, save-and-export started working for me, whereas ui now fails properly - investigating this failure was the original point of the change.
This commit is contained in:
parent
bec457d126
commit
75a19577e5
1 changed files with 3 additions and 10 deletions
|
|
@ -284,16 +284,9 @@ else
|
|||
}
|
||||
|
||||
#else /* ! GDK_WINDOWING_QUARTZ */
|
||||
gdk_test_simulate_key (gtk_widget_get_window (widget),
|
||||
-1, -1, /*x, y*/
|
||||
keyval,
|
||||
0 /*modifiers*/,
|
||||
GDK_KEY_PRESS);
|
||||
gdk_test_simulate_key (gtk_widget_get_window (widget),
|
||||
-1, -1, /*x, y*/
|
||||
keyval,
|
||||
0 /*modifiers*/,
|
||||
GDK_KEY_RELEASE);
|
||||
|
||||
gtk_test_widget_send_key(widget, keyval, 0);
|
||||
|
||||
#endif /* ! GDK_WINDOWING_QUARTZ */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue