From f5d67cefc199263ef801dc6448f70bc3dc64cb30 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 5 Nov 2024 16:27:08 +0000 Subject: [PATCH] Tests: Import a couple of CSS nesting tests from WPT This is partly to check that importing ref tests works, and that I didn't break the text-test import. --- .../css/css-nesting/nesting-basic-ref.html | 30 +++ .../css/css-nesting/nesting-basic.html | 112 +++++++++++ .../wpt-import/css/css-nesting/cssom.txt | 23 +++ .../wpt-import/css/css-nesting/cssom.html | 188 ++++++++++++++++++ 4 files changed, 353 insertions(+) create mode 100644 Tests/LibWeb/Ref/expected/wpt-import/css/css-nesting/nesting-basic-ref.html create mode 100644 Tests/LibWeb/Ref/input/wpt-import/css/css-nesting/nesting-basic.html create mode 100644 Tests/LibWeb/Text/expected/wpt-import/css/css-nesting/cssom.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/css/css-nesting/cssom.html diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-nesting/nesting-basic-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-nesting/nesting-basic-ref.html new file mode 100644 index 00000000000..8038f369cde --- /dev/null +++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-nesting/nesting-basic-ref.html @@ -0,0 +1,30 @@ + +Basic nesting + + + + +

Tests pass if block is green

+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-nesting/nesting-basic.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-nesting/nesting-basic.html new file mode 100644 index 00000000000..a7d6b75b471 --- /dev/null +++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-nesting/nesting-basic.html @@ -0,0 +1,112 @@ + +Basic nesting + + + + + +

Tests pass if block is green

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-nesting/cssom.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-nesting/cssom.txt new file mode 100644 index 00000000000..84299b8c6e1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-nesting/cssom.txt @@ -0,0 +1,23 @@ +Summary + +Harness status: OK + +Rerun + +Found 13 tests + +13 Fail +Details +Result Test Name MessageFail CSSStyleRule is a CSSGroupingRule +Fail Simple CSSOM manipulation of subrules +Fail Simple CSSOM manipulation of subrules 1 +Fail Simple CSSOM manipulation of subrules 2 +Fail Simple CSSOM manipulation of subrules 3 +Fail Simple CSSOM manipulation of subrules 4 +Fail Simple CSSOM manipulation of subrules 5 +Fail Simple CSSOM manipulation of subrules 6 +Fail Simple CSSOM manipulation of subrules 7 +Fail Simple CSSOM manipulation of subrules 8 +Fail Simple CSSOM manipulation of subrules 9 +Fail Simple CSSOM manipulation of subrules 10 +Fail Mutating the selectorText of outer rule invalidates inner rules \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-nesting/cssom.html b/Tests/LibWeb/Text/input/wpt-import/css/css-nesting/cssom.html new file mode 100644 index 00000000000..e3bf26d2d53 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-nesting/cssom.html @@ -0,0 +1,188 @@ + +Simple CSSOM manipulation of subrules + + + + + + + +