Home | History | Annotate | Download | only in tests

Lines Matching full:list

100   GList *list;
113 list = g_app_info_get_all_for_type ("application/x-test");
114 g_assert (g_list_length (list) == 2);
116 /* check that both are in the list, info2 before info1 */
117 info = (GAppInfo *)list->data;
120 info = (GAppInfo *)list->next->data;
123 g_list_foreach (list, (GFunc)g_object_unref, NULL);
124 g_list_free (list);
130 list = g_app_info_get_all_for_type ("application/x-test");
131 g_assert (g_list_length (list) == 3);
133 /* check that all are in the list, info2, info1, info3 */
134 info = (GAppInfo *)list->data;
137 info = (GAppInfo *)list->next->data;
140 info = (GAppInfo *)list->next->next->data;
143 g_list_foreach (list, (GFunc)g_object_unref, NULL);
144 g_list_free (list);
150 list = g_app_info_get_all_for_type ("application/x-test");
151 g_assert (g_list_length (list) == 2);
153 /* check that both are in the list, info2 before info3 */
154 info = (GAppInfo *)list->data;
157 info = (GAppInfo *)list->next->data;
160 g_list_foreach (list, (GFunc)g_object_unref, NULL);
161 g_list_free (list);
166 list = g_app_info_get_all_for_type ("application/x-test");
167 g_assert (list == NULL);