Support options in observer and tests

This commit is contained in:
sjorsdonkers
2025-05-05 16:45:21 +02:00
parent c5c5accaa8
commit db28336e5d
3 changed files with 125 additions and 8 deletions

View File

@@ -506,7 +506,7 @@ test "Browser.DOM.Element" {
}, .{});
try runner.testCases(&.{
.{ "document.getElementById('para').clientWidth", "0" },
.{ "document.getElementById('para').clientWidth", "1" },
.{ "document.getElementById('para').clientHeight", "1" },
.{ "let r1 = document.getElementById('para').getBoundingClientRect()", "undefined" },
@@ -527,7 +527,7 @@ test "Browser.DOM.Element" {
.{ "r3.width", "1" },
.{ "r3.height", "1" },
.{ "document.getElementById('para').clientWidth", "2" },
.{ "document.getElementById('para').clientWidth", "3" },
.{ "document.getElementById('para').clientHeight", "1" },
}, .{});