Unreviewed, fix the TestWebKitAPI build after r228825.
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Feb 2018 23:30:16 +0000 (23:30 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Feb 2018 23:30:16 +0000 (23:30 +0000)
I removed a `>= iOS 11` check in r228825, but forgot that this was also neeed to guard against tvOS and watchOS
builds. This fixes the build by restoring the compile-time guard and also makes it explicit for these platforms.

* TestWebKitAPI/Tests/ios/ActionSheetTests.mm:

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

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/ios/ActionSheetTests.mm

index 8063e3f..b83e34d 100644 (file)
@@ -1,3 +1,12 @@
+2018-02-24  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, fix the TestWebKitAPI build after r228825.
+
+        I removed a `>= iOS 11` check in r228825, but forgot that this was also neeed to guard against tvOS and watchOS
+        builds. This fixes the build by restoring the compile-time guard and also makes it explicit for these platforms.
+
+        * TestWebKitAPI/Tests/ios/ActionSheetTests.mm:
+
 2018-02-22  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Remove currentTime() / currentTimeMS()
index 2a6f226..0ea49c0 100644 (file)
@@ -140,6 +140,8 @@ TEST(ActionSheetTests, DataDetectorsLinkIsNotPresentedAsALink)
     EXPECT_TRUE(runTest(@"08080808080"));
 }
 
+#if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
+
 static void presentActionSheetAndChooseAction(WKWebView *webView, ActionSheetObserver *observer, CGPoint location, _WKElementActionType actionType)
 {
     __block RetainPtr<_WKElementAction> copyAction;
@@ -294,6 +296,8 @@ TEST(ActionSheetTests, CopyLinkWritesURLAndPlainText)
     EXPECT_WK_STREQ("", [webView stringByEvaluatingJavaScript:@"rawHTMLData.textContent"]);
 }
 
+#endif // !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
+
 } // namespace TestWebKitAPI
 
 #endif // PLATFORM(IOS)