Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2aaca4d468e9079c7c96ff074942aa7c2d105546
      
https://github.com/WebKit/WebKit/commit/2aaca4d468e9079c7c96ff074942aa7c2d105546
  Author: Richard Robinson <[email protected]>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Configurations/Base.xcconfig
    M Tools/TestWebKitAPI/Configurations/TestIPC.xcconfig
    M Tools/TestWebKitAPI/Configurations/TestWGSL.xcconfig
    M Tools/TestWebKitAPI/Configurations/TestWTF.xcconfig
    M Tools/TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig
    M Tools/TestWebKitAPI/Configurations/TestWebKitAPILibrary.xcconfig
    A Tools/TestWebKitAPI/TestWebKitAPI-Bridging-Header.h
    A Tools/TestWebKitAPI/TestWebKitAPI.swift
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/TestWebKitAPISupport.h
    A Tools/TestWebKitAPI/TestWebKitAPISupport.mm
    M Tools/TestWebKitAPI/ios/UIKitMacHelperSPI.h
    R Tools/TestWebKitAPI/ios/mainIOS.mm
    R Tools/TestWebKitAPI/mac/mainMac.mm

  Log Message:
  -----------
  [Swift in WebKit] Convert the TestWebKitAPI executable entry points to Swift
https://bugs.webkit.org/show_bug.cgi?id=311041
rdar://173648959

Reviewed by Elliott Williams.

To support using Swift Testing from TestWebKitAPI, the executable needs to have
a Swift entrypoint to properly support async/await and to call the testing 
entry point.

To facilitate this, convert the existing entry point logic to Swift, and unify 
iOS and macOS
logic into one place.

* Tools/TestWebKitAPI/Configurations/Base.xcconfig:
* Tools/TestWebKitAPI/Configurations/TestIPC.xcconfig:
* Tools/TestWebKitAPI/Configurations/TestWGSL.xcconfig:
* Tools/TestWebKitAPI/Configurations/TestWTF.xcconfig:
* Tools/TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig:
* Tools/TestWebKitAPI/Configurations/TestWebKitAPILibrary.xcconfig:
* Tools/TestWebKitAPI/TestWebKitAPI-Bridging-Header.h: Added.
* Tools/TestWebKitAPI/TestWebKitAPI.swift: Added.
(TestWebKitAPI.forceSiteIsolationForTesting):
(TestWebKitAPI.handleArguments(_:)):
(TestWebKitAPI.run):
(TestWebKitAPI.main):
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/TestWebKitAPISupport.h: Added.
* Tools/TestWebKitAPI/TestWebKitAPISupport.mm: Renamed from 
Tools/TestWebKitAPI/ios/mainIOS.mm.
(TestWebKitAPIEnableAllSDKAlignedBehaviors):
(TestWebKitAPIRunTests):
* Tools/TestWebKitAPI/ios/UIKitMacHelperSPI.h:
* Tools/TestWebKitAPI/mac/mainMac.mm:

Canonical link: https://commits.webkit.org/310524@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to