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>
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
);
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
));