mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
wpt: rename new into init
This commit is contained in:
@@ -24,7 +24,7 @@ const FileLoader = struct {
|
|||||||
|
|
||||||
const Self = @This();
|
const Self = @This();
|
||||||
|
|
||||||
fn new(alloc: std.mem.Allocator, path: []const u8) Self {
|
fn init(alloc: std.mem.Allocator, path: []const u8) Self {
|
||||||
const files = std.StringHashMap([]const u8).init(alloc);
|
const files = std.StringHashMap([]const u8).init(alloc);
|
||||||
|
|
||||||
return Self{
|
return Self{
|
||||||
@@ -82,7 +82,7 @@ pub fn main() !void {
|
|||||||
defer vm.deinit();
|
defer vm.deinit();
|
||||||
|
|
||||||
// prepare libraries to load on each test case.
|
// prepare libraries to load on each test case.
|
||||||
var loader = FileLoader.new(alloc, "tests/wpt");
|
var loader = FileLoader.init(alloc, "tests/wpt");
|
||||||
defer loader.deinit();
|
defer loader.deinit();
|
||||||
|
|
||||||
// browse the dir to get the tests dynamically.
|
// browse the dir to get the tests dynamically.
|
||||||
|
|||||||
Reference in New Issue
Block a user