Title: [251479] trunk/Tools
Revision
251479
Author
[email protected]
Date
2019-10-23 10:03:25 -0700 (Wed, 23 Oct 2019)

Log Message

Unreviewed, fix tvOS and watchOS engineering builds after r251377

-[UIPasteboard itemProviders] is only available on iOS.

* TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm:
(writeMultipleObjectsToPlatformPasteboard):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (251478 => 251479)


--- trunk/Tools/ChangeLog	2019-10-23 15:42:56 UTC (rev 251478)
+++ trunk/Tools/ChangeLog	2019-10-23 17:03:25 UTC (rev 251479)
@@ -1,3 +1,12 @@
+2019-10-23  Wenson Hsieh  <[email protected]>
+
+        Unreviewed, fix tvOS and watchOS engineering builds after r251377
+
+        -[UIPasteboard itemProviders] is only available on iOS.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm:
+        (writeMultipleObjectsToPlatformPasteboard):
+
 2019-10-23  Jonathan Bedard  <[email protected]>
 
         Python 3: 2to3 script may not be in a user's path

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm (251478 => 251479)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm	2019-10-23 15:42:56 UTC (rev 251478)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm	2019-10-23 17:03:25 UTC (rev 251479)
@@ -97,7 +97,7 @@
     NSPasteboard *pasteboard = NSPasteboard.generalPasteboard;
     [pasteboard clearContents];
     [pasteboard writeObjects:@[firstItem.get(), secondItem.get(), thirdItem.get(), fourthItem.get()]];
-#else
+#elif PLATFORM(IOS)
     auto firstItem = adoptNS([[NSItemProvider alloc] initWithObject:@"Hello"]);
     auto secondItem = adoptNS([[NSItemProvider alloc] initWithObject:[NSURL URLWithString:@"https://apple.com/"]]);
     auto thirdItem = adoptNS([[NSItemProvider alloc] init]);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to