characterdata: add data getter and setter

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
Francis Bouvier
2023-09-28 19:36:18 +02:00
parent 0e3c51b7db
commit 9c8d1082a3
3 changed files with 59 additions and 0 deletions

View File

@@ -5,8 +5,10 @@ const generate = @import("generate.zig");
const parser = @import("netsurf.zig");
const DOM = @import("dom.zig");
const docTestExecFn = @import("html/document.zig").testExecFn;
const nodeTestExecFn = @import("dom/node.zig").testExecFn;
const characterDataTestExecFn = @import("dom/character_data.zig").testExecFn;
var doc: *parser.DocumentHTML = undefined;
@@ -26,6 +28,7 @@ fn testsExecFn(
// run tests
try docTestExecFn(alloc, js_env, apis);
try nodeTestExecFn(alloc, js_env, apis);
try characterDataTestExecFn(alloc, js_env, apis);
}
test {