diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-05-25 22:35:17 +0900 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:34 +0200 |
commit | 323fa5272db8f70e543507e7aaa24e2a19e090ac (patch) | |
tree | 2cd22e5212fca5c4bb9fa401c29a5d7158fb015b /tools/wpt/testharnessreport.js | |
parent | 18a02c0f7923a9d23c6dc5ac1c3a0dfe03d03f10 (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]"; + }, + }, +}; |