From 5291d516c037625fe6054c23907626e35e0ae67e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 22 Aug 2023 18:40:41 -0400 Subject: [PATCH] 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. --- Ladybird/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/CMakeLists.txt b/Ladybird/CMakeLists.txt index 70a6aeded4..f1a60e791d 100644 --- a/Ladybird/CMakeLists.txt +++ b/Ladybird/CMakeLists.txt @@ -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