Skip to content

Truly independent web browser

Tests/LibWeb: Test the hovered link in editable content

Andreas Kling1671a764135d
diff --git a/Tests/LibWeb/Text/expected/UIEvents/hovered-link.txt b/Tests/LibWeb/Text/expected/UIEvents/hovered-link.txt
index 1e4894cf594..e259d11752c 100644
--- a/Tests/LibWeb/Text/expected/UIEvents/hovered-link.txt
+++ b/Tests/LibWeb/Text/expected/UIEvents/hovered-link.txt
@@ -4,3 +4,5 @@ an anchor without href: null
back on a link: https://example.com/absolute
no link: null
a link around a slot: https://example.com/base/slot
+a link in editable content: https://example.com/base/in-editable-content
+a link that is an editing host: https://example.com/base/editing-host
diff --git a/Tests/LibWeb/Text/input/UIEvents/hovered-link.html b/Tests/LibWeb/Text/input/UIEvents/hovered-link.html
index 62c137ad9e8..2ba27e4c799 100644
--- a/Tests/LibWeb/Text/input/UIEvents/hovered-link.html
+++ b/Tests/LibWeb/Text/input/UIEvents/hovered-link.html
@@ -10,6 +10,8 @@
<a></a>
<div></div>
<div id="host"><span>Slotted text</span></div>
+<div contenteditable><a href="in-editable-content"></a></div>
+<a href="editing-host" contenteditable></a>
<script>
test(() => {
host.attachShadow({ mode: "open" }).innerHTML = `<a href="slot"><slot></slot></a>`;
@@ -25,5 +27,7 @@
hover("back on a link", 10);
hover("no link", 70);
hover("a link around a slot", 90);
+ hover("a link in editable content", 110);
+ hover("a link that is an editing host", 130);
});
</script>