mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
confirm data is retained in elementFromPoint
This commit is contained in:
@@ -327,6 +327,17 @@ test "Browser.HTML.Document" {
|
||||
.{ "elems[0]", "[object HTMLDivElement]" },
|
||||
}, .{});
|
||||
|
||||
try runner.testCases(&.{
|
||||
.{ "let a = document.createElement('a')", null },
|
||||
.{ "a.href = \"https://lightpanda.io\"", null },
|
||||
.{ "a.getClientRects()", null }, // Note this will be placed after the div of previous test
|
||||
.{ "let a_again = document.elementFromPoint(1.5, 0.5)", null },
|
||||
.{ "a_again", "[object HTMLAnchorElement]" },
|
||||
.{ "a_again.href", "https://lightpanda.io" },
|
||||
.{ "let a_agains = document.elementsFromPoint(1.5, 0.5)", null },
|
||||
.{ "a_agains[0].href", "https://lightpanda.io" },
|
||||
}, .{});
|
||||
|
||||
try runner.testCases(&.{
|
||||
.{ "!document.all", "true" },
|
||||
.{ "!!document.all", "false" },
|
||||
|
||||
Reference in New Issue
Block a user