Scripts now properly block rendering

Re-enabled CDP tests

Fixed more tests
This commit is contained in:
Karl Seguin
2025-10-29 16:37:11 +08:00
parent 1a04ebce35
commit fb9cce747d
14 changed files with 175 additions and 205 deletions

View File

@@ -117,11 +117,12 @@ const TestContext = struct {
bc.session_id = sid;
}
if (opts.html) |html| {
if (bc.session_id == null) bc.session_id = "SID-X";
const page = try bc.session.createPage();
page.window.document = (try Document.init(html)).doc;
}
// @ZIGDOM
// if (opts.html) |html| {
// if (bc.session_id == null) bc.session_id = "SID-X";
// const page = try bc.session.createPage();
// page.window._document = (try Document.init(html)).doc;
// }
return bc;
}