testutils: Deprecate a bunch of ugly functions
We've by now disabled and then remved all of the tests that use these functions because they never worked properly. So let's depecate these functions before somebody starts using them.
This commit is contained in:
parent
61db7da2ef
commit
2a6e1498ba
@ -219,6 +219,8 @@ gtk_test_widget_send_key (GtkWidget *widget,
|
|||||||
* Returns: whether all actions neccessary for the button click simulation were carried out successfully.
|
* Returns: whether all actions neccessary for the button click simulation were carried out successfully.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_test_widget_click (GtkWidget *widget,
|
gtk_test_widget_click (GtkWidget *widget,
|
||||||
@ -250,6 +252,8 @@ gtk_test_widget_click (GtkWidget *widget,
|
|||||||
* Returns: whether all actions neccessary for the button click simulation were carried out successfully.
|
* Returns: whether all actions neccessary for the button click simulation were carried out successfully.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_test_spin_button_click (GtkSpinButton *spinner,
|
gtk_test_spin_button_click (GtkSpinButton *spinner,
|
||||||
@ -464,6 +468,8 @@ gtk_test_find_widget (GtkWidget *widget,
|
|||||||
* @percentage argument.
|
* @percentage argument.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_test_slider_set_perc (GtkWidget *widget,
|
gtk_test_slider_set_perc (GtkWidget *widget,
|
||||||
@ -496,6 +502,8 @@ gtk_test_slider_set_perc (GtkWidget *widget,
|
|||||||
* Returns: gtk_adjustment_get_value (adjustment) for an adjustment belonging to @widget.
|
* Returns: gtk_adjustment_get_value (adjustment) for an adjustment belonging to @widget.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
double
|
double
|
||||||
gtk_test_slider_get_value (GtkWidget *widget)
|
gtk_test_slider_get_value (GtkWidget *widget)
|
||||||
@ -517,6 +525,8 @@ gtk_test_slider_get_value (GtkWidget *widget)
|
|||||||
* GtkEditable (entry and text widgets) or GtkTextView.
|
* GtkEditable (entry and text widgets) or GtkTextView.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_test_text_set (GtkWidget *widget,
|
gtk_test_text_set (GtkWidget *widget,
|
||||||
@ -547,6 +557,8 @@ gtk_test_text_set (GtkWidget *widget,
|
|||||||
* Returns: new 0-terminated C string, needs to be released with g_free().
|
* Returns: new 0-terminated C string, needs to be released with g_free().
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
gchar*
|
gchar*
|
||||||
gtk_test_text_get (GtkWidget *widget)
|
gtk_test_text_get (GtkWidget *widget)
|
||||||
@ -583,6 +595,8 @@ gtk_test_text_get (GtkWidget *widget)
|
|||||||
* Returns: (transfer none): a newly created widget.
|
* Returns: (transfer none): a newly created widget.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
*/
|
*/
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_test_create_widget (GType widget_type,
|
gtk_test_create_widget (GType widget_type,
|
||||||
@ -641,6 +655,8 @@ test_increment_intp (int *intp)
|
|||||||
* Returns: (transfer full): a widget pointer to the newly created GtkWindow.
|
* Returns: (transfer full): a widget pointer to the newly created GtkWindow.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_test_display_button_window (const gchar *window_title,
|
gtk_test_display_button_window (const gchar *window_title,
|
||||||
@ -683,6 +699,8 @@ gtk_test_display_button_window (const gchar *window_title,
|
|||||||
* Returns: (transfer none): a widget pointer to the newly created GtkWindow.
|
* Returns: (transfer none): a widget pointer to the newly created GtkWindow.
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
|
*
|
||||||
|
* Deprecated: 3.20: This testing infrastructure is phased out in favor of reftests.
|
||||||
**/
|
**/
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_test_create_simple_window (const gchar *window_title,
|
gtk_test_create_simple_window (const gchar *window_title,
|
||||||
|
@ -41,29 +41,29 @@ GDK_AVAILABLE_IN_ALL
|
|||||||
GtkWidget* gtk_test_find_widget (GtkWidget *widget,
|
GtkWidget* gtk_test_find_widget (GtkWidget *widget,
|
||||||
const gchar *label_pattern,
|
const gchar *label_pattern,
|
||||||
GType widget_type);
|
GType widget_type);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
GtkWidget* gtk_test_create_widget (GType widget_type,
|
GtkWidget* gtk_test_create_widget (GType widget_type,
|
||||||
const gchar *first_property_name,
|
const gchar *first_property_name,
|
||||||
...);
|
...);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
GtkWidget* gtk_test_create_simple_window (const gchar *window_title,
|
GtkWidget* gtk_test_create_simple_window (const gchar *window_title,
|
||||||
const gchar *dialog_text);
|
const gchar *dialog_text);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
GtkWidget* gtk_test_display_button_window (const gchar *window_title,
|
GtkWidget* gtk_test_display_button_window (const gchar *window_title,
|
||||||
const gchar *dialog_text,
|
const gchar *dialog_text,
|
||||||
...); /* NULL terminated list of (label, &int) pairs */
|
...); /* NULL terminated list of (label, &int) pairs */
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
void gtk_test_slider_set_perc (GtkWidget *widget, /* GtkRange-alike */
|
void gtk_test_slider_set_perc (GtkWidget *widget, /* GtkRange-alike */
|
||||||
double percentage);
|
double percentage);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
double gtk_test_slider_get_value (GtkWidget *widget);
|
double gtk_test_slider_get_value (GtkWidget *widget);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
gboolean gtk_test_spin_button_click (GtkSpinButton *spinner,
|
gboolean gtk_test_spin_button_click (GtkSpinButton *spinner,
|
||||||
guint button,
|
guint button,
|
||||||
gboolean upwards);
|
gboolean upwards);
|
||||||
GDK_AVAILABLE_IN_3_10
|
GDK_AVAILABLE_IN_3_10
|
||||||
void gtk_test_widget_wait_for_draw (GtkWidget *widget);
|
void gtk_test_widget_wait_for_draw (GtkWidget *widget);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
gboolean gtk_test_widget_click (GtkWidget *widget,
|
gboolean gtk_test_widget_click (GtkWidget *widget,
|
||||||
guint button,
|
guint button,
|
||||||
GdkModifierType modifiers);
|
GdkModifierType modifiers);
|
||||||
@ -72,10 +72,10 @@ gboolean gtk_test_widget_send_key (GtkWidget *widget,
|
|||||||
guint keyval,
|
guint keyval,
|
||||||
GdkModifierType modifiers);
|
GdkModifierType modifiers);
|
||||||
/* operate on GtkEntry, GtkText, GtkTextView or GtkLabel */
|
/* operate on GtkEntry, GtkText, GtkTextView or GtkLabel */
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
void gtk_test_text_set (GtkWidget *widget,
|
void gtk_test_text_set (GtkWidget *widget,
|
||||||
const gchar *string);
|
const gchar *string);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_DEPRECATED_IN_3_20
|
||||||
gchar* gtk_test_text_get (GtkWidget *widget);
|
gchar* gtk_test_text_get (GtkWidget *widget);
|
||||||
|
|
||||||
/* --- Gtk+ Test low-level API --- */
|
/* --- Gtk+ Test low-level API --- */
|
||||||
|
Loading…
Reference in New Issue
Block a user