Title: [250403] trunk/Tools
Revision
250403
Author
[email protected]
Date
2019-09-26 15:41:38 -0700 (Thu, 26 Sep 2019)

Log Message

Build fix.

* TestWebKitAPI/Tests/WebKitCocoa/ContextMenus.mm:
(-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuConfigurationForElement:completionHandler:]): Deleted.
(-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuWillPresentForElement:]): Deleted.
(-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuForElement:willCommitWithAnimator:]): Deleted.
(-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuDidEndForElement:]): Deleted.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (250402 => 250403)


--- trunk/Tools/ChangeLog	2019-09-26 22:19:42 UTC (rev 250402)
+++ trunk/Tools/ChangeLog	2019-09-26 22:41:38 UTC (rev 250403)
@@ -1,5 +1,15 @@
 2019-09-26  Dean Jackson  <[email protected]>
 
+        Build fix.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/ContextMenus.mm:
+        (-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuConfigurationForElement:completionHandler:]): Deleted.
+        (-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuWillPresentForElement:]): Deleted.
+        (-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuForElement:willCommitWithAnimator:]): Deleted.
+        (-[TestContextMenuImageWithoutConfigurationUIDelegate webView:contextMenuDidEndForElement:]): Deleted.
+
+2019-09-26  Dean Jackson  <[email protected]>
+
         ContextMenu on a link in an email no longer shows web preview
         https://bugs.webkit.org/show_bug.cgi?id=201120
         <rdar://54353617>

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ContextMenus.mm (250402 => 250403)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ContextMenus.mm	2019-09-26 22:19:42 UTC (rev 250402)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ContextMenus.mm	2019-09-26 22:41:38 UTC (rev 250403)
@@ -180,51 +180,6 @@
     EXPECT_FALSE(didEndCalled);
 }
 
-@interface TestContextMenuImageWithoutConfigurationUIDelegate : NSObject <WKUIDelegate>
-@end
-
-@implementation TestContextMenuImageWithoutConfigurationUIDelegate
-
-- (void)webView:(WKWebView *)webView contextMenuConfigurationForElement:(WKContextMenuElementInfo *)elementInfo completionHandler:(void(^)(UIContextMenuConfiguration * _Nullable))completionHandler
-{
-    EXPECT_TRUE([elementInfo.linkURL.absoluteString isEqualToString:[linkURL absoluteString]]);
-    contextMenuRequested = true;
-    // check that it is an image
-    completionHandler(nil);
-}
-
-- (void)webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo
-{
-    willPresentCalled = true;
-}
-
-- (void)webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator
-{
-    willCommitCalled = true;
-}
-
-- (void)webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo
-{
-    didEndCalled = true;
-}
-
-@end
-
-TEST(WebKit, ContextMenuImage)
-{
-    auto driver = contextMenuWebViewDriver([TestContextMenuImageWithoutConfigurationUIDelegate class], @"<a href=''><img width='500' height='500' src=''></a>");
-    [driver begin:^(BOOL result) {
-        EXPECT_TRUE(result);
-        [driver clickDown];
-        [driver clickUp];
-    }];
-    TestWebKitAPI::Util::run(&willPresentCalled);
-    EXPECT_TRUE(contextMenuRequested);
-    EXPECT_TRUE(willPresentCalled);
-    EXPECT_FALSE(willCommitCalled);
-    EXPECT_FALSE(didEndCalled);
-}
-
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
 #pragma clang diagnostic ignored "-Wdeprecated-implementations"
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to