Unreviewed. Fix several GTK+ unit tests.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jun 2012 11:29:20 +0000 (11:29 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jun 2012 11:29:20 +0000 (11:29 +0000)
GTK+ unit tests using WebViewTest::wait() started to fail due to a
bug introduced in r121093.

* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::wait): Use this instead of m_mainLoop as user data
for the idle callback.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121094 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.cpp

index 45643a0..33491b3 100644 (file)
@@ -1,5 +1,16 @@
 2012-06-23  Carlos Garcia Campos  <cgarcia@igalia.com>
 
+        Unreviewed. Fix several GTK+ unit tests.
+
+        GTK+ unit tests using WebViewTest::wait() started to fail due to a
+        bug introduced in r121093.
+
+        * UIProcess/API/gtk/tests/WebViewTest.cpp:
+        (WebViewTest::wait): Use this instead of m_mainLoop as user data
+        for the idle callback.
+
+2012-06-23  Carlos Garcia Campos  <cgarcia@igalia.com>
+
         [GTK] Add ContextMenu API to WebKit2 GTK+ API
         https://bugs.webkit.org/show_bug.cgi?id=81011
 
index 665efc4..321b6a3 100644 (file)
@@ -126,7 +126,7 @@ static gboolean quitMainLoopIdleCallback(WebViewTest* test)
 
 void WebViewTest::wait(double seconds)
 {
-    g_timeout_add_seconds(seconds, reinterpret_cast<GSourceFunc>(quitMainLoopIdleCallback), m_mainLoop);
+    g_timeout_add_seconds(seconds, reinterpret_cast<GSourceFunc>(quitMainLoopIdleCallback), this);
     g_main_loop_run(m_mainLoop);
 }