diff options
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp')
| -rw-r--r-- | Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp b/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp index 43f4d4817..58fefea5e 100644 --- a/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp +++ b/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp @@ -25,7 +25,7 @@ #include "config.h" #include "WebViewTest.h" -#include <wtf/glib/GRefPtr.h> +#include <wtf/gobject/GRefPtr.h> #include <wtf/text/WTFString.h> // Name of the test server application creating the webView object. @@ -237,12 +237,12 @@ static void openRemoteDebuggingSession(InspectorServerTest* test, gconstpointer) test->loadURI(resolvedURL.utf8().data()); test->waitUntilLoadFinished(); - javascriptResult = test->runJavaScriptAndWaitUntilFinished("document.title", &error.outPtr()); + javascriptResult = test->runJavaScriptAndWaitUntilFinished("window.document.getElementsByTagName('li')[0].title", &error.outPtr()); g_assert(javascriptResult); g_assert(!error.get()); GUniquePtr<char> title(WebViewTest::javascriptResultToCString(javascriptResult)); - g_assert_cmpstr(title.get(), ==, "127.0.0.1"); + g_assert_cmpstr(title.get(), ==, "http://127.0.0.1:2999/"); } static void sendIncompleteRequest(InspectorServerTest* test, gconstpointer) |
