mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
work on fixing github workflows
This commit is contained in:
@@ -33,7 +33,6 @@ const storage = @import("../storage/storage.zig");
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
|
||||
pub const Window = struct {
|
||||
pub const prototype = *EventTarget;
|
||||
pub const global_type = true;
|
||||
|
||||
// Extend libdom event target for pure zig struct.
|
||||
base: parser.EventTargetTBase = parser.EventTargetTBase{},
|
||||
@@ -58,6 +57,7 @@ pub const Window = struct {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
pub fn replaceLocation(self: *Window, loc: Location) !void {
|
||||
self.location = loc;
|
||||
if (self.document) |doc| {
|
||||
|
||||
@@ -227,6 +227,7 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
|
||||
// Hey, look! This is our first real usage of the TYPE_LOOKUP.
|
||||
// Just like we said above, given a type, we can get its
|
||||
// template index.
|
||||
|
||||
const proto_index = @field(TYPE_LOOKUP, proto_name);
|
||||
templates[i].inherit(templates[proto_index]);
|
||||
}
|
||||
@@ -366,7 +367,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
|
||||
// FunctionTemplate of the isolate (in startExecutor)
|
||||
fn attachClass(self: *Self, comptime Struct: type, template: v8.FunctionTemplate) void {
|
||||
const template_proto = template.getPrototypeTemplate();
|
||||
|
||||
inline for (@typeInfo(Struct).@"struct".decls) |declaration| {
|
||||
const name = declaration.name;
|
||||
if (comptime name[0] == '_') {
|
||||
|
||||
@@ -17,14 +17,15 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
const std = @import("std");
|
||||
const parser = @import("browser/netsurf.zig");
|
||||
const Allocator = std.mem.Allocator;
|
||||
|
||||
pub const allocator = std.testing.allocator;
|
||||
pub const expectError = std.testing.expectError;
|
||||
pub const expectString = std.testing.expectEqualStrings;
|
||||
pub const expectEqualSlices = std.testing.expectEqualSlices;
|
||||
|
||||
const App = @import("app.zig").App;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const parser = @import("browser/netsurf.zig");
|
||||
|
||||
// Merged std.testing.expectEqual and std.testing.expectString
|
||||
// can be useful when testing fields of an anytype an you don't know
|
||||
@@ -388,10 +389,8 @@ pub const JsRunner = struct {
|
||||
errdefer runner.env.deinit();
|
||||
|
||||
runner.url = try URL.parse("https://lightpanda.io/opensource-browser/", null);
|
||||
errdefer runner.env.deinit();
|
||||
|
||||
runner.renderer = Renderer.init(arena);
|
||||
|
||||
runner.cookie_jar = storage.CookieJar.init(arena);
|
||||
runner.loop = try Loop.init(arena);
|
||||
errdefer runner.loop.deinit();
|
||||
|
||||
Reference in New Issue
Block a user