From 482fa2d4e24049f0173b5a8743060ba03f8c6832 Mon Sep 17 00:00:00 2001 From: Simon Wanner Date: Fri, 17 Mar 2023 23:27:15 +0100 Subject: [PATCH] Tests/LibWeb: Add two tests for lh and rlh units --- Tests/LibWeb/Layout/expected/lh-1.txt | 6 ++++++ Tests/LibWeb/Layout/expected/lh-2.txt | 6 ++++++ Tests/LibWeb/Layout/input/lh-1.html | 23 +++++++++++++++++++++++ Tests/LibWeb/Layout/input/lh-2.html | 22 ++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/lh-1.txt create mode 100644 Tests/LibWeb/Layout/expected/lh-2.txt create mode 100644 Tests/LibWeb/Layout/input/lh-1.html create mode 100644 Tests/LibWeb/Layout/input/lh-2.html diff --git a/Tests/LibWeb/Layout/expected/lh-1.txt b/Tests/LibWeb/Layout/expected/lh-1.txt new file mode 100644 index 0000000000..d0a936af55 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/lh-1.txt @@ -0,0 +1,6 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x116 children: not-inline + BlockContainer at (8,8) content-size 784x100 children: not-inline + BlockContainer at (8,8) content-size 100x100 children: not-inline + BlockContainer at (8,8) content-size 100x100 children: inline + TextNode <#text> diff --git a/Tests/LibWeb/Layout/expected/lh-2.txt b/Tests/LibWeb/Layout/expected/lh-2.txt new file mode 100644 index 0000000000..d0a936af55 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/lh-2.txt @@ -0,0 +1,6 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x116 children: not-inline + BlockContainer at (8,8) content-size 784x100 children: not-inline + BlockContainer at (8,8) content-size 100x100 children: not-inline + BlockContainer at (8,8) content-size 100x100 children: inline + TextNode <#text> diff --git a/Tests/LibWeb/Layout/input/lh-1.html b/Tests/LibWeb/Layout/input/lh-1.html new file mode 100644 index 0000000000..a1af79c08c --- /dev/null +++ b/Tests/LibWeb/Layout/input/lh-1.html @@ -0,0 +1,23 @@ + + +
diff --git a/Tests/LibWeb/Layout/input/lh-2.html b/Tests/LibWeb/Layout/input/lh-2.html new file mode 100644 index 0000000000..b6eb3c0af0 --- /dev/null +++ b/Tests/LibWeb/Layout/input/lh-2.html @@ -0,0 +1,22 @@ + + +