<div>Hi all,</div><div>I want to know how the browser work, so I try to compile and run the file AccessibilityTestServer.cpp.</div><div>But I don't know how to build this file, is there any notes on how to use the test files?</div><div><br></div><div>This file location is &nbsp;/Tools/TestWebKitAPI/Tests/WebKit2Gtk/AccessibilityTestServer.cpp.</div><div><br></div><div>The content of this file is this:</div><div><div>#include "config.h"</div><div><br></div><div>#include &lt;gtk/gtk.h&gt;</div><div>#include &lt;webkit2/webkit2.h&gt;</div><div><br></div><div>static void loadChangedCallback(WebKitWebView*, WebKitLoadEvent loadEvent, gpointer)</div><div>{</div><div>&nbsp; &nbsp; // Send a message to the parent process when we're ready.</div><div>&nbsp; &nbsp; if (loadEvent == WEBKIT_LOAD_FINISHED)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; g_print("OK");</div><div>}</div><div><br></div><div>int main(int argc, char** argv)</div><div>{</div><div>&nbsp; &nbsp; // Make sure that the ATK bridge is loaded.</div><div>&nbsp; &nbsp; g_setenv("GTK_MODULES", "atk-bridge", TRUE);</div><div><br></div><div>&nbsp; &nbsp; gtk_init(&amp;argc, &amp;argv);</div><div><br></div><div>&nbsp; &nbsp; WebKitWebView* webView = WEBKIT_WEB_VIEW(webkit_web_view_new());</div><div>&nbsp; &nbsp; webkit_web_view_load_html(webView,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "&lt;html&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; " &nbsp;&lt;body&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; " &nbsp; &lt;h1&gt;This is a test&lt;/h1&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; " &nbsp; &lt;p&gt;This is a paragraph with some plain text.&lt;/p&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; " &nbsp; &lt;p&gt;This paragraph contains &lt;a href=\"http://www.webkitgtk.org\"&gt;a link&lt;/a&gt; in the middle.&lt;/p&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; " &nbsp;&lt;/body&gt;"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "&lt;/html&gt;",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 0);</div><div><br></div><div>&nbsp; &nbsp; GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);</div><div>&nbsp; &nbsp; gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(webView));</div><div>&nbsp; &nbsp; gtk_widget_show_all(window);</div><div><br></div><div>&nbsp; &nbsp; g_signal_connect(window, "delete-event", G_CALLBACK(gtk_main_quit), 0);</div><div>&nbsp; &nbsp; g_signal_connect(webView, "load-changed", G_CALLBACK(loadChangedCallback), 0);</div><div><br></div><div>&nbsp; &nbsp; gtk_main();</div><div>}</div></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;">Xiaoxu Lian Á®ÏþÐñ<div>tel:18601749056</div><div>xiaoxulian@qq.com</div></div></div><div>&nbsp;</div>