diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-27 15:06:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 15:06:18 +0100 |
commit | 2638aa03a5c3f7f4740ea7bee22127c01eb47a3c (patch) | |
tree | 16a27215e5a3105af51d3c4405a171eab6262148 /tools/wpt/testharnessreport.js | |
parent | ecfda65effab41b8ca0ab65955d0542304437491 (diff) |
tests: new typescript WPT runner (#9269)
Diffstat (limited to 'tools/wpt/testharnessreport.js')
-rw-r--r-- | tools/wpt/testharnessreport.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/wpt/testharnessreport.js b/tools/wpt/testharnessreport.js new file mode 100644 index 000000000..13c8ef683 --- /dev/null +++ b/tools/wpt/testharnessreport.js @@ -0,0 +1,12 @@ +window.add_result_callback(({ message, name, stack, status }) => { + Deno.writeAllSync( + Deno.stderr, + new TextEncoder().encode( + `${JSON.stringify({ name, status, message, stack })}\n`, + ), + ); +}); + +window.add_completion_callback((tests, harnessStatus) => { + Deno.exit(0); +}); |