diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-05-25 22:35:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 22:35:17 +0900 |
commit | c8b3f85796570dd97a9000f4824bde0bcad68281 (patch) | |
tree | 4b15024038ba5b80836e6e56afab93f1410f49ca /tools/wpt/testharnessreport.js | |
parent | b96d7a666259c423b7985da12a1474fc1f18796e (diff) |
fix(extension/file): update File constructor following the spec (#10760)
Diffstat (limited to 'tools/wpt/testharnessreport.js')
-rw-r--r-- | tools/wpt/testharnessreport.js | 9 |
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]"; + }, + }, +}; |