summaryrefslogtreecommitdiff
path: root/tools/wpt/testharnessreport.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-05-25 22:35:17 +0900
committerBert Belder <bertbelder@gmail.com>2021-05-31 16:37:34 +0200
commit323fa5272db8f70e543507e7aaa24e2a19e090ac (patch)
tree2cd22e5212fca5c4bb9fa401c29a5d7158fb015b /tools/wpt/testharnessreport.js
parent18a02c0f7923a9d23c6dc5ac1c3a0dfe03d03f10 (diff)
fix(extension/file): update File constructor following the spec (#10760)
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]";
+ },
+ },
+};