mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
Merge pull request #1284 from lightpanda-io/fix-page-navigate
Fix page navigate with legacy_test
This commit is contained in:
@@ -85,8 +85,8 @@ pub fn run(allocator: Allocator, file: []const u8, session: *lp.Session) !void {
|
|||||||
try_catch.init(js_context);
|
try_catch.init(js_context);
|
||||||
defer try_catch.deinit();
|
defer try_catch.deinit();
|
||||||
|
|
||||||
try page.navigate(url, .{}, .{ .push = null });
|
try page.navigate(url, .{});
|
||||||
session.wait(2000);
|
_ = session.wait(2000);
|
||||||
|
|
||||||
page._session.browser.runMicrotasks();
|
page._session.browser.runMicrotasks();
|
||||||
page._session.browser.runMessageLoop();
|
page._session.browser.runMessageLoop();
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ fn run(
|
|||||||
defer session.removePage();
|
defer session.removePage();
|
||||||
|
|
||||||
const url = try std.fmt.allocPrintSentinel(arena, "http://localhost:9582/{s}", .{test_file}, 0);
|
const url = try std.fmt.allocPrintSentinel(arena, "http://localhost:9582/{s}", .{test_file}, 0);
|
||||||
try page.navigate(url, .{}, .{ .push = null });
|
try page.navigate(url, .{});
|
||||||
|
|
||||||
_ = page.wait(2000);
|
_ = page.wait(2000);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user