Unreviewed, guard iOS 11-dependent UIPasteboardTests to be iOS 11+ only
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jul 2017 16:17:34 +0000 (16:17 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jul 2017 16:17:34 +0000 (16:17 +0000)
* TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:

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

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

index 9a15587..0d47cab 100644 (file)
@@ -1,3 +1,9 @@
+2017-07-05  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, guard iOS 11-dependent UIPasteboardTests to be iOS 11+ only
+
+        * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
+
 2017-07-05  Matt Lewis  <jlewis3@apple.com>
 
         Unreviewed, rolling out r219128.
index 1d33ac6..3ebde6b 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