Unreviewed, guard iOS 11-dependent UIPasteboardTests to be iOS 11+ only
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / ios / UIPasteboardTests.mm
index 1d33ac639ab5e06311ef831a981b4640e7ceb82e..3ebde6b230e43d6049e5f3b6c6aceaaefea85db1 100644 (file)
@@ -86,6 +86,8 @@ TEST(UIPasteboardTests, CopyRichTextWritesConcreteTypes)
     EXPECT_WK_STREQ("Hello world", [utf16Result UTF8String]);
 }
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
+
 TEST(UIPasteboardTests, DoNotPastePlainTextAsURL)
 {
     auto webView = setUpWebViewForPasteboardTests();
@@ -137,6 +139,8 @@ TEST(UIPasteboardTests, PasteURLWithPlainTextAsURL)
     EXPECT_TRUE([webView stringByEvaluatingJavaScript:@"!!rich.querySelector('a')"].boolValue);
 }
 
+#endif // __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
+
 } // namespace TestWebKitAPI
 
 #endif