Bug 314662

Summary: [CMake] TestWebKitAPI on Mac doesn't compile any tests under Tests/WebKit/WKWebView/mac/
Product: WebKit Reporter: zak ridouh <zakr>
Component: CMakeAssignee: zak ridouh <zakr>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

zak ridouh
Reported 2026-05-12 13:44:31 PDT
The CMake Mac build of TestWebKitAPI does not compile any of the ~90 test files under Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/. Tools/TestWebKitAPI/ PlatformMac.cmake only feeds Tools/TestWebKitAPI/SourcesCocoa.txt to TestWebKit_UNIFIED_SOURCE_LIST_FILES, and SourcesCocoa.txt is shared with the iOS build (which can't compile mac/* tests because they use AppKit). The mac/ directory is therefore invisible to CMake. Affected: every mac-only API test that lives under that directory -- AcceptsFirstMouse, AttributedString, BackForwardList, ContextMenuTests, DragAndDropTestsMac, FontManagerTests, HIDGamepads, ImmediateActionTests, KeyboardEventTests, LoadWebArchive, MouseEventTests, ScrollbarTests, ScrollingCoordinatorTests, WKWebViewMacEditingTests, and ~80 others. None of them are available when running `Tools/Scripts/run-api-tests` against a CMake-built tree (cmake --preset mac-dev-debug).
Attachments
Radar WebKit Bug Importer
Comment 1 2026-05-12 13:44:38 PDT
zak ridouh
Comment 2 2026-05-12 13:47:26 PDT
EWS
Comment 3 2026-05-12 15:42:12 PDT
Committed 313112@main (c92a925d7b3e): <https://commits.webkit.org/313112@main> Reviewed commits have been landed. Closing PR #64777 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.