1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibWeb: Use layout-test-mode for layout tests

Also do some test changes to test it out :^)
This commit is contained in:
martinfalisse 2023-05-06 12:36:08 +02:00 committed by Andreas Kling
parent c719a542c5
commit ea61296738
18 changed files with 1 additions and 62 deletions

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,7 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.mw-page-container-inner { .mw-page-container-inner {
display: grid; display: grid;
grid-template: min-content min-content 1fr min-content / 12.25em minmax(0, 1fr); grid-template: min-content min-content 1fr min-content / 12.25em minmax(0, 1fr);

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -5,7 +5,6 @@
<style> <style>
body { body {
float: left; float: left;
font-family: 'SerenitySans';
} }
.grid { .grid {

View file

@ -4,7 +4,6 @@
} }
body { body {
float: left; float: left;
font-family: 'SerenitySans';
} }
.grid { .grid {
display: grid; display: grid;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -1,8 +1,4 @@
<style> <style>
body {
font-family: 'SerenitySans';
}
.grid-container { .grid-container {
display: grid; display: grid;
background-color: lightsalmon; background-color: lightsalmon;

View file

@ -16,7 +16,7 @@ find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r
input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/} input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/}
input_html_file=${input_html_file/".html"/} input_html_file=${input_html_file/".html"/}
output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; timeout 300s "${BROWSER_BINARY}" -d "${input_html_path}") output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; timeout 300s "${BROWSER_BINARY}" --layout-test-mode -d "${input_html_path}")
expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt" expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt"
if cmp <(echo "${output_layout_dump}") "${expected_layout_dump_path}"; then if cmp <(echo "${output_layout_dump}") "${expected_layout_dump_path}"; then