Bug 1770047 [wpt PR 34117] - [Clipboard API] Clipboard Web Custom Formats implementat...
[gecko.git] / testing / web-platform / tests / web-share / share-files-manual.https.html
blobc3941bb4065b28c7f8fd4f615b8ec595ea5281a7
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>WebShare Test: Share multiple files</title>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="resources/manual-helper.js"></script>
9 </head>
10 <body>
11 <script>
12 setup({explicit_timeout: true});
14 const options = {type: 'text/plain'};
15 const first = new File(['one'], 'first.txt', options);
16 const second = new File(['two'], 'second.txt', options);
17 const third = new File(['three'], 'third.txt', options);
18 const fourth = new File(['four'], 'fourth.txt', options);
19 const fifth = new File(['five'], 'fifth.txt', options);
20 const data = {
21 title: 'Counting to 5',
22 text: 'Here are the numbers',
23 url: 'https://example.com/',
24 files: [first, second, third, fourth, fifth]
26 setupManualShareTest(data);
27 callWhenButtonClicked(() => navigator.share(data));
28 </script>
29 </body>
30 </html>