Title: [235689] trunk/Tools
- Revision
- 235689
- Author
- wenson_hs...@apple.com
- Date
- 2018-09-05 14:15:53 -0700 (Wed, 05 Sep 2018)
Log Message
[macOS] DragAndDropTests.ExposeMultipleURLsInDataTransfer fails on macOS versions prior to Mojave
https://bugs.webkit.org/show_bug.cgi?id=189315
Reviewed by Tim Horton.
Fix the test failure by explicitly enabling custom pasteboard data.
* TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm:
(TEST):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (235688 => 235689)
--- trunk/Tools/ChangeLog 2018-09-05 21:15:24 UTC (rev 235688)
+++ trunk/Tools/ChangeLog 2018-09-05 21:15:53 UTC (rev 235689)
@@ -1,3 +1,15 @@
+2018-09-05 Wenson Hsieh <wenson_hs...@apple.com>
+
+ [macOS] DragAndDropTests.ExposeMultipleURLsInDataTransfer fails on macOS versions prior to Mojave
+ https://bugs.webkit.org/show_bug.cgi?id=189315
+
+ Reviewed by Tim Horton.
+
+ Fix the test failure by explicitly enabling custom pasteboard data.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm:
+ (TEST):
+
2018-09-05 Woodrow Wang <woodrow_w...@apple.com>
Added runtime feature flag for web API statistics
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm (235688 => 235689)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm 2018-09-05 21:15:24 UTC (rev 235688)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm 2018-09-05 21:15:53 UTC (rev 235689)
@@ -27,6 +27,7 @@
#import "DragAndDropSimulator.h"
#import "PlatformUtilities.h"
+#import <WebKit/WKPreferencesPrivate.h>
#if WK_API_ENABLED && ENABLE(DRAG_SUPPORT)
@@ -47,6 +48,7 @@
{
auto simulator = adoptNS([[DragAndDropSimulator alloc] initWithWebViewFrame:CGRectMake(0, 0, 320, 500)]);
auto webView = [simulator webView];
+ WKPreferencesSetCustomPasteboardDataEnabled((WKPreferencesRef)[webView configuration].preferences, true);
[webView synchronouslyLoadTestPageNamed:@"DataTransfer"];
NSString *stringData = @"Hello world";
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes