mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
zig fmt
This commit is contained in:
@@ -33,7 +33,7 @@ pub fn registerTypes() []const type {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const Normalizer = *const fn([]const u8, *Page) []const u8;
|
const Normalizer = *const fn ([]const u8, *Page) []const u8;
|
||||||
pub const KeyValueList = @This();
|
pub const KeyValueList = @This();
|
||||||
|
|
||||||
_entries: std.ArrayListUnmanaged(Entry) = .empty,
|
_entries: std.ArrayListUnmanaged(Entry) = .empty,
|
||||||
|
|||||||
@@ -777,7 +777,7 @@ pub const JsApi = struct {
|
|||||||
pub const DOCUMENT_POSITION_CONTAINED_BY = bridge.property(0x10);
|
pub const DOCUMENT_POSITION_CONTAINED_BY = bridge.property(0x10);
|
||||||
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = bridge.property(0x20);
|
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = bridge.property(0x20);
|
||||||
|
|
||||||
pub const nodeName = bridge.accessor(struct{
|
pub const nodeName = bridge.accessor(struct {
|
||||||
fn wrap(self: *const Node, page: *Page) []const u8 {
|
fn wrap(self: *const Node, page: *Page) []const u8 {
|
||||||
return self.getNodeName(&page.buf);
|
return self.getNodeName(&page.buf);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ fn normalizeHeaderName(name: []const u8, page: *Page) []const u8 {
|
|||||||
return std.ascii.lowerString(&page.buf, name);
|
return std.ascii.lowerString(&page.buf, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub const JsApi = struct {
|
pub const JsApi = struct {
|
||||||
pub const bridge = js.Bridge(Headers);
|
pub const bridge = js.Bridge(Headers);
|
||||||
|
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ test "cdp Node: Writer" {
|
|||||||
.nodeId = 5,
|
.nodeId = 5,
|
||||||
.localName = "a",
|
.localName = "a",
|
||||||
.childNodeCount = 0,
|
.childNodeCount = 0,
|
||||||
.attributes = &.{"id", "a1"},
|
.attributes = &.{ "id", "a1" },
|
||||||
.parentId = 4,
|
.parentId = 4,
|
||||||
}, .{
|
}, .{
|
||||||
.nodeId = 6,
|
.nodeId = 6,
|
||||||
@@ -576,7 +576,7 @@ test "cdp Node: Writer" {
|
|||||||
.localName = "a",
|
.localName = "a",
|
||||||
.childNodeCount = 0,
|
.childNodeCount = 0,
|
||||||
.parentId = 6,
|
.parentId = 6,
|
||||||
.attributes = &.{"id", "a2"},
|
.attributes = &.{ "id", "a2" },
|
||||||
}},
|
}},
|
||||||
}, .{
|
}, .{
|
||||||
.nodeId = 8,
|
.nodeId = 8,
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const TestContext = struct {
|
|||||||
const full_url = try std.fmt.allocPrintSentinel(
|
const full_url = try std.fmt.allocPrintSentinel(
|
||||||
self.arena.allocator(),
|
self.arena.allocator(),
|
||||||
"http://127.0.0.1:9582/src/browser/tests/{s}",
|
"http://127.0.0.1:9582/src/browser/tests/{s}",
|
||||||
.{ url },
|
.{url},
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
try page.navigate(full_url, .{});
|
try page.navigate(full_url, .{});
|
||||||
|
|||||||
Reference in New Issue
Block a user