forked from AuroraMiddleware/gtk
testsuite: Stop using g_test_bug()
The calls used old bugzilla URLs and nobody cared about that. So apparently they are very unused. There's also a potential conflict between gitlab and bugzilla URLs and what base bug to use there. The old usages have been converted to comments.
This commit is contained in:
parent
4bccd17941
commit
6f6b07aaae
@ -78,7 +78,6 @@ gtk_test_init (int *argcp,
|
||||
g_test_init (argcp, argvp, NULL);
|
||||
gtk_disable_setlocale();
|
||||
setlocale (LC_ALL, "en_US.UTF-8");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
/* XSendEvent() doesn't work yet on XI2 events.
|
||||
* So at the moment gdk_test_simulate_* can only
|
||||
|
@ -27,7 +27,7 @@ test_popover_parent (void)
|
||||
GtkWidget *p;
|
||||
AtkObject *a;
|
||||
|
||||
g_test_bug ("733923");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=733923 */
|
||||
|
||||
w = gtk_entry_new ();
|
||||
|
||||
@ -50,8 +50,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
g_test_add_func ("/popover/accessible-parent", test_popover_parent);
|
||||
|
||||
return g_test_run ();
|
||||
|
@ -1064,7 +1064,7 @@ test_bold_label (void)
|
||||
AtkObject *atk_obj;
|
||||
gchar *text;
|
||||
|
||||
g_test_bug ("126797");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=126797 */
|
||||
|
||||
label = gtk_label_new ("<b>Bold?</b>");
|
||||
g_object_ref_sink (label);
|
||||
@ -1089,8 +1089,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
g_test_add_func ("/text/bold/GtkLabel", test_bold_label);
|
||||
|
||||
add_text_tests (gtk_label_new (""));
|
||||
|
@ -119,8 +119,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
add_value_tests (gtk_spin_button_new_with_range (0, 100, 1));
|
||||
add_value_tests (gtk_level_bar_new_for_interval (0, 100));
|
||||
|
||||
|
@ -181,8 +181,6 @@ main (int argc, char *argv[])
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org");
|
||||
|
||||
enum_class = g_type_class_ref (GDK_TYPE_MEMORY_FORMAT);
|
||||
|
||||
for (format = 0; format < GDK_MEMORY_N_FORMATS; format++)
|
||||
|
@ -72,8 +72,6 @@ main (int argc, char *argv[])
|
||||
|
||||
gtk_init ();
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
g_test_add_func ("/rectangle/equal", test_rectangle_equal);
|
||||
g_test_add_func ("/rectangle/intersect", test_rectangle_intersect);
|
||||
g_test_add_func ("/rectangle/union", test_rectangle_union);
|
||||
|
@ -121,7 +121,7 @@ test_color_parse_nonsense (void)
|
||||
GdkRGBA color;
|
||||
gboolean res;
|
||||
|
||||
g_test_bug ("667485");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=667485 */
|
||||
|
||||
res = gdk_rgba_parse (&color, "rgb(,,)");
|
||||
g_assert (!res);
|
||||
@ -153,8 +153,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org");
|
||||
|
||||
g_test_add_func ("/rgba/parse", test_color_parse);
|
||||
g_test_add_func ("/rgba/parse/nonsense", test_color_parse_nonsense);
|
||||
g_test_add_func ("/rgba/to-string", test_color_to_string);
|
||||
|
@ -111,8 +111,6 @@ main (int argc, char *argv[])
|
||||
|
||||
gtk_init ();
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
g_test_add_func ("/seat/list", test_list_seats);
|
||||
g_test_add_func ("/seat/default", test_default_seat);
|
||||
|
||||
|
@ -454,7 +454,6 @@ main (int argc, char *argv[])
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
create_masks ();
|
||||
|
||||
|
@ -745,7 +745,6 @@ int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
gtk_test_init (&argc, &argv);
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
gtk_test_register_all_types();
|
||||
|
||||
g_test_add_func ("/tests/iconview-new", test_iconview_new);
|
||||
|
@ -311,7 +311,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -5727,7 +5727,7 @@ specific_bug_301558 (void)
|
||||
int i;
|
||||
gboolean add;
|
||||
|
||||
g_test_bug ("301558");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=301558 */
|
||||
|
||||
tree = gtk_tree_store_new (2, G_TYPE_INT, G_TYPE_BOOLEAN);
|
||||
gtk_tree_store_append (tree, &iter, NULL);
|
||||
@ -5803,7 +5803,7 @@ specific_bug_311955 (void)
|
||||
int n;
|
||||
GtkTreePath *path;
|
||||
|
||||
g_test_bug ("311955");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=311955 */
|
||||
|
||||
store = gtk_tree_store_new (1, G_TYPE_INT);
|
||||
|
||||
@ -5972,7 +5972,7 @@ specific_bug_346800 (void)
|
||||
store = gtk_tree_store_newv (2, columns);
|
||||
model = GTK_TREE_MODEL (store);
|
||||
|
||||
g_test_bug ("346800");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=346800 */
|
||||
|
||||
filter = GTK_TREE_MODEL_FILTER (gtk_tree_model_filter_new (model, NULL));
|
||||
gtk_tree_model_filter_set_visible_column (filter, 1);
|
||||
@ -6031,7 +6031,7 @@ specific_bug_464173 (void)
|
||||
GtkWidget *view G_GNUC_UNUSED;
|
||||
gboolean visible = TRUE;
|
||||
|
||||
g_test_bug ("464173");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=464173 */
|
||||
|
||||
model = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
gtk_tree_store_append (model, &iter1, NULL);
|
||||
@ -6075,7 +6075,7 @@ specific_bug_540201 (void)
|
||||
|
||||
GtkWidget *tree_view G_GNUC_UNUSED;
|
||||
|
||||
g_test_bug ("540201");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=540201 */
|
||||
|
||||
store = gtk_tree_store_new (1, G_TYPE_INT);
|
||||
|
||||
@ -6128,7 +6128,7 @@ specific_bug_549287 (void)
|
||||
GtkTreeIter iter;
|
||||
GtkTreeIter *swap, *parent, *child;
|
||||
|
||||
g_test_bug ("529287");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=529287 */
|
||||
|
||||
store = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
filtered = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
|
||||
@ -6227,7 +6227,7 @@ specific_bug_621076 (void)
|
||||
GtkTreeIter item_iter;
|
||||
SignalMonitor *monitor;
|
||||
|
||||
g_test_bug ("621076");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=621076 */
|
||||
|
||||
store = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
filter = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
|
||||
|
@ -356,7 +356,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -22,7 +22,6 @@ main (int argc, char *argv[])
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
gtk_disable_setlocale();
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
g_test_add_func ("/main/init", test_init);
|
||||
|
||||
|
@ -286,7 +286,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -49,7 +49,6 @@ main (int argc,
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
g_setenv ("GTK_MODULES", "", TRUE);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
|
||||
g_test_add_func ("/no_gtk_init/gdk_cairo_set_source_pixbuf", test_gdk_cairo_set_source_pixbuf);
|
||||
|
@ -292,7 +292,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
g_test_add_func ("/rbtree/crash", test_crash);
|
||||
g_test_add_func ("/rbtree/crash2", test_crash2);
|
||||
|
@ -514,7 +514,6 @@ main (int argc,
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
g_test_add_func ("/rbtree/create", test_create);
|
||||
g_test_add_func ("/rbtree/insert_after", test_insert_after);
|
||||
|
@ -647,7 +647,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -324,7 +324,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -385,7 +385,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -1040,7 +1040,7 @@ specific_bug_300089 (void)
|
||||
GtkTreePath *path;
|
||||
GtkTreeIter iter, iter2, sort_iter;
|
||||
|
||||
g_test_bug ("300089");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=300089 */
|
||||
|
||||
child_model = GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_STRING));
|
||||
|
||||
@ -1084,7 +1084,7 @@ specific_bug_364946 (void)
|
||||
GtkTreeIter a, aa, aaa, aab, iter;
|
||||
GtkTreeModel *s_model;
|
||||
|
||||
g_test_bug ("364946");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=364946 */
|
||||
|
||||
store = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
|
||||
@ -1187,7 +1187,7 @@ specific_bug_698846 (void)
|
||||
GtkTreeIter iter;
|
||||
guint count = 0;
|
||||
|
||||
g_test_bug ("698846");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=698846 */
|
||||
|
||||
store = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
sorted = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (store));
|
||||
@ -1228,7 +1228,7 @@ sort_column_change (void)
|
||||
GtkSortType order;
|
||||
gboolean ret;
|
||||
|
||||
g_test_bug ("792459");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=792459 */
|
||||
|
||||
store = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
sorted = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (store));
|
||||
|
@ -254,7 +254,6 @@ main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
setlocale (LC_ALL, "C");
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
|
||||
|
||||
number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
|
||||
changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
|
||||
|
@ -25,8 +25,6 @@ main (int argc,
|
||||
{
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
register_list_store_tests ();
|
||||
register_tree_store_tests ();
|
||||
register_model_ref_count_tests ();
|
||||
|
@ -1026,7 +1026,7 @@ specific_bug_77977 (void)
|
||||
|
||||
/* Stripped down version of test case for bug 77977 by Damon Chaplin */
|
||||
|
||||
g_test_bug ("77977");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=77977 */
|
||||
|
||||
tree_store = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
|
||||
@ -1064,7 +1064,7 @@ specific_bug_698396 (void)
|
||||
GtkTreeStore *tree_store;
|
||||
gint new_order[1] = { 0 };
|
||||
|
||||
g_test_bug ("698396");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=698396 */
|
||||
|
||||
tree_store = gtk_tree_store_new (1, G_TYPE_STRING);
|
||||
|
||||
|
@ -26,7 +26,7 @@ test_bug_546005 (void)
|
||||
GtkListStore *list_store;
|
||||
GtkWidget *view;
|
||||
|
||||
g_test_bug ("546005");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=546005 */
|
||||
|
||||
/* Tests provided by Bjorn Lindqvist, Paul Pogonyshev */
|
||||
view = gtk_tree_view_new ();
|
||||
@ -78,7 +78,7 @@ test_bug_539377 (void)
|
||||
GtkTreePath *path;
|
||||
GtkListStore *list_store;
|
||||
|
||||
g_test_bug ("539377");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=539377 */
|
||||
|
||||
/* Test provided by Bjorn Lindqvist */
|
||||
|
||||
@ -236,7 +236,7 @@ test_selection_count (void)
|
||||
GtkTreeSelection *selection;
|
||||
GtkWidget *view;
|
||||
|
||||
g_test_bug ("702957");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=702957 */
|
||||
|
||||
list_store = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list_store));
|
||||
@ -299,7 +299,7 @@ test_selection_empty (void)
|
||||
GtkWidget *view;
|
||||
GtkTreeIter iter;
|
||||
|
||||
g_test_bug ("712760");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=712760 */
|
||||
|
||||
list_store = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list_store));
|
||||
@ -340,7 +340,6 @@ main (int argc,
|
||||
char **argv)
|
||||
{
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
g_test_add_func ("/TreeView/cursor/bug-546005", test_bug_546005);
|
||||
g_test_add_func ("/TreeView/cursor/bug-539377", test_bug_539377);
|
||||
|
@ -218,7 +218,7 @@ test_show_hide (void)
|
||||
GtkWidget *window;
|
||||
gint w, h, w1, h1;
|
||||
|
||||
g_test_bug ("696882");
|
||||
/*http://bugzilla.gnome.org/show_bug.cgi?id=696882 */
|
||||
|
||||
/* test that hide/show does not affect the size */
|
||||
|
||||
@ -258,7 +258,6 @@ main (int argc, char *argv[])
|
||||
gint i;
|
||||
|
||||
gtk_test_init (&argc, &argv);
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/");
|
||||
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user