Home | History | Annotate | Download | only in tests

Lines Matching refs:currentItem

30     WebKitWebHistoryItem* currentItem;
71 currentItem = webkit_web_back_forward_list_get_current_item(backForwardList);
72 g_object_ref(currentItem);
73 g_assert_cmpint(G_OBJECT(currentItem)->ref_count, ==, 2);
74 g_object_unref(currentItem);
75 g_assert_cmpint(G_OBJECT(currentItem)->ref_count, ==, 1);
116 WebKitWebHistoryItem* currentItem;
160 currentItem = WEBKIT_WEB_HISTORY_ITEM(backList->data);
161 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/3/");
162 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 3");
165 currentItem = WEBKIT_WEB_HISTORY_ITEM(backList->data);
166 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/2/");
167 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 2");
170 currentItem = WEBKIT_WEB_HISTORY_ITEM(backList->data);
171 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/1/");
172 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 1");
180 currentItem = WEBKIT_WEB_HISTORY_ITEM(forwardList->data);
181 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/4/");
182 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 4");
185 currentItem = WEBKIT_WEB_HISTORY_ITEM(forwardList->data);
186 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/3/");
187 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 3");
190 currentItem = WEBKIT_WEB_HISTORY_ITEM(forwardList->data);
191 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/2/");
192 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Site 2");
205 WebKitWebHistoryItem* currentItem;
229 currentItem = webkit_web_back_forward_list_get_current_item(webBackForwardList);
230 g_assert(currentItem);
235 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/");
236 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Added site");
245 currentItem = webkit_web_back_forward_list_get_current_item(webBackForwardList);
246 g_assert(currentItem);
251 g_assert_cmpstr(webkit_web_history_item_get_uri(currentItem), ==, "http://example.com/2/");
252 g_assert_cmpstr(webkit_web_history_item_get_title(currentItem), ==, "Added site 2");