Lines Matching defs:fixture

61 static void copy_and_paste_fixture_setup(CopyAndPasteFixture* fixture, gconstpointer data)
63 fixture->loop = g_main_loop_new(NULL, TRUE);
65 fixture->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
66 fixture->webView = WEBKIT_WEB_VIEW(webkit_web_view_new());
68 gtk_container_add(GTK_CONTAINER(fixture->window), GTK_WIDGET(fixture->webView));
71 static void copy_and_paste_fixture_teardown(CopyAndPasteFixture* fixture, gconstpointer data)
73 gtk_widget_destroy(fixture->window);
74 g_main_loop_unref(fixture->loop);
75 test_info_destroy(fixture->info);
80 CopyAndPasteFixture* fixture = (CopyAndPasteFixture*)data;
91 g_assert(text || !fixture->info->expectedContent);
92 g_assert(!text || !strcmp(text, fixture->info->expectedContent));
109 g_main_loop_quit(fixture->loop);
115 CopyAndPasteFixture* fixture = (CopyAndPasteFixture*)data;
116 webkit_web_view_load_string(fixture->webView, fixture->info->page,
121 static void test_copy_and_paste(CopyAndPasteFixture* fixture, gconstpointer data)
123 fixture->info = (TestInfo*)data;
124 g_signal_connect(fixture->window, "map-event",
125 G_CALLBACK(map_event_cb), fixture);
127 gtk_widget_show(fixture->window);
128 gtk_widget_show(GTK_WIDGET(fixture->webView));
129 gtk_window_present(GTK_WINDOW(fixture->window));
131 g_signal_connect(fixture->webView, "notify::load-status",
132 G_CALLBACK(load_status_cb), fixture);
134 g_main_loop_run(fixture->loop);
198 static void test_pasting_markup(CopyAndPasteFixture* fixture, gconstpointer data)
200 fixture->info = (TestInfo*)data;
201 currentFixture = fixture;
212 g_strdup(fixture->info->expectedContent));
216 g_signal_connect(fixture->window, "map-event",
217 G_CALLBACK(map_event_cb), fixture);
218 g_signal_connect(fixture->webView, "window-object-cleared",
219 G_CALLBACK(window_object_cleared_callback), fixture);
221 gtk_widget_show(fixture->window);
222 gtk_widget_show(GTK_WIDGET(fixture->webView));
223 gtk_window_present(GTK_WINDOW(fixture->window));
225 g_main_loop_run(fixture->loop);