Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c78b8f00ebe7325a797ed4869bf59d8cd836609a
      
https://github.com/WebKit/WebKit/commit/c78b8f00ebe7325a797ed4869bf59d8cd836609a
  Author: Cole Carley <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    A Tools/TestWebKitAPI/Helpers/cocoa/PrivateFindSPITester.h
    A Tools/TestWebKitAPI/Helpers/cocoa/PrivateFindSPITester.mm
    M Tools/TestWebKitAPI/SourcesCocoa.txt
    A Tools/TestWebKitAPI/Tests/WebKit/WKWebView/FindPrivateSPI.mm

  Log Message:
  -----------
  Add a find-in-page test harness for the private find SPI
https://bugs.webkit.org/show_bug.cgi?id=326097
rdar://189017935

Reviewed by Megan Gardner.

Add PrivateFindSPITester, which drives the _WKFindDelegate-based find SPI
on WKWebView, and a set of tests that use it with the shared
find-in-page fixtures.

* Tools/TestWebKitAPI/Helpers/cocoa/PrivateFindSPITester.h: Added.
* Tools/TestWebKitAPI/Helpers/cocoa/PrivateFindSPITester.mm: Added.
(-[PrivateFindSPITesterDelegate _webView:didCountMatches:forString:]):
(-[PrivateFindSPITesterDelegate 
_webView:didFindMatches:forString:withMatchIndex:]):
(-[PrivateFindSPITesterDelegate _webView:didFailToFindString:]):
(TestWebKitAPI::PrivateFindSPITester::PrivateFindSPITester):
(TestWebKitAPI::PrivateFindSPITester::findString):
(TestWebKitAPI::PrivateFindSPITester::countStringMatches):
(TestWebKitAPI::PrivateFindSPITester::hideFindUI):
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/FindPrivateSPI.mm: Added.
(TestWebKitAPI::INSTANTIATE_TEST_SUITE_P):
(TestWebKitAPI::TEST_P):

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



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

Reply via email to