[Swift Testing] Convert more WKWebExtension* tests to use Swift Testing (part 4) - #75634
Open
rr-codes wants to merge 1 commit into
Conversation
rr-codes
requested review from
JonWBedard,
b-weinstein,
gsnedders and
xeenon
as code owners
October 2, 2026 09:00
Collaborator
|
EWS run on previous version of this PR (hash 433a3bb) Details |
…ng (part 4) https://bugs.webkit.org/show_bug.cgi?id=326052 rdar://188988905 Reviewed by NOBODY (OOPS!). * TestExpectations/apitests: * Tools/Scripts/webkitpy/api_tests/allowlist.txt: * Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer/HTTPServer.swift: (responseBehavior(_:)): (Connection.receiveRequestPath): (Connection.send(_:)): (Connection.terminate): * Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer/HTTPServerConnection.swift: (NWConnection.terminate): * Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer/HTTPServerCore.swift: (didReceive(_:)): * Tools/TestWebKitAPI/Helpers/cocoa/WebExtensionUtilities.h: * Tools/TestWebKitAPI/Helpers/cocoa/WebExtensionUtilities.mm: (testExceptionRaisedBySettingValue): (-[TestWebExtensionManager waitForTestMessage:completionHandler:]): (-[TestWebExtensionManager waitForContextErrorWithCompletionHandler:]): (-[TestWebExtensionManager done]): (-[TestWebExtensionManager _webExtensionController:receivedTestMessage:withArgument:andSourceURL:lineNumber:]): * Tools/TestWebKitAPI/PlatformCocoa.cmake: * Tools/TestWebKitAPI/SourcesCocoa.txt: * Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPITest.mm: Removed. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPITest.swift: Added. (WKWebExtensionAPITestTests.testStartedEvent): (WKWebExtensionAPITestTests.testFinishedEvent): (WKWebExtensionAPITestTests.messageEvent): (WKWebExtensionAPITestTests.messageEventInWebPage): (WKWebExtensionAPITestTests.messageEventInContentScript): (WKWebExtensionAPITestTests.messageEventWithSendMessageReply): (WKWebExtensionAPITestTests.sendMessage): (WKWebExtensionAPITestTests.sendMessageMultipleTimes): (WKWebExtensionAPITestTests.sendMessageOutOfOrder): (WKWebExtensionAPITestTests.sendMessageBeforeListenerAdded): (WKWebExtensionAPITestTests.addAnonymousAsyncTest): (WKWebExtensionAPITestTests.addAsyncTestThatPasses): (WKWebExtensionAPITestTests.addAsyncTestThatFails): (WKWebExtensionAPITestTests.addAsyncTestThatThrows): (WKWebExtensionAPITestTests.addMultipleAsyncTestsThatPass): (WKWebExtensionAPITestTests.addMultipleAsyncTestsWithFailure): (WKWebExtensionAPITestTests.addAnonymousTest): (WKWebExtensionAPITestTests.addTestThatPasses): (WKWebExtensionAPITestTests.addTestThatFails): (WKWebExtensionAPITestTests.addTestThatThrows): (WKWebExtensionAPITestTests.addMultipleTestsThatPass): (WKWebExtensionAPITestTests.addMultipleTestsWithFailure): (WKWebExtensionAPITestTests.runAnonymousTests): (WKWebExtensionAPITestTests.runTestsThatPass): (WKWebExtensionAPITestTests.runTestsWithTestThatFails): (WKWebExtensionAPITestTests.runTestsWithAsyncTestThatFails): (WKWebExtensionAPITestTests.runTestsVerifyFailedTestAborts): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIWebNavigation.mm: Removed. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIWebNavigation.swift: Added. (WKWebExtensionAPIWebNavigationTests.eventListenerRegistration): (WKWebExtensionAPIWebNavigationTests.beforeNavigateEvent): (WKWebExtensionAPIWebNavigationTests.committedEvent): (WKWebExtensionAPIWebNavigationTests.domContentLoadedEvent): (WKWebExtensionAPIWebNavigationTests.completedEvent): (WKWebExtensionAPIWebNavigationTests.allowedFilter): (WKWebExtensionAPIWebNavigationTests.deniedFilter): (WKWebExtensionAPIWebNavigationTests.allEventsFired): (WKWebExtensionAPIWebNavigationTests.documentIdAcrossEvents): (WKWebExtensionAPIWebNavigationTests.removeListenerDuringEvent): (WKWebExtensionAPIWebNavigationTests.errorOccurredEventDuringProvisionalLoad): (WKWebExtensionAPIWebNavigationTests.errorOccurredEventDuringLoad): (WKWebExtensionAPIWebNavigationTests.getFrameWithMainFrame): (getFrameWithSubframe): (getAllFrames): (errorOccurred): (errors): (urlFilterTestMatchAllPredicates): (urlFilterMatchesOnePredicate): (emptyFilterMatchesEverything): (urlKeyTypeChecking): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIWebRequest.mm: Removed. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIWebRequest.swift: Added. (WKWebExtensionAPIWebRequestTests.configurationEnablingFeature(_:)): (WKWebExtensionAPIWebRequestTests.error): (WKWebExtensionAPIWebRequestTests.manifestV2Persistent): (WKWebExtensionAPIWebRequestTests.manifestV2NonPersistent): (WKWebExtensionAPIWebRequestTests.eventListenerRegistration): (WKWebExtensionAPIWebRequestTests.beforeRequestEvent): (WKWebExtensionAPIWebRequestTests.beforeRequestEventForSubresource): (WKWebExtensionAPIWebRequestTests.beforeRequestEventForSubframe): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionContext.mm: Removed. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionContext.swift: Added. (WKWebExtensionContextTests.defaultPermissionChecks): (WKWebExtensionContextTests.permissionGranting): (WKWebExtensionContextTests.contentScriptsParsing): (WKWebExtensionContextTests.optionsPageURLParsing): (WKWebExtensionContextTests.urlOverridesParsing): (WKWebExtensionContextTests.commandsParsing): (WKWebExtensionContextTests.loadNonExistentImage): (WKWebExtensionContextTests.topLevelThrowInModuleBackground): (WKWebExtensionContextTests.referenceErrorInBackground): (WKWebExtensionContextTests.callingMissingBrowserAPIInBackground): (WKWebExtensionContextTests.uncaughtScriptErrorInBackground): (WKWebExtensionContextTests.unhandledPromiseRejectionInBackground): (WKWebExtensionContextTests.uncaughtScriptErrorInServiceWorkerBackground): (WKWebExtensionContextTests.unhandledPromiseRejectionInServiceWorkerBackground): (WKWebExtensionContextTests.syntaxErrorInBackground): (WKWebExtensionContextTests.noErrorForCaughtExceptionsInBackground): (WKWebExtensionContextTests.uncaughtScriptErrorInContentScript): (WKWebExtensionContextTests.uncaughtScriptErrorInMainWorldContentScript): (WKWebExtensionContextTests.pageScriptErrorNotReportedToExtension): (WKWebExtensionContextTests.consoleErrorDoesNotEvaluateArgumentsTwice): (WKWebExtensionContextTests.uncaughtScriptErrorInEventListener): (WKWebExtensionContextTests.topLevelThrowInPopup): (WKWebExtensionContextTests.consoleErrorReportedNotLogOrWarn): (WKWebExtensionContextTests.consoleAssertWithMessage): (WKWebExtensionContextTests.consoleAssertWithoutMessage): (WKWebExtensionContextTests.cleanUpOldOriginDataAfterMigration): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionController.mm: Removed. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionController.swift: Added. (WKWebExtensionControllerTests.configuration): (WKWebExtensionControllerTests.loadingAndUnloadingContexts): (WKWebExtensionControllerTests.backgroundPageLoading): (WKWebExtensionControllerTests.backgroundPageWithModulesLoading): (WKWebExtensionControllerTests.backgroundWithServiceWorkerPreferredEnvironment): (WKWebExtensionControllerTests.backgroundWithPageDocumentPreferredEnvironment): (WKWebExtensionControllerTests.backgroundWithScriptsDocumentPreferredEnvironment): (WKWebExtensionControllerTests.backgroundWithMultipleDocumentModuleScripts): (WKWebExtensionControllerTests.backgroundWithMultipleServiceWorkerScripts): (WKWebExtensionControllerTests.backgroundWithMultipleServiceWorkerModuleScripts): (WKWebExtensionControllerTests.contentScriptLoading): (WKWebExtensionControllerTests.cssUserOrigin): (WKWebExtensionControllerTests.cssAuthorOrigin): (WKWebExtensionControllerTests.contentSecurityPolicyV2BlockingImageLoad): (WKWebExtensionControllerTests.contentSecurityPolicyV3BlockingImageLoad): (WKWebExtensionControllerTests.webAccessibleResources): (WKWebExtensionControllerTests.webAccessibleResourcesWithLeadingSlash): (WKWebExtensionControllerTests.webAccessibleResourceInSubframeFromAboutBlank): (WKWebExtensionControllerTests.webAccessibleResourcesV2):
rr-codes
force-pushed
the
eng/Swift-Testing-Convert-more-WKWebExtension-tests-to-use-Swift-Testing-part-4
branch
from
October 2, 2026 09:31
433a3bb to
c15e88a
Compare
Collaborator
|
EWS run on current version of this PR (hash c15e88a) Details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
c15e88a
c15e88a