Unreviewed iOS API test gardening for rdar://59611168.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2020 02:31:53 +0000 (02:31 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2020 02:31:53 +0000 (02:31 +0000)
* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
* TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm:

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

Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
Tools/TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm

index 7f8228a..d1427af 100644 (file)
@@ -6461,6 +6461,7 @@ TEST(ProcessSwap, PageOverlayLayerPersistence)
 
 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(ProcessSwap, QuickLookRequestsPasswordAfterSwap)
 {
     auto processPoolConfiguration = psonProcessPoolConfiguration();
@@ -6494,6 +6495,7 @@ TEST(ProcessSwap, QuickLookRequestsPasswordAfterSwap)
     TestWebKitAPI::Util::run(&didFinishQuickLookLoad);
     didFinishQuickLookLoad = false;
 }
+#endif
 
 static const char* minimumWidthPageBytes = R"PSONRESOURCE(
 <!DOCTYPE html>
index e9b193c..ae2bc7f 100644 (file)
@@ -272,6 +272,7 @@ static RetainPtr<WKWebView> runTestDecideBeforeLoading(QuickLookDelegate *delega
     return runTest(delegate, request, YES);
 }
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 static RetainPtr<WKWebView> runTestDecideAfterLoading(QuickLookDelegate *delegate, NSURLRequest *request)
 {
     return runTest(delegate, request, NO);
@@ -296,6 +297,7 @@ TEST(QuickLook, AllowResponseAfterLoadingPreview)
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 @interface QuickLookAsyncDelegate : QuickLookDelegate
 @end
@@ -314,6 +316,7 @@ TEST(QuickLook, AllowResponseAfterLoadingPreview)
 
 @end
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, AsyncAllowResponseBeforeLoadingPreview)
 {
     auto delegate = adoptNS([[QuickLookAsyncDelegate alloc] initWithExpectedFileURL:pagesDocumentURL responsePolicy:WKNavigationResponsePolicyAllow]);
@@ -333,6 +336,7 @@ TEST(QuickLook, AsyncAllowResponseAfterLoadingPreview)
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 TEST(QuickLook, CancelResponseBeforeLoadingPreview)
 {
@@ -345,6 +349,7 @@ TEST(QuickLook, CancelResponseBeforeLoadingPreview)
     EXPECT_TRUE([delegate didFailNavigation]);
 }
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, CancelResponseAfterLoadingPreview)
 {
     auto delegate = adoptNS([[QuickLookDelegate alloc] initWithExpectedFileURL:pagesDocumentURL previewMIMEType:pagesDocumentPreviewMIMEType responsePolicy:WKNavigationResponsePolicyCancel]);
@@ -355,6 +360,7 @@ TEST(QuickLook, CancelResponseAfterLoadingPreview)
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 TEST(QuickLook, DownloadResponseBeforeLoadingPreview)
 {
@@ -370,6 +376,7 @@ TEST(QuickLook, DownloadResponseBeforeLoadingPreview)
     [delegate verifyDownload];
 }
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, DownloadResponseAfterLoadingPreview)
 {
     auto delegate = adoptNS([[QuickLookDelegate alloc] initWithExpectedFileURL:pagesDocumentURL previewMIMEType:pagesDocumentPreviewMIMEType responsePolicy:_WKNavigationResponsePolicyBecomeDownload]);
@@ -380,6 +387,7 @@ TEST(QuickLook, DownloadResponseAfterLoadingPreview)
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 @interface QuickLookPasswordDelegate : QuickLookDelegate
 @property (nonatomic) BOOL didRequestPassword;
@@ -395,6 +403,7 @@ TEST(QuickLook, DownloadResponseAfterLoadingPreview)
 
 @end
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, RequestPasswordBeforeLoadingPreview)
 {
     NSURL *passwordProtectedDocumentURL = [NSBundle.mainBundle URLForResource:@"password-protected" withExtension:@"pages" subdirectory:@"TestWebKitAPI.resources"];
@@ -444,6 +453,7 @@ TEST(QuickLook, ReloadAndSameDocumentNavigation)
     }];
     Util::run(&isDone);
 }
+#endif
 
 @interface QuickLookLegacyDelegate : NSObject <WebFrameLoadDelegate, WebPolicyDelegate>
 @end
@@ -463,6 +473,7 @@ TEST(QuickLook, ReloadAndSameDocumentNavigation)
 
 @end
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, LegacyQuickLookContent)
 {
     WebKitInitialize();
@@ -535,5 +546,6 @@ TEST(QuickLook, LoadFromMemoryCache)
     TestProtocol.additionalResponseHeaders = nil;
     [TestProtocol unregister];
 }
+#endif
 
 #endif // USE(QUICK_LOOK)