summaryrefslogtreecommitdiff
path: root/tools/wpt/testharnessreport.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wpt/testharnessreport.js')
-rw-r--r--tools/wpt/testharnessreport.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/wpt/testharnessreport.js b/tools/wpt/testharnessreport.js
index d3e783376..b1852a488 100644
--- a/tools/wpt/testharnessreport.js
+++ b/tools/wpt/testharnessreport.js
@@ -13,3 +13,12 @@ window.add_result_callback(({ message, name, stack, status }) => {
window.add_completion_callback((_tests, _harnessStatus) => {
Deno.exit(0);
});
+
+globalThis.document = {
+ // document.body shim for FileAPI/file/File-constructor.any.html test
+ body: {
+ toString() {
+ return "[object HTMLBodyElement]";
+ },
+ },
+};