diff options
Diffstat (limited to 'testing/web-platform/mozilla/tests/dom/fs/support/fs-open_writable_then_close_tab.sub.html')
-rw-r--r-- | testing/web-platform/mozilla/tests/dom/fs/support/fs-open_writable_then_close_tab.sub.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/dom/fs/support/fs-open_writable_then_close_tab.sub.html b/testing/web-platform/mozilla/tests/dom/fs/support/fs-open_writable_then_close_tab.sub.html new file mode 100644 index 0000000000..098fe83b1f --- /dev/null +++ b/testing/web-platform/mozilla/tests/dom/fs/support/fs-open_writable_then_close_tab.sub.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<title>Child context test(s)</title> +<head> + <script src="/resources/testharness.js"></script> +</head> +<body> + <div id="log"></div> + <script> + window.addEventListener('load', async () => { + const dir = await navigator.storage.getDirectory(); + const opts = { create: true }; + const file = await dir.getFileHandle('funky-file-handle', opts); + const writable = await file.createWritable({}); + + window.close(); + }); + </script> +</body> +</html> |