This commit is contained in:
Karl Seguin
2026-03-30 09:32:22 +08:00
parent 78cb766298
commit 0d40aed1b7
2 changed files with 2 additions and 3 deletions

View File

@@ -935,7 +935,7 @@ test "cdp.page: addScriptToEvaluateOnNewDocument" {
try ctx.processMessage(.{ .id = 34, .method = "Page.reload" });
// wait for this event, which is sent after we've run the registered scripts
try ctx.expectSentEvent("Page.frameNavigated", .{
.frame = .{.loaderId = "LID-0000000002"},
.frame = .{ .loaderId = "LID-0000000002" },
}, .{});
const page = bc.session.currentPage() orelse unreachable;
@@ -947,5 +947,4 @@ test "cdp.page: addScriptToEvaluateOnNewDocument" {
const test_val = try ls.local.exec("window.__test2", null);
try testing.expectEqual(2, try test_val.toI32());
}
}