mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Move Notification from App to BrowserContext
This commit is contained in:
@@ -44,9 +44,11 @@ pub fn main() !void {
|
||||
defer test_arena.deinit();
|
||||
|
||||
var browser = try lp.Browser.init(app, .{});
|
||||
const notification = try lp.Notification.init(app.allocator);
|
||||
defer notification.deinit();
|
||||
defer browser.deinit();
|
||||
|
||||
const session = try browser.newSession();
|
||||
const session = try browser.newSession(notification);
|
||||
|
||||
var dir = try std.fs.cwd().openDir("src/browser/tests/legacy/", .{ .iterate = true, .no_follow = true });
|
||||
defer dir.close();
|
||||
|
||||
Reference in New Issue
Block a user