mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
Tests: Use layout tests placed in subdirectories
Allows organizing layout tests into subdirectories.
This commit is contained in:
parent
593a4a4232
commit
7028f75779
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ fi
|
|||
|
||||
BROWSER_BINARY="./headless-browser"
|
||||
|
||||
for input_html_path in "${SCRIPT_DIR}"/input/*.html; do
|
||||
input_html_file="$(basename "${input_html_path}" .html)"
|
||||
find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r -d '' input_html_path; do
|
||||
input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/}
|
||||
input_html_file=${input_html_file/".html"/}
|
||||
|
||||
output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; "${BROWSER_BINARY}" -d "${input_html_path}")
|
||||
expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue