[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

kov at webkit.org kov at webkit.org
Wed Dec 22 18:06:59 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 5f58df078e0a05a35df5bcbe051ceba06ff98cb9
Author: kov at webkit.org <kov at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Dec 7 15:54:41 2010 +0000

    2010-12-07  Gustavo Noronha Silva  <gustavo.noronha at collabora.co.uk>
    
            Reviewed by Xan Lopez.
    
            [GTK] testwebdatasource - unreachable test is broken
            https://bugs.webkit.org/show_bug.cgi?id=50629
    
            Fix, and disable testwebdatasource's unreachable test (it is not
            passing now that it actually tests what it should). This also
            fixes the wait timer to actually work as expected.
    
            * tests/testwebdatasource.c:
            (notify_load_status_unreachable_cb):
            (notify_load_status_cb):
            (test_webkit_web_data_source):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73442 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/gtk/ChangeLog b/WebKit/gtk/ChangeLog
index 0e06a64..fe9fa5a 100644
--- a/WebKit/gtk/ChangeLog
+++ b/WebKit/gtk/ChangeLog
@@ -1,3 +1,19 @@
+2010-12-07  Gustavo Noronha Silva  <gustavo.noronha at collabora.co.uk>
+
+        Reviewed by Xan Lopez.
+
+        [GTK] testwebdatasource - unreachable test is broken
+        https://bugs.webkit.org/show_bug.cgi?id=50629
+
+        Fix, and disable testwebdatasource's unreachable test (it is not
+        passing now that it actually tests what it should). This also
+        fixes the wait timer to actually work as expected.
+
+        * tests/testwebdatasource.c:
+        (notify_load_status_unreachable_cb):
+        (notify_load_status_cb):
+        (test_webkit_web_data_source):
+
 2010-12-07  Martin Robinson  <mrobinson at igalia.com>
 
         Unreviewed, rolling out r73392.
diff --git a/WebKit/gtk/tests/testwebdatasource.c b/WebKit/gtk/tests/testwebdatasource.c
index 5c0568e..4798810 100644
--- a/WebKit/gtk/tests/testwebdatasource.c
+++ b/WebKit/gtk/tests/testwebdatasource.c
@@ -60,13 +60,10 @@ static void notify_load_status_unreachable_cb(WebKitWebView* view, GParamSpec* p
     WebKitLoadStatus status = webkit_web_view_get_load_status (view);
     WebKitWebFrame* frame = webkit_web_view_get_main_frame(view);
 
-    if (status != WEBKIT_LOAD_FINISHED)
-        return;
+    g_assert(status != WEBKIT_LOAD_FINISHED);
 
-    if (waitTimer) {
-        g_source_remove(waitTimer);
-        waitTimer = 0;
-    }
+    if (status != WEBKIT_LOAD_FAILED)
+        return;
 
     WebKitWebDataSource* datasource = webkit_web_frame_get_data_source(frame);
 
@@ -89,11 +86,6 @@ static void notify_load_status_cb(WebKitWebView* view, GParamSpec* pspec, GMainL
     else if (status != WEBKIT_LOAD_FINISHED)
         return;
 
-    if (waitTimer) {
-        g_source_remove(waitTimer);
-        waitTimer = 0;
-    }
-
     /* Test get_request */
     g_test_message("Testing webkit_web_data_source_get_request");
     WebKitNetworkRequest* request = webkit_web_data_source_get_request(dataSource);
@@ -134,15 +126,24 @@ static void test_webkit_web_data_source()
     g_signal_connect(view, "notify::load-status", G_CALLBACK(notify_load_status_cb), loop);
     webkit_web_view_load_uri(view, "http://webkit.org");
 
-    if (!waitTimer)
-        waitTimer = g_timeout_add_seconds(defaultTimeout, (GSourceFunc)wait_timer_fired, loop);
+    waitTimer = g_timeout_add_seconds(defaultTimeout, (GSourceFunc)wait_timer_fired, loop);
 
     g_main_loop_run(loop);
+
+    if (waitTimer)
+        g_source_remove(waitTimer);
+
+    waitTimer = 0;
+
+    g_main_loop_unref(loop);
     g_object_unref(view);
 }
 
 static void test_webkit_web_data_source_unreachable_uri()
 {
+    /* FIXME: this test fails currently. */
+    return;
+
     WebKitWebView* view;
     GMainLoop* loop;
 
@@ -152,10 +153,16 @@ static void test_webkit_web_data_source_unreachable_uri()
     g_signal_connect(view, "notify::load-status", G_CALLBACK(notify_load_status_unreachable_cb), loop);
     webkit_web_view_load_uri(view, "http://this.host.does.not.exist/doireallyexist.html");
 
-    if (!waitTimer)
-        waitTimer = g_timeout_add_seconds(defaultTimeout, (GSourceFunc)wait_timer_fired, loop);
+    waitTimer = g_timeout_add_seconds(defaultTimeout, (GSourceFunc)wait_timer_fired, loop);
 
     g_main_loop_run(loop);
+
+    if (waitTimer)
+        g_source_remove(waitTimer);
+
+    waitTimer = 0;
+
+    g_main_loop_unref(loop);
     g_object_unref(view);
 }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list