Silence test warnings

https://github.com/lightpanda-io/browser/pull/2368  added more warnings on JS
callback failure. The test for these naturally trigger the logging. Silence them
during testing.
This commit is contained in:
Karl Seguin
2026-05-07 18:59:46 +08:00
parent 4f7db8e974
commit 459c7a532a

View File

@@ -203,6 +203,9 @@ pub const JsApi = struct {
const testing = @import("../../testing.zig");
test "WebApi: EventTarget" {
const filter: testing.LogFilter = .init(&.{.js, .event});
defer filter.deinit();
// we create thousands of these per frame. Nothing should bloat it.
try testing.expectEqual(16, @sizeOf(EventTarget));
try testing.htmlRunner("events.html", .{});