mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
remove some unused imports
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const builtin = @import("builtin");
|
|
||||||
|
|
||||||
const Build = std.Build;
|
const Build = std.Build;
|
||||||
|
|
||||||
|
|||||||
@@ -274,14 +274,6 @@ fn parseContentType(value: []const u8) !struct { ContentType, usize } {
|
|||||||
} }, attribute_start };
|
} }, attribute_start };
|
||||||
}
|
}
|
||||||
|
|
||||||
const T_SPECIAL = blk: {
|
|
||||||
var v = [_]bool{false} ** 256;
|
|
||||||
for ("()<>@,;:\\\"/[]?=") |b| {
|
|
||||||
v[b] = true;
|
|
||||||
}
|
|
||||||
break :blk v;
|
|
||||||
};
|
|
||||||
|
|
||||||
const VALID_CODEPOINTS = blk: {
|
const VALID_CODEPOINTS = blk: {
|
||||||
var v: [256]bool = undefined;
|
var v: [256]bool = undefined;
|
||||||
for (0..256) |i| {
|
for (0..256) |i| {
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const JS = @import("js/js.zig");
|
const JS = @import("js/js.zig");
|
||||||
const builtin = @import("builtin");
|
const builtin = @import("builtin");
|
||||||
const reflect = @import("reflect.zig");
|
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ const Element = @import("webapi/Element.zig");
|
|||||||
const Window = @import("webapi/Window.zig");
|
const Window = @import("webapi/Window.zig");
|
||||||
const Location = @import("webapi/Location.zig");
|
const Location = @import("webapi/Location.zig");
|
||||||
const Document = @import("webapi/Document.zig");
|
const Document = @import("webapi/Document.zig");
|
||||||
const DocumentFragment = @import("webapi/DocumentFragment.zig");
|
|
||||||
const ShadowRoot = @import("webapi/ShadowRoot.zig");
|
const ShadowRoot = @import("webapi/ShadowRoot.zig");
|
||||||
const Performance = @import("webapi/Performance.zig");
|
const Performance = @import("webapi/Performance.zig");
|
||||||
const Screen = @import("webapi/Screen.zig");
|
const Screen = @import("webapi/Screen.zig");
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ const Page = @import("Page.zig");
|
|||||||
const Browser = @import("Browser.zig");
|
const Browser = @import("Browser.zig");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
const NavigateOpts = Page.NavigateOpts;
|
|
||||||
const IS_DEBUG = @import("builtin").mode == .Debug;
|
const IS_DEBUG = @import("builtin").mode == .Debug;
|
||||||
|
|
||||||
// Session is like a browser's tab.
|
// Session is like a browser's tab.
|
||||||
|
|||||||
@@ -495,11 +495,6 @@ pub fn concatQueryString(arena: Allocator, url: []const u8, query_string: []cons
|
|||||||
return buf.items[0 .. buf.items.len - 1 :0];
|
return buf.items[0 .. buf.items.len - 1 :0];
|
||||||
}
|
}
|
||||||
|
|
||||||
const KnownProtocol = enum {
|
|
||||||
@"http:",
|
|
||||||
@"https:",
|
|
||||||
};
|
|
||||||
|
|
||||||
const testing = @import("../testing.zig");
|
const testing = @import("../testing.zig");
|
||||||
test "URL: isCompleteHTTPUrl" {
|
test "URL: isCompleteHTTPUrl" {
|
||||||
try testing.expectEqual(true, isCompleteHTTPUrl("http://example.com/about"));
|
try testing.expectEqual(true, isCompleteHTTPUrl("http://example.com/about"));
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const log = @import("../../log.zig");
|
|||||||
const js = @import("js.zig");
|
const js = @import("js.zig");
|
||||||
const v8 = js.v8;
|
const v8 = js.v8;
|
||||||
|
|
||||||
const bridge = @import("bridge.zig");
|
|
||||||
const Context = @import("Context.zig");
|
const Context = @import("Context.zig");
|
||||||
|
|
||||||
const Page = @import("../Page.zig");
|
const Page = @import("../Page.zig");
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const v8 = js.v8;
|
|||||||
const log = @import("../../log.zig");
|
const log = @import("../../log.zig");
|
||||||
|
|
||||||
const bridge = @import("bridge.zig");
|
const bridge = @import("bridge.zig");
|
||||||
const Caller = @import("Caller.zig");
|
|
||||||
const Context = @import("Context.zig");
|
const Context = @import("Context.zig");
|
||||||
const Platform = @import("Platform.zig");
|
const Platform = @import("Platform.zig");
|
||||||
const Snapshot = @import("Snapshot.zig");
|
const Snapshot = @import("Snapshot.zig");
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ const Env = @import("Env.zig");
|
|||||||
const Context = @import("Context.zig");
|
const Context = @import("Context.zig");
|
||||||
|
|
||||||
const Page = @import("../Page.zig");
|
const Page = @import("../Page.zig");
|
||||||
const ScriptManager = @import("../ScriptManager.zig");
|
|
||||||
|
|
||||||
const ArenaAllocator = std.heap.ArenaAllocator;
|
const ArenaAllocator = std.heap.ArenaAllocator;
|
||||||
|
|
||||||
@@ -83,7 +82,7 @@ pub fn createContext(self: *ExecutionWorld, page: *Page, enter: bool) !*Context
|
|||||||
|
|
||||||
if (comptime IS_DEBUG) {
|
if (comptime IS_DEBUG) {
|
||||||
// Getting this into the snapshot is tricky (anything involving the
|
// Getting this into the snapshot is tricky (anything involving the
|
||||||
// global is tricky). Easier to do here, and in debug more, we're
|
// global is tricky). Easier to do here, and in debug mode, we're
|
||||||
// fine with paying the small perf hit.
|
// fine with paying the small perf hit.
|
||||||
const js_global = v8.FunctionTemplate.initDefault(isolate);
|
const js_global = v8.FunctionTemplate.initDefault(isolate);
|
||||||
const global_template = js_global.getInstanceTemplate();
|
const global_template = js_global.getInstanceTemplate();
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ const std = @import("std");
|
|||||||
const js = @import("js.zig");
|
const js = @import("js.zig");
|
||||||
const v8 = js.v8;
|
const v8 = js.v8;
|
||||||
|
|
||||||
const Caller = @import("Caller.zig");
|
|
||||||
const Context = @import("Context.zig");
|
|
||||||
const PersistentFunction = v8.Persistent(v8.Function);
|
const PersistentFunction = v8.Persistent(v8.Function);
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ const v8 = js.v8;
|
|||||||
|
|
||||||
const IS_DEBUG = @import("builtin").mode == .Debug;
|
const IS_DEBUG = @import("builtin").mode == .Debug;
|
||||||
|
|
||||||
const Caller = @import("Caller.zig");
|
|
||||||
const Context = @import("Context.zig");
|
const Context = @import("Context.zig");
|
||||||
const PersistentObject = v8.Persistent(v8.Object);
|
const PersistentObject = v8.Persistent(v8.Object);
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const js = @import("js.zig");
|
const js = @import("js.zig");
|
||||||
const v8 = js.v8;
|
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
|
||||||
|
|
||||||
// This only exists so that we know whether a function wants the opaque
|
// This only exists so that we know whether a function wants the opaque
|
||||||
// JS argument (js.Object), or if it wants the receiver as an opaque
|
// JS argument (js.Object), or if it wants the receiver as an opaque
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ pub const Object = @import("Object.zig");
|
|||||||
pub const TryCatch = @import("TryCatch.zig");
|
pub const TryCatch = @import("TryCatch.zig");
|
||||||
pub const Function = @import("Function.zig");
|
pub const Function = @import("Function.zig");
|
||||||
|
|
||||||
const Caller = @import("Caller.zig");
|
|
||||||
const Page = @import("../Page.zig");
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
||||||
pub fn Bridge(comptime T: type) type {
|
pub fn Bridge(comptime T: type) type {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const Range = @import("Range.zig");
|
|||||||
|
|
||||||
const AbstractRange = @This();
|
const AbstractRange = @This();
|
||||||
|
|
||||||
const _prototype_root = true;
|
pub const _prototype_root = true;
|
||||||
|
|
||||||
_type: Type,
|
_type: Type,
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const Page = @import("../Page.zig");
|
|||||||
/// https://developer.mozilla.org/en-US/docs/Web/API/Blob
|
/// https://developer.mozilla.org/en-US/docs/Web/API/Blob
|
||||||
const Blob = @This();
|
const Blob = @This();
|
||||||
|
|
||||||
const _prototype_root = true;
|
pub const _prototype_root = true;
|
||||||
|
|
||||||
_type: Type,
|
_type: Type,
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ const js = @import("../js/js.zig");
|
|||||||
const Page = @import("../Page.zig");
|
const Page = @import("../Page.zig");
|
||||||
const Node = @import("Node.zig");
|
const Node = @import("Node.zig");
|
||||||
const Document = @import("Document.zig");
|
const Document = @import("Document.zig");
|
||||||
const HTMLDocument = @import("HTMLDocument.zig");
|
|
||||||
const DocumentType = @import("DocumentType.zig");
|
const DocumentType = @import("DocumentType.zig");
|
||||||
|
|
||||||
const DOMImplementation = @This();
|
const DOMImplementation = @This();
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ const Page = @import("../Page.zig");
|
|||||||
|
|
||||||
const Node = @import("Node.zig");
|
const Node = @import("Node.zig");
|
||||||
const NodeFilter = @import("NodeFilter.zig");
|
const NodeFilter = @import("NodeFilter.zig");
|
||||||
const TreeWalker = @import("TreeWalker.zig");
|
|
||||||
pub const FilterOpts = NodeFilter.FilterOpts;
|
pub const FilterOpts = NodeFilter.FilterOpts;
|
||||||
|
|
||||||
const DOMNodeIterator = @This();
|
const DOMNodeIterator = @This();
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ const std = @import("std");
|
|||||||
|
|
||||||
const js = @import("../js/js.zig");
|
const js = @import("../js/js.zig");
|
||||||
const Page = @import("../Page.zig");
|
const Page = @import("../Page.zig");
|
||||||
const Document = @import("Document.zig");
|
|
||||||
const HTMLDocument = @import("HTMLDocument.zig");
|
const HTMLDocument = @import("HTMLDocument.zig");
|
||||||
|
|
||||||
const DOMParser = @This();
|
const DOMParser = @This();
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
const DOMRect = @This();
|
const DOMRect = @This();
|
||||||
|
|
||||||
const js = @import("../js/js.zig");
|
const js = @import("../js/js.zig");
|
||||||
const Page = @import("../Page.zig");
|
|
||||||
|
|
||||||
_x: f64,
|
_x: f64,
|
||||||
_y: f64,
|
_y: f64,
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
const js = @import("../js/js.zig");
|
const js = @import("../js/js.zig");
|
||||||
const Page = @import("../Page.zig");
|
|
||||||
const Node = @import("Node.zig");
|
const Node = @import("Node.zig");
|
||||||
|
|
||||||
const DocumentType = @This();
|
const DocumentType = @This();
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const String = @import("../../string.zig").String;
|
|||||||
|
|
||||||
pub const Event = @This();
|
pub const Event = @This();
|
||||||
|
|
||||||
const _prototype_root = true;
|
pub const _prototype_root = true;
|
||||||
_type: Type,
|
_type: Type,
|
||||||
|
|
||||||
_bubbles: bool = false,
|
_bubbles: bool = false,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const Event = @import("Event.zig");
|
|||||||
|
|
||||||
const EventTarget = @This();
|
const EventTarget = @This();
|
||||||
|
|
||||||
const _prototype_root = true;
|
pub const _prototype_root = true;
|
||||||
_type: Type,
|
_type: Type,
|
||||||
|
|
||||||
pub const Type = union(enum) {
|
pub const Type = union(enum) {
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const js = @import("../js/js.zig");
|
const js = @import("../js/js.zig");
|
||||||
const Page = @import("../Page.zig");
|
|
||||||
const Node = @import("Node.zig");
|
const Node = @import("Node.zig");
|
||||||
|
|
||||||
const NodeFilter = @This();
|
const NodeFilter = @This();
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const js = @import("../js/js.zig");
|
const js = @import("../js/js.zig");
|
||||||
const Page = @import("../Page.zig");
|
|
||||||
const Element = @import("Element.zig");
|
const Element = @import("Element.zig");
|
||||||
|
|
||||||
pub const ResizeObserver = @This();
|
pub const ResizeObserver = @This();
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const js = @import("../../js/js.zig");
|
|
||||||
|
|
||||||
const Node = @import("../Node.zig");
|
const Node = @import("../Node.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const Page = @import("../../Page.zig");
|
|||||||
const Element = @import("../Element.zig");
|
const Element = @import("../Element.zig");
|
||||||
const TreeWalker = @import("../TreeWalker.zig");
|
const TreeWalker = @import("../TreeWalker.zig");
|
||||||
const NodeLive = @import("node_live.zig").NodeLive;
|
const NodeLive = @import("node_live.zig").NodeLive;
|
||||||
const Form = @import("../element/html/Form.zig");
|
|
||||||
|
|
||||||
const Mode = enum {
|
const Mode = enum {
|
||||||
tag,
|
tag,
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const Page = @import("../../Page.zig");
|
|||||||
const Node = @import("../Node.zig");
|
const Node = @import("../Node.zig");
|
||||||
const Element = @import("../Element.zig");
|
const Element = @import("../Element.zig");
|
||||||
const HTMLCollection = @import("HTMLCollection.zig");
|
const HTMLCollection = @import("HTMLCollection.zig");
|
||||||
const NodeLive = @import("node_live.zig").NodeLive;
|
|
||||||
|
|
||||||
const HTMLOptionsCollection = @This();
|
const HTMLOptionsCollection = @This();
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,10 @@ const log = @import("../../..//log.zig");
|
|||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const Node = @import("../Node.zig");
|
const Node = @import("../Node.zig");
|
||||||
const Element = @import("../Element.zig");
|
|
||||||
|
|
||||||
const ChildNodes = @import("ChildNodes.zig");
|
const ChildNodes = @import("ChildNodes.zig");
|
||||||
const RadioNodeList = @import("RadioNodeList.zig");
|
const RadioNodeList = @import("RadioNodeList.zig");
|
||||||
const SelectorList = @import("../selector/List.zig");
|
const SelectorList = @import("../selector/List.zig");
|
||||||
const HTMLFormControlsCollection = @import("HTMLFormControlsCollection.zig");
|
|
||||||
|
|
||||||
const Mode = enum {
|
const Mode = enum {
|
||||||
child_nodes,
|
child_nodes,
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const builtin = @import("builtin");
|
|
||||||
|
|
||||||
const String = @import("../../../string.zig").String;
|
const String = @import("../../../string.zig").String;
|
||||||
|
|
||||||
@@ -30,8 +29,6 @@ const TreeWalker = @import("../TreeWalker.zig");
|
|||||||
const Selector = @import("../selector/Selector.zig");
|
const Selector = @import("../selector/Selector.zig");
|
||||||
const Form = @import("../element/html/Form.zig");
|
const Form = @import("../element/html/Form.zig");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
|
||||||
|
|
||||||
const Mode = enum {
|
const Mode = enum {
|
||||||
tag,
|
tag,
|
||||||
tag_name,
|
tag_name,
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ const Page = @import("../../../Page.zig");
|
|||||||
const Node = @import("../../Node.zig");
|
const Node = @import("../../Node.zig");
|
||||||
const Element = @import("../../Element.zig");
|
const Element = @import("../../Element.zig");
|
||||||
const HtmlElement = @import("../Html.zig");
|
const HtmlElement = @import("../Html.zig");
|
||||||
const TreeWalker = @import("../../TreeWalker.zig");
|
|
||||||
const collections = @import("../../collections.zig");
|
const collections = @import("../../collections.zig");
|
||||||
|
|
||||||
pub const Input = @import("Input.zig");
|
pub const Input = @import("Input.zig");
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Event = @import("../Event.zig");
|
const Event = @import("../Event.zig");
|
||||||
const UIEvent = @import("UIEvent.zig");
|
const UIEvent = @import("UIEvent.zig");
|
||||||
const EventTarget = @import("../EventTarget.zig");
|
|
||||||
const Window = @import("../Window.zig");
|
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ const std = @import("std");
|
|||||||
const Event = @import("../Event.zig");
|
const Event = @import("../Event.zig");
|
||||||
const UIEvent = @import("UIEvent.zig");
|
const UIEvent = @import("UIEvent.zig");
|
||||||
const EventTarget = @import("../EventTarget.zig");
|
const EventTarget = @import("../EventTarget.zig");
|
||||||
const Window = @import("../Window.zig");
|
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Event = @import("../Event.zig");
|
const Event = @import("../Event.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const Navigaton = @import("../navigation/Navigation.zig");
|
|
||||||
const NavigationHistoryEntry = @import("../navigation/NavigationHistoryEntry.zig");
|
const NavigationHistoryEntry = @import("../navigation/NavigationHistoryEntry.zig");
|
||||||
const NavigationType = @import("../navigation/root.zig").NavigationType;
|
const NavigationType = @import("../navigation/root.zig").NavigationType;
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const log = @import("../../../log.zig");
|
|
||||||
// const Window = @import("../html/window.zig").Window;
|
|
||||||
const Event = @import("../Event.zig");
|
const Event = @import("../Event.zig");
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const log = @import("../../../log.zig");
|
|
||||||
// const Window = @import("../html/window.zig").Window;
|
|
||||||
const Event = @import("../Event.zig");
|
const Event = @import("../Event.zig");
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const EventTarget = @import("../EventTarget.zig");
|
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const Event = @import("../Event.zig");
|
|
||||||
|
const EventTarget = @import("../EventTarget.zig");
|
||||||
const NavigationCurrentEntryChangeEvent = @import("../event/NavigationCurrentEntryChangeEvent.zig");
|
const NavigationCurrentEntryChangeEvent = @import("../event/NavigationCurrentEntryChangeEvent.zig");
|
||||||
|
|
||||||
pub const NavigationEventTarget = @This();
|
pub const NavigationEventTarget = @This();
|
||||||
|
|||||||
@@ -17,13 +17,9 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const log = @import("../../../log.zig");
|
|
||||||
|
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const Page = @import("../../Page.zig");
|
|
||||||
|
|
||||||
const Navigation = @import("Navigation.zig");
|
|
||||||
const NavigationEventTarget = @import("NavigationEventTarget.zig");
|
|
||||||
const NavigationHistoryEntry = @import("NavigationHistoryEntry.zig");
|
const NavigationHistoryEntry = @import("NavigationHistoryEntry.zig");
|
||||||
|
|
||||||
pub const NavigationType = enum {
|
pub const NavigationType = enum {
|
||||||
|
|||||||
@@ -25,11 +25,9 @@ const js = @import("../../js/js.zig");
|
|||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const URL = @import("../../URL.zig");
|
const URL = @import("../../URL.zig");
|
||||||
|
|
||||||
const Headers = @import("Headers.zig");
|
|
||||||
const Request = @import("Request.zig");
|
const Request = @import("Request.zig");
|
||||||
const Response = @import("Response.zig");
|
const Response = @import("Response.zig");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
|
||||||
const IS_DEBUG = @import("builtin").mode == .Debug;
|
const IS_DEBUG = @import("builtin").mode == .Debug;
|
||||||
|
|
||||||
const Fetch = @This();
|
const Fetch = @This();
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const js = @import("../../js/js.zig");
|
const js = @import("../../js/js.zig");
|
||||||
const log = @import("../../../log.zig");
|
const log = @import("../../../log.zig");
|
||||||
const String = @import("../../../string.zig").String;
|
|
||||||
|
|
||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const KeyValueList = @import("../KeyValueList.zig");
|
const KeyValueList = @import("../KeyValueList.zig");
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ const Allocator = std.mem.Allocator;
|
|||||||
const Page = @import("../../Page.zig");
|
const Page = @import("../../Page.zig");
|
||||||
const FormData = @import("FormData.zig");
|
const FormData = @import("FormData.zig");
|
||||||
const KeyValueList = @import("../KeyValueList.zig");
|
const KeyValueList = @import("../KeyValueList.zig");
|
||||||
const GenericIterator = @import("../collections/iterator.zig").Entry;
|
|
||||||
|
|
||||||
const URLSearchParams = @This();
|
const URLSearchParams = @This();
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Page = @import("../../browser/Page.zig");
|
|
||||||
|
|
||||||
pub fn processMessage(cmd: anytype) !void {
|
pub fn processMessage(cmd: anytype) !void {
|
||||||
const action = std.meta.stringToEnum(enum {
|
const action = std.meta.stringToEnum(enum {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const posix = std.posix;
|
|
||||||
|
|
||||||
pub const c = @cImport({
|
pub const c = @cImport({
|
||||||
@cInclude("curl/curl.h");
|
@cInclude("curl/curl.h");
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ pub const js = @import("browser/js/js.zig");
|
|||||||
pub const dump = @import("browser/dump.zig");
|
pub const dump = @import("browser/dump.zig");
|
||||||
pub const build_config = @import("build_config");
|
pub const build_config = @import("build_config");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
|
||||||
|
|
||||||
pub const FetchOpts = struct {
|
pub const FetchOpts = struct {
|
||||||
wait_ms: u32 = 5000,
|
wait_ms: u32 = 5000,
|
||||||
dump: dump.RootOpts,
|
dump: dump.RootOpts,
|
||||||
|
|||||||
@@ -332,7 +332,6 @@ pub var test_browser: Browser = undefined;
|
|||||||
pub var test_session: *Session = undefined;
|
pub var test_session: *Session = undefined;
|
||||||
|
|
||||||
const WEB_API_TEST_ROOT = "src/browser/tests/";
|
const WEB_API_TEST_ROOT = "src/browser/tests/";
|
||||||
const WEB_API_HELPER_PATH = WEB_API_TEST_ROOT ++ "testing.js";
|
|
||||||
const HtmlRunnerOpts = struct {};
|
const HtmlRunnerOpts = struct {};
|
||||||
|
|
||||||
pub fn htmlRunner(comptime path: []const u8, opts: HtmlRunnerOpts) !void {
|
pub fn htmlRunner(comptime path: []const u8, opts: HtmlRunnerOpts) !void {
|
||||||
|
|||||||
Reference in New Issue
Block a user