From a48e693ea1458088a548a06e9598507d27a531f0 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 16 May 2025 11:11:18 +0200 Subject: [PATCH] LibWeb: Add tests for `styleWithCSS` and `useCSS` editing commands --- .../Editing/execCommand-styleWithCSS.txt | 4 +++ .../expected/Editing/execCommand-useCSS.txt | 4 +++ .../Editing/execCommand-styleWithCSS.html | 30 +++++++++++++++++++ .../input/Editing/execCommand-useCSS.html | 30 +++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/Editing/execCommand-styleWithCSS.txt create mode 100644 Tests/LibWeb/Text/expected/Editing/execCommand-useCSS.txt create mode 100644 Tests/LibWeb/Text/input/Editing/execCommand-styleWithCSS.html create mode 100644 Tests/LibWeb/Text/input/Editing/execCommand-useCSS.html diff --git a/Tests/LibWeb/Text/expected/Editing/execCommand-styleWithCSS.txt b/Tests/LibWeb/Text/expected/Editing/execCommand-styleWithCSS.txt new file mode 100644 index 00000000000..d1e0c0c7ad1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/Editing/execCommand-styleWithCSS.txt @@ -0,0 +1,4 @@ +Div contents: "foobar" bold state: false +styleWithCSS supported: true +Div contents: "foobar" bold state: true +Div contents: "foobar" bold state: true diff --git a/Tests/LibWeb/Text/expected/Editing/execCommand-useCSS.txt b/Tests/LibWeb/Text/expected/Editing/execCommand-useCSS.txt new file mode 100644 index 00000000000..eceb8c156e8 --- /dev/null +++ b/Tests/LibWeb/Text/expected/Editing/execCommand-useCSS.txt @@ -0,0 +1,4 @@ +Div contents: "foobar" bold state: false +useCSS supported: true +Div contents: "foobar" bold state: true +Div contents: "foobar" bold state: true diff --git a/Tests/LibWeb/Text/input/Editing/execCommand-styleWithCSS.html b/Tests/LibWeb/Text/input/Editing/execCommand-styleWithCSS.html new file mode 100644 index 00000000000..58f1a194bb6 --- /dev/null +++ b/Tests/LibWeb/Text/input/Editing/execCommand-styleWithCSS.html @@ -0,0 +1,30 @@ + + +
foobar
+ diff --git a/Tests/LibWeb/Text/input/Editing/execCommand-useCSS.html b/Tests/LibWeb/Text/input/Editing/execCommand-useCSS.html new file mode 100644 index 00000000000..450544be737 --- /dev/null +++ b/Tests/LibWeb/Text/input/Editing/execCommand-useCSS.html @@ -0,0 +1,30 @@ + + +
foobar
+