Title: [130662] trunk
Revision
130662
Author
[email protected]
Date
2012-10-08 11:40:58 -0700 (Mon, 08 Oct 2012)

Log Message

[WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
https://bugs.webkit.org/show_bug.cgi?id=98638

Patch by Sudarsana Nagineni <[email protected]> on 2012-10-08
Reviewed by Eric Seidel.

Source/WebKit2:

Add implementation for testRunner.dispatchPendingLoadRequests in
WebKitTestRunner.

* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleDispatchPendingLoadRequests):
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::dispatchPendingLoadRequests):
(WebKit):
* WebProcess/InjectedBundle/InjectedBundle.h:
(InjectedBundle):

Tools:

Add implementation for testRunner.dispatchPendingLoadRequests in
WebKitTestRunner.

* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::dispatchPendingLoadRequests):
(WTR):
* WebKitTestRunner/InjectedBundle/TestRunner.h:
(TestRunner):

LayoutTests:

Unskip http/tests/loading/deleted-host-in-resource-load-delegate-callback.html

* platform/wk2/TestExpectations:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (130661 => 130662)


--- trunk/LayoutTests/ChangeLog	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/LayoutTests/ChangeLog	2012-10-08 18:40:58 UTC (rev 130662)
@@ -1,3 +1,14 @@
+2012-10-08  Sudarsana Nagineni  <[email protected]>
+
+        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
+        https://bugs.webkit.org/show_bug.cgi?id=98638
+
+        Reviewed by Eric Seidel.
+
+        Unskip http/tests/loading/deleted-host-in-resource-load-delegate-callback.html
+
+        * platform/wk2/TestExpectations:
+
 2012-10-08  Raphael Kubo da Costa  <[email protected]>
 
         [EFL] Skip http/tests/multipart/multipart-html.php while we wait for kov's patch.

Modified: trunk/LayoutTests/platform/wk2/TestExpectations (130661 => 130662)


--- trunk/LayoutTests/platform/wk2/TestExpectations	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/LayoutTests/platform/wk2/TestExpectations	2012-10-08 18:40:58 UTC (rev 130662)
@@ -809,9 +809,6 @@
 # WebFrameLoaderClient::canHandleRequest() has to be implemented.
 http/tests/misc/redirect-to-external-url.html
 
-# WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
-http/tests/loading/deleted-host-in-resource-load-delegate-callback.html
-
 ### END OF (2) Classified failures without bug reports (yet)
 ########################################
 

Modified: trunk/Source/WebKit2/ChangeLog (130661 => 130662)


--- trunk/Source/WebKit2/ChangeLog	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Source/WebKit2/ChangeLog	2012-10-08 18:40:58 UTC (rev 130662)
@@ -1,3 +1,22 @@
+2012-10-08  Sudarsana Nagineni  <[email protected]>
+
+        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
+        https://bugs.webkit.org/show_bug.cgi?id=98638
+
+        Reviewed by Eric Seidel.
+
+        Add implementation for testRunner.dispatchPendingLoadRequests in
+        WebKitTestRunner.
+
+        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
+        (WKBundleDispatchPendingLoadRequests):
+        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::dispatchPendingLoadRequests):
+        (WebKit):
+        * WebProcess/InjectedBundle/InjectedBundle.h:
+        (InjectedBundle):
+
 2012-10-08  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Add a setting to enable/disable smooth scrolling to WebKit2 GTK+ API

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp (130661 => 130662)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp	2012-10-08 18:40:58 UTC (rev 130662)
@@ -328,3 +328,8 @@
 {
     toImpl(bundleRef)->setSerialLoadingEnabled(enabled);
 }
+
+void WKBundleDispatchPendingLoadRequests(WKBundleRef bundleRef)
+{
+    toImpl(bundleRef)->dispatchPendingLoadRequests();
+}

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h (130661 => 130662)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h	2012-10-08 18:40:58 UTC (rev 130662)
@@ -114,6 +114,7 @@
 
 WK_EXPORT void WKBundleSetTabKeyCyclesThroughElements(WKBundleRef bundle, WKBundlePageRef page, bool enabled);
 WK_EXPORT void WKBundleSetSerialLoadingEnabled(WKBundleRef bundle, bool enabled);
+WK_EXPORT void WKBundleDispatchPendingLoadRequests(WKBundleRef bundle);
 
 #ifdef __cplusplus
 }

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (130661 => 130662)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp	2012-10-08 18:40:58 UTC (rev 130662)
@@ -652,4 +652,9 @@
     resourceLoadScheduler()->setSerialLoadingEnabled(enabled);
 }
 
+void InjectedBundle::dispatchPendingLoadRequests()
+{
+    resourceLoadScheduler()->servePendingRequests();
+}
+
 } // namespace WebKit

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h (130661 => 130662)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h	2012-10-08 18:40:58 UTC (rev 130662)
@@ -180,6 +180,7 @@
 
     void setTabKeyCyclesThroughElements(WebPage*, bool enabled);
     void setSerialLoadingEnabled(bool);
+    void dispatchPendingLoadRequests();
 
 private:
     explicit InjectedBundle(const String&);

Modified: trunk/Tools/ChangeLog (130661 => 130662)


--- trunk/Tools/ChangeLog	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Tools/ChangeLog	2012-10-08 18:40:58 UTC (rev 130662)
@@ -1,3 +1,20 @@
+2012-10-08  Sudarsana Nagineni  <[email protected]>
+
+        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
+        https://bugs.webkit.org/show_bug.cgi?id=98638
+
+        Reviewed by Eric Seidel.
+
+        Add implementation for testRunner.dispatchPendingLoadRequests in
+        WebKitTestRunner.
+
+        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
+        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
+        (WTR::TestRunner::dispatchPendingLoadRequests):
+        (WTR):
+        * WebKitTestRunner/InjectedBundle/TestRunner.h:
+        (TestRunner):
+
 2012-10-08  Christophe Dumez  <[email protected]>
 
         [EFL][WK2] Add support for window.close in Minibrowser

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl (130661 => 130662)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl	2012-10-08 18:40:58 UTC (rev 130662)
@@ -73,6 +73,7 @@
         void setSpatialNavigationEnabled(in boolean value);
         void setTabKeyCyclesThroughElements(in boolean enabled);
         void setSerializeHTTPLoads();
+        void dispatchPendingLoadRequests();
 
         // Special DOM functions.
         void clearBackForwardList();

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp (130661 => 130662)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp	2012-10-08 18:40:58 UTC (rev 130662)
@@ -754,6 +754,11 @@
     WKBundleSetSerialLoadingEnabled(InjectedBundle::shared().bundle(), true);
 }
 
+void TestRunner::dispatchPendingLoadRequests()
+{
+    WKBundleDispatchPendingLoadRequests(InjectedBundle::shared().bundle());
+}
+
 void TestRunner::grantWebNotificationPermission(JSStringRef origin)
 {
     WKRetainPtr<WKStringRef> originWK = toWK(origin);

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h (130661 => 130662)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h	2012-10-08 18:37:57 UTC (rev 130661)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h	2012-10-08 18:40:58 UTC (rev 130662)
@@ -111,6 +111,7 @@
     void setSpatialNavigationEnabled(bool);
     void setTabKeyCyclesThroughElements(bool);
     void setSerializeHTTPLoads();
+    void dispatchPendingLoadRequests();
 
     // Special DOM functions.
     JSValueRef computedStyleIncludingVisitedInfo(JSValueRef element);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to