browser: add a func to dump HTML

This commit is contained in:
Pierre Tachoire
2024-01-05 16:28:33 +01:00
parent 2aefd3736c
commit 2cdbf68526
2 changed files with 103 additions and 0 deletions

View File

@@ -122,3 +122,12 @@ test "bug document html parsing #4" {
doc = try parser.documentHTMLParse(file.reader(), "UTF-8");
parser.documentHTMLClose(doc) catch {};
}
const dump = @import("browser/dump.zig");
test "run browser tests" {
// const out = std.io.getStdOut();
const out = try std.fs.openFileAbsolute("/dev/null", .{ .mode = .write_only });
defer out.close();
try dump.HTMLFileTestFn(out);
}