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

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

  Log Message:
  -----------
  Add a find-in-page test harness for the C find API
https://bugs.webkit.org/show_bug.cgi?id=326094
rdar://189017864

Reviewed by Megan Gardner.

Add FindCAPITester, which drives the WKPageFindClient and
WKPageFindMatchesClient C API, and a set of tests that use it with the
shared find-in-page fixtures.

* Tools/TestWebKitAPI/Helpers/cocoa/FindCAPITester.h: Added.
* Tools/TestWebKitAPI/Helpers/cocoa/FindCAPITester.mm: Added.
(TestWebKitAPI::toWKString):
(TestWebKitAPI::testerFromClientInfo):
(TestWebKitAPI::FindCAPITester::FindCAPITester):
(TestWebKitAPI::FindCAPITester::~FindCAPITester):
(TestWebKitAPI::FindCAPITester::page const):
(TestWebKitAPI::FindCAPITester::waitForCallback):
(TestWebKitAPI::FindCAPITester::findString):
(TestWebKitAPI::FindCAPITester::countStringMatches):
(TestWebKitAPI::FindCAPITester::findStringMatches):
(TestWebKitAPI::FindCAPITester::getImageForFindMatch):
(TestWebKitAPI::FindCAPITester::selectFindMatch):
(TestWebKitAPI::FindCAPITester::indicateFindMatch):
(TestWebKitAPI::FindCAPITester::hideFindUI):
(TestWebKitAPI::FindCAPITester::didFindString):
(TestWebKitAPI::FindCAPITester::didFailToFindString):
(TestWebKitAPI::FindCAPITester::didCountStringMatches):
(TestWebKitAPI::FindCAPITester::didFindStringMatches):
(TestWebKitAPI::FindCAPITester::didGetImageForMatchResult):
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/FindCAPI.mm: Added.
(TestWebKitAPI::INSTANTIATE_TEST_SUITE_P):
(TestWebKitAPI::TEST_P):

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



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

Reply via email to