summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartinfalisse <martinmotteditfalisse@gmail.com>2023-05-06 12:36:08 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-08 14:47:52 +0200
commitea61296738559830cc4a2fec427c50d3f75ec0f5 (patch)
treef93473011e5ef32cc949bff25e1ac7a0d6b86541
parentc719a542c5a51016124040b7c092cba946b538fd (diff)
downloadserenity-ea61296738559830cc4a2fec427c50d3f75ec0f5.zip
LibWeb: Use layout-test-mode for layout tests
Also do some test changes to test it out :^)
-rw-r--r--Tests/LibWeb/Layout/input/grid/auto-fill.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/auto-fit.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/basic.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/borders.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/different-column-sizes.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/gap.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/grid-template.html3
-rw-r--r--Tests/LibWeb/Layout/input/grid/image-in-grid.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/intrinsic-sized-column.html1
-rw-r--r--Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid.html1
-rw-r--r--Tests/LibWeb/Layout/input/grid/min-max-content.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/minmax.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/named-tracks.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/positions-and-spans.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/repeat.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/row-height.html4
-rw-r--r--Tests/LibWeb/Layout/input/grid/template-areas.html4
-rwxr-xr-xTests/LibWeb/Layout/layout_test.sh2
18 files changed, 1 insertions, 62 deletions
diff --git a/Tests/LibWeb/Layout/input/grid/auto-fill.html b/Tests/LibWeb/Layout/input/grid/auto-fill.html
index 93351882ff..b283c8dfed 100644
--- a/Tests/LibWeb/Layout/input/grid/auto-fill.html
+++ b/Tests/LibWeb/Layout/input/grid/auto-fill.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/auto-fit.html b/Tests/LibWeb/Layout/input/grid/auto-fit.html
index 9738e847e8..747c1758c5 100644
--- a/Tests/LibWeb/Layout/input/grid/auto-fit.html
+++ b/Tests/LibWeb/Layout/input/grid/auto-fit.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/basic.html b/Tests/LibWeb/Layout/input/grid/basic.html
index c4fc38a396..df50f3cef8 100644
--- a/Tests/LibWeb/Layout/input/grid/basic.html
+++ b/Tests/LibWeb/Layout/input/grid/basic.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/borders.html b/Tests/LibWeb/Layout/input/grid/borders.html
index e43cf1fe55..e0e433d073 100644
--- a/Tests/LibWeb/Layout/input/grid/borders.html
+++ b/Tests/LibWeb/Layout/input/grid/borders.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/different-column-sizes.html b/Tests/LibWeb/Layout/input/grid/different-column-sizes.html
index 0a0d36b0ff..fca4578e66 100644
--- a/Tests/LibWeb/Layout/input/grid/different-column-sizes.html
+++ b/Tests/LibWeb/Layout/input/grid/different-column-sizes.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/gap.html b/Tests/LibWeb/Layout/input/grid/gap.html
index 9dd5f6f5fd..2fc70eeb68 100644
--- a/Tests/LibWeb/Layout/input/grid/gap.html
+++ b/Tests/LibWeb/Layout/input/grid/gap.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/grid-template.html b/Tests/LibWeb/Layout/input/grid/grid-template.html
index abd8a6970e..d4a783d649 100644
--- a/Tests/LibWeb/Layout/input/grid/grid-template.html
+++ b/Tests/LibWeb/Layout/input/grid/grid-template.html
@@ -1,7 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
.mw-page-container-inner {
display: grid;
grid-template: min-content min-content 1fr min-content / 12.25em minmax(0, 1fr);
diff --git a/Tests/LibWeb/Layout/input/grid/image-in-grid.html b/Tests/LibWeb/Layout/input/grid/image-in-grid.html
index 3828deaf58..8ce9cb509b 100644
--- a/Tests/LibWeb/Layout/input/grid/image-in-grid.html
+++ b/Tests/LibWeb/Layout/input/grid/image-in-grid.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/intrinsic-sized-column.html b/Tests/LibWeb/Layout/input/grid/intrinsic-sized-column.html
index f40127616e..953e0b4c5e 100644
--- a/Tests/LibWeb/Layout/input/grid/intrinsic-sized-column.html
+++ b/Tests/LibWeb/Layout/input/grid/intrinsic-sized-column.html
@@ -5,7 +5,6 @@
<style>
body {
float: left;
- font-family: 'SerenitySans';
}
.grid {
diff --git a/Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid.html b/Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid.html
index 1da9823c59..e226576216 100644
--- a/Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid.html
+++ b/Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid.html
@@ -4,7 +4,6 @@
}
body {
float: left;
- font-family: 'SerenitySans';
}
.grid {
display: grid;
diff --git a/Tests/LibWeb/Layout/input/grid/min-max-content.html b/Tests/LibWeb/Layout/input/grid/min-max-content.html
index a18a8bb61a..b98fada4b1 100644
--- a/Tests/LibWeb/Layout/input/grid/min-max-content.html
+++ b/Tests/LibWeb/Layout/input/grid/min-max-content.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/minmax.html b/Tests/LibWeb/Layout/input/grid/minmax.html
index c2aad80361..56cc996fd8 100644
--- a/Tests/LibWeb/Layout/input/grid/minmax.html
+++ b/Tests/LibWeb/Layout/input/grid/minmax.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/named-tracks.html b/Tests/LibWeb/Layout/input/grid/named-tracks.html
index 346fc043b5..caa6ff5325 100644
--- a/Tests/LibWeb/Layout/input/grid/named-tracks.html
+++ b/Tests/LibWeb/Layout/input/grid/named-tracks.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/positions-and-spans.html b/Tests/LibWeb/Layout/input/grid/positions-and-spans.html
index 683fd30836..5f88180ffc 100644
--- a/Tests/LibWeb/Layout/input/grid/positions-and-spans.html
+++ b/Tests/LibWeb/Layout/input/grid/positions-and-spans.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/repeat.html b/Tests/LibWeb/Layout/input/grid/repeat.html
index 16e178a933..4f3f8341e4 100644
--- a/Tests/LibWeb/Layout/input/grid/repeat.html
+++ b/Tests/LibWeb/Layout/input/grid/repeat.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/row-height.html b/Tests/LibWeb/Layout/input/grid/row-height.html
index a1fb174fc0..3e225059b2 100644
--- a/Tests/LibWeb/Layout/input/grid/row-height.html
+++ b/Tests/LibWeb/Layout/input/grid/row-height.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/input/grid/template-areas.html b/Tests/LibWeb/Layout/input/grid/template-areas.html
index 51dd4c4224..aa5ab44103 100644
--- a/Tests/LibWeb/Layout/input/grid/template-areas.html
+++ b/Tests/LibWeb/Layout/input/grid/template-areas.html
@@ -1,8 +1,4 @@
<style>
- body {
- font-family: 'SerenitySans';
- }
-
.grid-container {
display: grid;
background-color: lightsalmon;
diff --git a/Tests/LibWeb/Layout/layout_test.sh b/Tests/LibWeb/Layout/layout_test.sh
index 11368c1d29..e52103ac49 100755
--- a/Tests/LibWeb/Layout/layout_test.sh
+++ b/Tests/LibWeb/Layout/layout_test.sh
@@ -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_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"
if cmp <(echo "${output_layout_dump}") "${expected_layout_dump_path}"; then