share-files-manual.https.html (1056B)
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}); 13 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] 25 }; 26 setupManualShareTest(data); 27 callWhenButtonClicked(() => navigator.share(data)); 28 </script> 29 </body> 30 </html>