LibWeb: Ensure layout/text/ref tests run with the desired default theme

Without setting the --resources flag, headless-browser defaults to /res
for all resources it tries to find, including the theme. It will not
find this path on Lagom, so our attempt to load the default theme does
not accomplish anything.
This commit is contained in:
Timothy Flynn 2023-08-22 18:40:41 -04:00 committed by Andreas Kling
parent 4fc88aa17b
commit 5291d516c0
Notes: sideshowbarker 2024-07-17 01:28:15 +09:00

View File

@ -239,7 +239,7 @@ include(CTest)
if (BUILD_TESTING)
add_test(
NAME LibWeb
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/../bin/headless-browser --run-tests ${SERENITY_SOURCE_DIR}/Tests/LibWeb
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/../bin/headless-browser --resources "${SERENITY_SOURCE_DIR}/Base/res" --run-tests ${SERENITY_SOURCE_DIR}/Tests/LibWeb
)
add_test(
NAME WPT