Attempt to fix the tests.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2014 21:44:34 +0000 (21:44 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2014 21:44:34 +0000 (21:44 +0000)
* TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm:
(-[DidFailProvisionalNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
Add policy handler to override the new default of denying loads that NSURLConnection cannot handle.

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

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm

index bb7a87a..725a287 100644 (file)
@@ -1,3 +1,11 @@
+2014-04-21  Sam Weinig  <sam@webkit.org>
+
+        Attempt to fix the tests.
+
+        * TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm:
+        (-[DidFailProvisionalNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
+        Add policy handler to override the new default of denying loads that NSURLConnection cannot handle.
+
 2014-04-21  Filip Pizlo  <fpizlo@apple.com>
 
         Unreviewed test gardening, make no-eager runs run everything except eager (as opposed to
index b2d41bd..7784e7c 100644 (file)
@@ -115,6 +115,11 @@ TEST(WKNavigation, LoadRequest)
     isDone = true;
 }
 
+- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
+{
+    decisionHandler(WKNavigationActionPolicyAllow);
+}
+
 @end
 
 TEST(WKNavigation, DidFailProvisionalNavigation)