We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e010d0b commit 62093c5Copy full SHA for 62093c5
src/browser/html/document.zig
@@ -292,4 +292,15 @@ test "Browser.HTML.Document" {
292
.{ "elems.length", "1" },
293
.{ "elems[0]", "[object HTMLDivElement]" },
294
}, .{});
295
+
296
+ try runner.testCases(&.{
297
+ .{ "let a = document.createElement('a')", null },
298
+ .{ "a.href = \"https://lightpanda.io\"", null },
299
+ .{ "a.getClientRects()", null }, // Note this will be placed after the div of previous test
300
+ .{ "let a_again = document.elementFromPoint(1.5, 0.5)", null },
301
+ .{ "a_again", "[object HTMLAnchorElement]" },
302
+ .{ "a_again.href", "https://lightpanda.io" },
303
+ .{ "let a_agains = document.elementsFromPoint(1.5, 0.5)", null },
304
+ .{ "a_agains[0].href", "https://lightpanda.io" },
305
+ }, .{});
306
}
0 commit comments