@@ -33,7 +33,7 @@ pub fn processMessage(cmd: anytype) !void {
3333 setDownloadBehavior ,
3434 getWindowForTarget ,
3535 setWindowBounds ,
36- }, cmd .action ) orelse return error .UnknownMethod ;
36+ }, cmd .input . action ) orelse return error .UnknownMethod ;
3737
3838 switch (action ) {
3939 .getVersion = > return getVersion (cmd ),
@@ -88,7 +88,6 @@ test "cdp.browser: getVersion" {
8888
8989 try ctx .processMessage (.{
9090 .id = 32 ,
91- .sessionID = "leto" ,
9291 .method = "Browser.getVersion" ,
9392 });
9493
@@ -99,7 +98,7 @@ test "cdp.browser: getVersion" {
9998 .revision = REVISION ,
10099 .userAgent = USER_AGENT ,
101100 .jsVersion = JS_VERSION ,
102- }, .{ .id = 32 , .index = 0 });
101+ }, .{ .id = 32 , .index = 0 , . session_id = null });
103102}
104103
105104test "cdp.browser: getWindowForTarget" {
@@ -108,13 +107,12 @@ test "cdp.browser: getWindowForTarget" {
108107
109108 try ctx .processMessage (.{
110109 .id = 33 ,
111- .sessionId = "leto" ,
112110 .method = "Browser.getWindowForTarget" ,
113111 });
114112
115113 try ctx .expectSentCount (1 );
116114 try ctx .expectSentResult (.{
117115 .windowId = DEV_TOOLS_WINDOW_ID ,
118116 .bounds = .{ .windowState = "normal" },
119- }, .{ .id = 33 , .index = 0 , .session_id = "leto" });
117+ }, .{ .id = 33 , .index = 0 , .session_id = null });
120118}
0 commit comments