Skip to content

Commit 0e6197a

Browse files
committed
instanceof svgelement test
1 parent 52c01f2 commit 0e6197a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/browser/html/svg_elements.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ pub const SVGElement = struct {
2929
// a Self type to cast to.
3030
pub const subtype = .node;
3131
};
32+
33+
const testing = @import("../../testing.zig");
34+
test "Browser.HTML.SVGElement" {
35+
var runner = try testing.jsRunner(testing.tracking_allocator, .{});
36+
defer runner.deinit();
37+
38+
try runner.testCases(&.{
39+
.{ "'AString' instanceof SVGElement", "false" },
40+
}, .{});
41+
}

0 commit comments

Comments
 (0)