ladybird/Tests/LibWebView/CMakeLists.txt
Andreas Kling b26ee62819 WebContent: Wait for WebDriver history traversal completion
Keep WebDriver Back and Forward waiting after accepted history
traversals, even when the traversal does not change the top-level
entry. UI-owned session history can still complete same-document
traversals asynchronously, so returning immediately let later
commands race with a pending traversal and observe stale history
state.

The WebDriver session history test covers this path. Give that test a
larger CTest timeout so sanitizer CI has enough room for the full
script.
2026-06-14 17:38:44 +02:00

18 lines
550 B
CMake

set(TEST_SOURCES
TestHistoryStore.cpp
TestHSTSStore.cpp
TestSessionHistory.cpp
TestWebViewURL.cpp
)
foreach(source IN LISTS TEST_SOURCES)
ladybird_test("${source}" LibWebView LIBS LibDatabase LibWebView LibURL)
endforeach()
if (BUILD_TESTING AND NOT WIN32)
add_test(
NAME TestWebDriverSessionHistory
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test-webdriver-session-history.py $<TARGET_FILE:WebDriver>
)
set_tests_properties(TestWebDriverSessionHistory PROPERTIES TIMEOUT 120)
endif()