From 101f6b1d7e0f70b9f8aae989569f8efc2b15e760 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 15 May 2025 10:34:57 +0100 Subject: [PATCH] Tests: Import CSSMarginRule tests --- .../css/css-page/parsing/margin-rules-001.txt | 39 +++++++++ .../css/css-page/parsing/margin-rules-002.txt | 9 +++ .../css-page/parsing/margin-rules-001.html | 51 ++++++++++++ .../css-page/parsing/margin-rules-002.html | 79 +++++++++++++++++++ 4 files changed, 178 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-001.txt create mode 100644 Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-002.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-001.html create mode 100644 Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-002.html diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-001.txt new file mode 100644 index 00000000000..897e9ee99e2 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-001.txt @@ -0,0 +1,39 @@ +Harness status: OK + +Found 33 tests + +17 Pass +16 Fail +Pass margin-rules-001 +Pass @top-left-corner{ } should be an invalid rule +Pass @top-left{ } should be an invalid rule +Pass @top-center{ } should be an invalid rule +Pass @top-right{ } should be an invalid rule +Pass @top-right-corner{ } should be an invalid rule +Pass @bottom-left-corner{ } should be an invalid rule +Pass @bottom-left{ } should be an invalid rule +Pass @bottom-center{ } should be an invalid rule +Pass @bottom-right{ } should be an invalid rule +Pass @bottom-right-corner{ } should be an invalid rule +Pass @left-top{ } should be an invalid rule +Pass @left-middle{ } should be an invalid rule +Pass @left-bottom{ } should be an invalid rule +Pass @right-top{ } should be an invalid rule +Pass @right-middle{ } should be an invalid rule +Pass @right-bottom{ } should be an invalid rule +Fail @page { @top-left-corner { } } should be a valid rule +Fail @page { @top-left { } } should be a valid rule +Fail @page { @top-center { } } should be a valid rule +Fail @page { @top-right { } } should be a valid rule +Fail @page { @top-right-corner { } } should be a valid rule +Fail @page { @bottom-left-corner { } } should be a valid rule +Fail @page { @bottom-left { } } should be a valid rule +Fail @page { @bottom-center { } } should be a valid rule +Fail @page { @bottom-right { } } should be a valid rule +Fail @page { @bottom-right-corner { } } should be a valid rule +Fail @page { @left-top { } } should be a valid rule +Fail @page { @left-middle { } } should be a valid rule +Fail @page { @left-bottom { } } should be a valid rule +Fail @page { @right-top { } } should be a valid rule +Fail @page { @right-middle { } } should be a valid rule +Fail @page { @right-bottom { } } should be a valid rule \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-002.txt new file mode 100644 index 00000000000..11a2f6bad4c --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-page/parsing/margin-rules-002.txt @@ -0,0 +1,9 @@ +Harness status: OK + +Found 4 tests + +4 Fail +Fail margin rule without any preceding @page properties +Fail margin rule followed by @page properties +Fail margin rule preceded by @page properties +Fail margin rules with @page properties between \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-001.html b/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-001.html new file mode 100644 index 00000000000..2d505a53ff3 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-001.html @@ -0,0 +1,51 @@ + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-002.html b/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-002.html new file mode 100644 index 00000000000..4b18fc28d07 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-page/parsing/margin-rules-002.html @@ -0,0 +1,79 @@ + + + + + + + + + + +