Title: [259100] trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa
Revision
259100
Author
ryanhad...@apple.com
Date
2020-03-26 19:31:53 -0700 (Thu, 26 Mar 2020)

Log Message

Unreviewed iOS API test gardening for rdar://59611168.

* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
* TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm:

Modified Paths

Diff

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm (259099 => 259100)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm	2020-03-27 02:31:48 UTC (rev 259099)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm	2020-03-27 02:31:53 UTC (rev 259100)
@@ -6461,6 +6461,7 @@
 
 #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 @@
     TestWebKitAPI::Util::run(&didFinishQuickLookLoad);
     didFinishQuickLookLoad = false;
 }
+#endif
 
 static const char* minimumWidthPageBytes = R"PSONRESOURCE(
 <!DOCTYPE html>

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm (259099 => 259100)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm	2020-03-27 02:31:48 UTC (rev 259099)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm	2020-03-27 02:31:53 UTC (rev 259100)
@@ -272,6 +272,7 @@
     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 @@
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 @interface QuickLookAsyncDelegate : QuickLookDelegate
 @end
@@ -314,6 +316,7 @@
 
 @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 @@
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 TEST(QuickLook, CancelResponseBeforeLoadingPreview)
 {
@@ -345,6 +349,7 @@
     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 @@
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 TEST(QuickLook, DownloadResponseBeforeLoadingPreview)
 {
@@ -370,6 +376,7 @@
     [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 @@
     EXPECT_TRUE([delegate didFinishQuickLookLoad]);
     EXPECT_TRUE([delegate didStartQuickLookLoad]);
 }
+#endif
 
 @interface QuickLookPasswordDelegate : QuickLookDelegate
 @property (nonatomic) BOOL didRequestPassword;
@@ -395,6 +403,7 @@
 
 @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 @@
     }];
     Util::run(&isDone);
 }
+#endif
 
 @interface QuickLookLegacyDelegate : NSObject <WebFrameLoadDelegate, WebPolicyDelegate>
 @end
@@ -463,6 +473,7 @@
 
 @end
 
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
 TEST(QuickLook, LegacyQuickLookContent)
 {
     WebKitInitialize();
@@ -535,5 +546,6 @@
     TestProtocol.additionalResponseHeaders = nil;
     [TestProtocol unregister];
 }
+#endif
 
 #endif // USE(QUICK_LOOK)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to